API reference · Account
Forget one device
DELETE/api/account/pushSigned in session
By its endpoint or its key. Same origin only.
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| endpoint | string | |
| key | string |
Example
{
"endpoint": "string",
"key": "string"
}Answer 200
Whether a device was removed; the account's devices.
| Field | Type | What it is |
|---|---|---|
| removed | boolean | |
| devices | array of object | |
| devices[] | string | A digest of the endpoint; never the endpoint itself. |
| devices[] | string or null | Browser and system, from the user agent. |
| devices[] | string | The push service's host. |
| devices[] | integer | |
| devices[] | integer or null |
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 403OpenAI shaped error.
- 429OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.