/organization/apikeys/{apiKeyId}/delete v1.0.0
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Base URLs:
Organizations
postOrganizationApiIdDelete
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/organization/apikeys/{apiKeyId}/delete", {
method: "POST",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /organization/apikeys/{apiKeyId}/delete
Delete an API key from the organization
Deletes the specified API key by ID. Requires admin role and professional or enterprise subscription.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| apiKeyId | path | string(objectId) | true | The ID of the API key to delete |
Example responses
200 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | API key deleted successfully | string |
| 500 | Internal Server Error | Internal server error | string |
