Skip to main content
DELETE
https://api.tktchurch.com/v1
/
auth
/
devices
/
{id}
curl -X DELETE "https://api.tktchurch.com/v1/auth/devices/123e4567-e89b-12d3-a456-426614174000" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."
This endpoint requires authentication. Include the JWT access token in the Authorization header.

Path Parameters

id
string
required
The UUID of the device token to revoke

Response

A successful request returns HTTP 204 No Content status. The following actions are performed:
  1. The device’s refresh token is blacklisted
  2. Any associated access tokens are blacklisted
  3. The tokens are removed from the database

Error Responses

error
object
Error details when the request fails
Common error cases:
  • 400 Bad Request: Invalid device ID format
  • 401 Unauthorized: Missing or invalid access token
  • 404 Not Found: Device not found or belongs to another user
  • 500 Internal Server Error: Invalid user ID in token
curl -X DELETE "https://api.tktchurch.com/v1/auth/devices/123e4567-e89b-12d3-a456-426614174000" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."