DELETE
/
apps
/
{app_id}
/
auth
/
tokens
/
{token_id}
curl --request DELETE \
  --url https://api.onesignal.com/apps/{app_id}/auth/tokens/{token_id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
"{}"

Overview

Use this API to delete a specific App API Key (Rich Authentication Token) for a single OneSignal.

For background on different OneSignal API keys, see Keys & IDs.


How to use this API

Using your Organization API key (available in Organizations > Keys & IDs) you can delete an app token associated with a given app.

The token_id is a OneSignal-generated ID specific for the API key. This is not the API key itself. It is returned when creating an API key with Create API key. It can be found in the OneSignal dashboard and in the response body of the View API keys request.


Headers

Content-Type
string
default:application/json
required
Authorization
string
default:Key YOUR_ORGANIZATION_API_KEY
required

Your Organization API key with prefix Key. See Keys & IDs.

Path Parameters

app_id
string
default:YOUR_APP_ID
required

Your OneSignal App ID in UUID v4 format. See Keys & IDs.

token_id
string
required

The OneSignal-generated ID specific to the API key. This is not the API key itself. It is returned when creating an API key with Create API key. It can be found in the OneSignal dashboard and in the response body of the View API keys request.

Response

200
application/json

200

The response is of type object.

DELETE
/
apps
/
{app_id}
/
auth
/
tokens
/
{token_id}
curl --request DELETE \
  --url https://api.onesignal.com/apps/{app_id}/auth/tokens/{token_id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
"{}"

Overview

Use this API to delete a specific App API Key (Rich Authentication Token) for a single OneSignal.

For background on different OneSignal API keys, see Keys & IDs.


How to use this API

Using your Organization API key (available in Organizations > Keys & IDs) you can delete an app token associated with a given app.

The token_id is a OneSignal-generated ID specific for the API key. This is not the API key itself. It is returned when creating an API key with Create API key. It can be found in the OneSignal dashboard and in the response body of the View API keys request.


Headers

Content-Type
string
default:application/json
required
Authorization
string
default:Key YOUR_ORGANIZATION_API_KEY
required

Your Organization API key with prefix Key. See Keys & IDs.

Path Parameters

app_id
string
default:YOUR_APP_ID
required

Your OneSignal App ID in UUID v4 format. See Keys & IDs.

token_id
string
required

The OneSignal-generated ID specific to the API key. This is not the API key itself. It is returned when creating an API key with Create API key. It can be found in the OneSignal dashboard and in the response body of the View API keys request.

Response

200
application/json

200

The response is of type object.