users
users

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.

post/api/users/{uuid}/push_tokens/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/users/{uuid}/push_tokens/
  • Auth: HTTP bearer

Path parameters

uuidstring required

Request body

tokenstring required

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

platform'ios' | 'android' | 'web' required
  • ios - iOS
  • android - Android
  • web - Web

Response

Token was registered or refreshed.

idstring uuid required

PostHog UserPushToken row id.

platform'ios' | 'android' | 'web' required
  • ios - iOS
  • android - Android
  • web - Web
created_atstring date-time required

When this token was first registered.

last_seen_atstring date-time required

Last time the mobile app re-registered this token.

Changes

No recorded changes to this operation across all 1 revision of this API.