revokeOAuthGrant
DELETE
/api/v1/me/security/grants/{id}
const url = 'https://example.com/api/v1/me/security/grants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'DELETE'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/api/v1/me/security/grants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0Requires an authenticated user with the admin scope. Cookie requests additionally require the X-CSRF-Token header. Revokes one of the caller’s grants and every token under it. Personal access tokens are revoked through this same endpoint.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Header Parameters
Section titled “Header Parameters”X-CSRF-Token
string
Cookie-backed browser requests only, and only on unsafe methods. Bearer grants never send it.
Responses
Section titled “ Responses ”Grant revoked
Dashboard authentication required
CSRF token required
Grant unknown