# Revoke access grant Revoke an existing access grant, removing the grantee's access to the entity. Revokes (soft-deletes) an access grant. The grantee will no longer have access to the entity through this grant. #### Path Parameters **`organization_id`** string required The unique identifier of the organization (format: `org_*`). **`grant_id`** string required The unique identifier of the access grant (format: `agrant_*`). ## Returns No content (HTTP 204). The grant has been successfully revoked. Request ```bash cURL curl -X DELETE https://api.aitronos.com/v1/organizations/org_xyz789/access/grants/agrant_abc123def456 \ -H "Authorization: Bearer $ACCESS_TOKEN" ``` ```python Python SDK from aitronos import Aitronos client = Aitronos(api_key="your-api-key") client.access_control.revoke_grant( organization_id="org_xyz789", grant_id="agrant_abc123def456", ) ``` ```python Python import requests org_id = "org_xyz789" grant_id = "agrant_abc123def456" url = f"https://api.aitronos.com/v1/organizations/{org_id}/access/grants/{grant_id}" headers = {"Authorization": "Bearer YOUR_ACCESS_TOKEN"} response = requests.delete(url, headers=headers) print(response.status_code) # 204 ``` ```javascript JavaScript const orgId = "org_xyz789"; const grantId = "agrant_abc123def456"; const response = await fetch( `https://api.aitronos.com/v1/organizations/${orgId}/access/grants/${grantId}`, { method: "DELETE", headers: { "Authorization": `Bearer ${accessToken}`, }, } ); console.log(response.status); // 204 ``` Response ```json 204 No Content // No response body ``` ```json 404 Error { "success": false, "error": { "code": "RESOURCE_NOT_FOUND", "message": "We couldn't find the resource you're looking for.", "system_message": "Access grant not found", "type": "client_error", "status": 404, "details": { "grant_id": "agrant_abc123def456" }, "trace_id": "abc-123-def", "timestamp": "2025-11-02T08:21:45Z" } } ``` ## Related Resources - [List Grants](/docs/api-reference/access-control/list-grants) - [Create Grant](/docs/api-reference/access-control/create-grant) - [Bulk Create Grants](/docs/api-reference/access-control/bulk-create-grants) - [Update Grant](/docs/api-reference/access-control/update-grant) - [Slice Grants](/docs/api-reference/access-control/slice-grants) - [Store Grants](/docs/api-reference/access-control/store-grants) - [Assistant Grants](/docs/api-reference/access-control/assistant-grants) - [Resolved Access](/docs/api-reference/access-control/resolved-access) - [Users with Access](/docs/api-reference/access-control/users-with-access)