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.
| Header | Value |
|---|---|
x-app-id | Your app id, for example app_49e692ad |
x-api-key | A server API key for that app |
x-tenant-id | Your tenant id |
Find your tenant id
The tenant id is returned by the public runtime endpoint for your app:
curl https://push.example.com/api/v1/sdk/app_49e692ad/mobile-runtimeThe 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.
# 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.