API ReferenceDeveloper
Revoke an API key
Permanently revokes an API key. Any requests using this key will immediately receive 401 Unauthorized responses. You can create a new key of the same type afterward.
Authorization
privy AuthorizationBearer <token>
Privy JWT authentication for dashboard and management endpoints. This is used internally by the Bag Dashboard and is not intended for direct API integrations. Use API keys instead.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X DELETE "https://api.justusebag.xyz/api/developer/keys" \ -H "Content-Type: application/json" \ -d '{ "keyType": "test" }'{
"status": "success",
"message": "API key revoked"
}{
"status": "error",
"message": "Invalid or revoked API key",
"code": "UNAUTHORIZED",
"hint": "Include a valid API key in the Authorization header: Bearer bag_live_sk_..."
}{
"status": "error",
"message": "Not found",
"code": "NOT_FOUND"
}