API reference

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

Request body fields
FieldTypeWhat it is
endpointstring
keystring

Example

{
  "endpoint": "string",
  "key": "string"
}

Answer 200

Whether a device was removed; the account's devices.

Fields of the 200 answer
FieldTypeWhat it is
removedboolean
devicesarray of object
devices[].keystringA digest of the endpoint; never the endpoint itself.
devices[].labelstring or nullBrowser and system, from the user agent.
devices[].servicestringThe push service's host.
devices[].createdAtinteger
devices[].lastSuccessAtinteger 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.

Antimatter