Delete an application API grant
DELETE /v1/applications/{application_id}/api-grants/{api_id} · permission applications:write
Removes the application's grant for one API. The application can no longer request tokens for that API.
Request
| Parameter | In | Description |
|---|---|---|
application_id |
path | Application id (app_…). |
api_id |
path | API id (api_…). |
Response
204 No Content.
Errors
| HTTP | code |
When |
|---|---|---|
| 401 | unauthenticated |
The key is missing, invalid or revoked. |
| 403 | insufficient_permissions |
The key lacks the required permission. |
| 404 | not_found |
The application or the grant does not exist in this environment. |
Example
curl -X DELETE https://api.eu.keenauth.com/v1/applications/app_6f8d0cjgbmf0gtn2rg6pscp3cg/api-grants/api_0000000000000000000000001z \
-H "Authorization: Bearer $KEENAUTH_SECRET_KEY"