Revoke a device secret.
DELETE
/api/admin/device-secrets/{id}
Code sample: Shell / cURL
curl --request DELETE \ --url https://auth.example.com/api/admin/device-secrets/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "reason": "lost_device" }'Revokes one device secret. An optional JSON body may provide a sanitized reason; omitted or invalid JSON bodies are treated as an admin revocation with the default reason.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Device secret identifier.
Request Body
Section titled “Request Body ” Media type application/json
object
reason
string
key
additional properties
Example
{ "reason": "lost_device"}Responses
Section titled “ Responses ”Device secret revocation response.
Media type application/json
object
success
required
boolean
id
required
string
revoked_at
required
string format: date-time
reason
required
string
key
additional properties
Example generated
{ "success": true, "id": "example", "revoked_at": "2026-04-15T12:00:00Z", "reason": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}