Browse the API reference

Revoke Connected App

delete/v1/user/oauth/grants/{grant_id}

Part of User.

Revokes the grant and every access and refresh token minted from it. The client's next request fails with 401 and it must ask the user to authorize again. Revoking an already revoked grant succeeds and changes nothing.

Authentication

Authenticate in any one of these ways — not all of them:

  • API key in the X-API-Key header.
  • Bearer token in the Authorization header.

Path parameters

NameTypeDescription
grant_idrequiredstringGrant Id

Example request

curl
curl -X DELETE "https://api.robosystems.ai/v1/user/oauth/grants/{grant_id}" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY"

Responses

200 Successful Response

FieldTypeDescription
successoptionalboolean

Indicates the operation completed successfully

Default: true

messagerequiredstring

Human-readable success message

dataoptionalobject

Optional additional data related to the operation

StatusMeaning
400Invalid request
401Authentication required
403Access denied
404Resource not found
422Validation Error
429Rate limit exceeded
500Internal server error