curl --request DELETE \
--url https://qwoty.app/api/tokens/tok_123abc
const response = await fetch('https://qwoty.app/api/tokens/tok_123abc', {
method: 'DELETE',
})
const data = await response.json()
import requests
response = requests.delete('https://qwoty.app/api/tokens/tok_123abc')
data = response.json()
{
"success": true,
"message": "API token deleted successfully"
}
{
"error": "Token ID is required"
}
{
"error": "Token not found"
}
Tokens
Delete API Token
Delete an API token
DELETE
/
api
/
tokens
/
{id}
curl --request DELETE \
--url https://qwoty.app/api/tokens/tok_123abc
const response = await fetch('https://qwoty.app/api/tokens/tok_123abc', {
method: 'DELETE',
})
const data = await response.json()
import requests
response = requests.delete('https://qwoty.app/api/tokens/tok_123abc')
data = response.json()
{
"success": true,
"message": "API token deleted successfully"
}
{
"error": "Token ID is required"
}
{
"error": "Token not found"
}
Authorization
string
required
Bearer token for authentication. Format:
Bearer qwoty_your_tokenPath Parameters
string
required
The unique identifier of the API token to delete
Response
boolean
Indicates if the operation was successful
string
Confirmation message
curl --request DELETE \
--url https://qwoty.app/api/tokens/tok_123abc
const response = await fetch('https://qwoty.app/api/tokens/tok_123abc', {
method: 'DELETE',
})
const data = await response.json()
import requests
response = requests.delete('https://qwoty.app/api/tokens/tok_123abc')
data = response.json()
{
"success": true,
"message": "API token deleted successfully"
}
{
"error": "Token ID is required"
}
{
"error": "Token not found"
}
Once deleted, an API token cannot be recovered. Any applications using this
token will immediately lose access.
Was this page helpful?

