Register or update a device push token for the assistant owner.
Authenticates via either:
- Session (web / iOS WebView): the requesting user must own the assistant_id referenced in the URL. This is the path used by the web/src/lib/push/register.ts Capacitor flow on iOS.
- AssistantAPIKey (external SDK): the key must match the URL assistant_id; the registered user is assistant.created_by.
Both paths converge on the same (user, token, bundle_id) upsert. The last_seen_at timestamp is updated on every successful call.
Request
- The document declares no server URL.
- Auth: one of:
- HTTP bearer
- API key in cookie sessionid
- API key in header X-Session-Token
- API key in header Authorization
Path parameters
Request body
Response
Changes
- ○
added the new optional request property
////(media type: application/json) - ○
added the new optional request property
////(media type: application/x-www-form-urlencoded) - ○
added the new optional request property
////(media type: multipart/form-data) - ○
added the required property
to the response with the status
- ○
- ▲
the request's body type changed from
objectto no type (media type: application/json) - ▲
the response property
became nullable for the status - ▲
added to the
response propertyoneOflist for the response status - ▲
the
response's property type changed fromstringto no type for status - ●
removed the request property
(media type: application/json) - ●
removed the request property
(media type: application/x-www-form-urlencoded) - ●
removed the request property
(media type: multipart/form-data) - ●
removed the request property
(media type: application/json) - ●
removed the request property
(media type: application/x-www-form-urlencoded) - ●
removed the request property
(media type: multipart/form-data) - ●
removed the request property
(media type: application/json) - ●
removed the request property
(media type: application/x-www-form-urlencoded) - ●
removed the request property
(media type: multipart/form-data) - ●
removed the request property
(media type: application/json) - ●
removed the request property
(media type: application/x-www-form-urlencoded) - ●
removed the request property
(media type: multipart/form-data) - ●
added the new
androidenum value to theresponse property for the response status - ○
added request discriminator (media type: application/json)
- ○
added request discriminator (media type: application/x-www-form-urlencoded)
- ○
added request discriminator (media type: multipart/form-data)
- ○
added to the request body
oneOflist (media type: application/json) - ○
added to the request body
oneOflist (media type: application/x-www-form-urlencoded) - ○
added to the request body
oneOflist (media type: multipart/form-data) - ○
the request's body type was generalized from
objectto no type (media type: application/x-www-form-urlencoded) - ○
the request's body type was generalized from
objectto no type (media type: multipart/form-data) - ○
removed the
developmentenum value from theresponse property for the response status - ○
removed the
productionenum value from theresponse property for the response status
- ▲