Service Agent
Register a push device
Changed onRegisters the push device of the calling agent, or refreshes it when the same token is already registered. The call is idempotent: both a new and a refreshed device return 200. The device always belongs to the authenticated agent; the owner is never taken from the request. A token that was registered by another agent is moved to the calling agent.
The push token is a credential and is never returned in any response.
Returns 400 when the platform is not supported, or when the token is empty or longer than 512 bytes.
post/service_agents/push_devices
Request
- Base URLhttps://api.voipbin.net/v1.0
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"platform": "android",
"token": "fcm-token-example-0123456789"
}Response
The registered device.
Example response
{
"id": "3f6c1d2e-8a4b-4c7d-9e10-5b2a7c8d9e01",
"customer_id": "7c4d2f3a-1b8e-4f5c-9a6d-3e2f1a0b4c5d",
"agent_id": "2ddf1c90-bbc1-11ef-b991-1bd6ee52cbc5",
"platform": "android",
"tm_create": "2026-11-09T09:15:30.123456Z",
"tm_update": "2026-11-09T09:15:30.123456Z"
}Changes
- info
endpoint added
- info