Delete API token
Permanently deletes an API token.
delete
Authorizations
Api-TokenstringRequired
Pass the API token in the Api-Token
Path parameters
idinteger · int64RequiredExample:
API token ID
12345Responses
204
Token deleted (no body)
No content
401
Returns unauthorized error message. Check your credentials.
application/json
403
Returns forbidden error message. Check your permissions.
application/json
404
Returns not found error message
application/json
delete/api/api_tokens/{id}
curl -X DELETE https://mailtrap.io/api/api_tokens/{id} \
-H 'Authorization: Bearer YOUR_API_KEY'
No content
Last updated
Was this helpful?

