Skip to content

Deactivate a push token

PATCH
/notifications/mobile/{token}/inactivate
curl --request PATCH \
--url https://work.optidata.cloud/api/notifications/mobile/example/inactivate \
--header 'Authorization: Bearer <token>'

Stops push delivery to the token — used when the user signs out of the mobile app or disables notifications on the device.

token
required
string

The push-notification token to deactivate.

The token is no longer active.

Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}

Missing, malformed or expired authentication key.

Media typeapplication/json

Authentication failures use an error key rather than message.

object
error
required
string
Examples
Examplemissing

No bearer token sent

{
"error": "JWT passport exception: Missing bearer token in request"
}

Rate limit exceeded. Retry after the window resets.

Media typeapplication/json

Generic error envelope used by policy, binding and framework failures.

object
message
required

Human-readable description of the failure.

string
Examples
Examplethrottled
{
"message": "Too Many Attempts."
}