PushFyreAccelerate. Ignite. Broadcast.

API authentication

Which headers a server call needs, where the API key comes from, and where to find the tenant id.

The API base URL is the address of your PushFyre server followed by /api/v1, for example https://push.example.com/api/v1.

Send requests

Server requests such as POST /push/send, POST /events and the Live Activity calls use three headers. The full list is in API endpoints.

HeaderValue
x-app-idYour app id, for example app_49e692ad
x-api-keyA server API key for that app
x-tenant-idYour tenant id

Find your tenant id

The tenant id is returned by the public runtime endpoint for your app:

bash
curl https://push.example.com/api/v1/sdk/app_49e692ad/mobile-runtime

The response includes tenantId and the apiBaseUrl to use.

Generate an API key

API keys are generated with the keys endpoint. It needs a signed-in session: log in to get an access token, then call it with your tenant id.

bash
# 1. Log in
curl -X POST https://push.example.com/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{ "email": "you@company.com", "password": "..." }'

# 2. Generate a key for the app
curl -X POST https://push.example.com/api/v1/apps/app_49e692ad/keys/rotate \
  -H "Authorization: Bearer <accessToken>" \
  -H "x-tenant-id: <your-tenant-id>"

The response contains the new key once, as apiKeyRaw. Store it somewhere safe. You need the Organization Admin or Editor role to do this.

Generating a key revokes the app's existing keys. Anything still using the old key will start failing, so update your servers straight away.