curl -X DELETE \
-H "Authorization: ApiKey cf5709d6013fdb7a6787fbeb8340afed8aec4c69" \
https://api.quickblox.com/users/123/tokens
Empty body
// Invalid authorization header
{
"errors": {
"base": [
"Authorization header is invalid."
]
}
}
// Invalid API key
{
"errors": {
"base": [
"Api Key is not found."
]
}
}
{
"errors": {
"base": [
"User is not found."
]
}
}
Users
Flush Tokens with API key
Flushes all user-specific API tokens
DELETE
/
users
/
{user_id}
/
tokens
curl -X DELETE \
-H "Authorization: ApiKey cf5709d6013fdb7a6787fbeb8340afed8aec4c69" \
https://api.quickblox.com/users/123/tokens
Empty body
// Invalid authorization header
{
"errors": {
"base": [
"Authorization header is invalid."
]
}
}
// Invalid API key
{
"errors": {
"base": [
"Api Key is not found."
]
}
}
{
"errors": {
"base": [
"User is not found."
]
}
}
You can’t use the QB token in this request. It will be ignored if you pass the QB-Token header in the request.
Path Parameters
integer
required
ID of the user. Generated automatically by the server after user creation.
Headers
string
default:"ApiKey {your_api_key}"
required
API key from Dashboard. Expected format:
ApiKey {your_api_key}. Must be used either QB-Token or Authorization.Responses
200
200
A successful response
curl -X DELETE \
-H "Authorization: ApiKey cf5709d6013fdb7a6787fbeb8340afed8aec4c69" \
https://api.quickblox.com/users/123/tokens
Empty body
// Invalid authorization header
{
"errors": {
"base": [
"Authorization header is invalid."
]
}
}
// Invalid API key
{
"errors": {
"base": [
"Api Key is not found."
]
}
}
{
"errors": {
"base": [
"User is not found."
]
}
}
Was this page helpful?