Deactivate the current user’s browser/device push notification subscription.
The method finds an existing push subscription by endpoint and current user_id, then marks it as removed by setting status = REMOVED. If no matching subscription exists, the method still returns SUCCESS.
The number in the URL path (/1/) is the organization identifier — referred to as account_id.
This value must match the account associated with the provided session_id.
This endpoint supports both:
GET https://api.doboard.com/42/push_unsubscribe?session_id=abc123xyz&endpoint=https%3A%2F%2Ffcm.googleapis.com%2Ffcm%2Fsend%2Fexample-endpoint
In this example:
42 is the organization/account IDendpoint is the browser/device push service endpoint.session_id=abc123xyz is used for authentication.If the account ID in the URL does not match the account tied to the session, the request will be rejected.
When using GET, URL-encode the
endpointvalue.
Required
The method requires a valid authenticated session:
session_id – authenticated user session.Guest access via
tokenis not supported.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
session_id |
string | Yes | – | Authenticated user session ID. |
endpoint |
string | Yes | – | Push service endpoint URL. Maximum length: 1024 characters. |
{
"data": {
"operation_status": "SUCCESS"
}
}
| Field | Type | Description |
|---|---|---|
operation_status |
string | Operation result. Returns SUCCESS on unsubscribe. |
| HTTP Code | error_no |
Message | Description |
|---|---|---|---|
401 |
– | Unauthorized |
Missing or invalid session_id. |
200 |
8601 |
endpoint is required |
endpoint parameter is missing or empty. |
200 |
8602 |
endpoint is too long |
endpoint is longer than 1024 characters. |
status = REMOVED.endpoint.SUCCESS.