Skip to main content
POST
/
push-token-register
Register a push notification token
curl --request POST \
  --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/push-token-register \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]",
  "platform": "ios"
}
'
{
  "success": true,
  "status": 201,
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "token": "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]",
    "platform": "ios",
    "is_active": true,
    "created_at": "2026-04-19T10:00:00Z"
  }
}

Authorizations

Authorization
string
header
required

JWT access token obtained from /auth-verify (login context) or /auth-signup. Set the bearer_token environment variable in your API client to apply it globally.

Body

application/json
token
string
required

Expo push token obtained from getPushTokenAsync()

Example:

"ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]"

platform
enum<string>
required
Available options:
ios,
android,
web
Example:

"ios"

Response

Token registered

success
boolean
Example:

true

status
integer
Example:

201

data
object