REST APIUser Management Notification

DEL

Removes the specified device token from the authenticated user's account. If the token does not belong to the user or does not exist, handles the case accordingly. Used to stop push notifications to a device.

Path Params

  • deviceToken string required

Header Params

  • request-id string

Responses

202
Device token removed

Response Body

object

  • deviceToken string required
  • bitgoUserId string required
  • message string required
400
Bad request

Response Body

object

Bad request error response
  • name string enum required
    Error code
    ValidationFailedIllegalArgumentBadRequestDataIntegrityErrorNotImplementedErrorRETRIGGER_RATE_LIMITEDUSER_CREATION_FAILEDUSER_FALLBACK_FAILED
  • error string required
    Human-readable error message
  • status integer enum int32 required
    HTTP status code
    400
401
Device token does not belong to user

Response Body

object

Unauthorized error response
  • name string enum required
    Error code
    Unauthorized
  • error string required
    Human-readable error message
  • status integer enum int32 required
    HTTP status code
    401
500
Unexpected error

Response Body

object

Internal server error response
  • name string enum required
    Error code
    UnexpectedErrorThirdPartyErrorDatabaseErrorUSER_FALLBACK_TIMEOUT
  • error string required
    Human-readable error message
  • status integer enum int32 required
    HTTP status code
    500