DELETE /account/identity/{identity_id}/token/{service}

Delete a token for a particular service.

To learn how to use the endpoints together take a look at our account API step-by-step page

An HTTPS DELETE request sent to:

https://api.datasift.com/v1.3/account/identity/{identity_id}/token/{service}

A successful call to this endpoint returns: 204 No Content.

Parameters

Parameter Description

Examples

  1. Delete the token for Facebook

curl -X DELETE https://api.datasift.com/v1.3/account/identity/1234567890abcdef1234567890abcdef/token/facebook 
    -H 'Authorization: username:api_key'

If the call is successful, there is no JSON output.

Response code Description
Status 204 No Content <div> The token was deleted.
Status 404 Not Found

Occurs if you specify an identity_id that does not exist and has never existed.

{ "error": "An Identity with the supplied id was not found" }
Status 410 Gone

Occurs if the identity_id has been deleted.

{ "error": "The Identity with the supplied id has been deleted" }

Notes

  1. All calls to the API must be properly authenticated with a DataSift username and API key.
  2. All calls to the API must be versioned. The current version is v1.3.

Resource information

Rate limit cost: 5

Requires authentication: Yes

Response formats: JSON, JSONP