provider usersusers POST /api/users/{uuid}/push_tokens/
@utdk/posthog /api/users/{uuid}/push_tokens/
Register a push notification token
Idempotent upsert: if the (user, token) pair already exists, `platform` and `last_seen_at` are refreshed. Otherwise a new row is created.
uuid path required
string

Try it

Authentication
Configure credentials for PostHog API
usersPushTokensCreate
POST/api/users/{uuid}/push_tokens/
Idempotent upsert: if the (user, token) pair already exists, `platform` and `last_seen_at` are refreshed. Otherwise a new row is created.

Parameters

required

Input

required

Opaque push token issued by the device's platform push service (e.g. an Expo push token).

required

Device platform the token was issued for. One of `ios`, `android`, or `web`. * `ios` - iOS * `android` - Android * `web` - Web

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.usersPushTokensCreate()