API Keys
Deletes a key for a given workspace
API Keys
Deletes a key for a given workspace
DELETE
/
api
/
v1
/
workspace
/
{id}
/
api-key
/
{akid}
curl --request DELETE \
--url https://prod.oneloop.ai/api/v1/workspace/{id}/api-key/{akid} \
--header 'Authorization: Bearer <token>'
{
"apiKey": {
"id": "<string>",
"name": "<string>",
"maskedKey": "<string>",
"prefix": "<string>",
"expiresAt": 1,
"scopes": [
{
"id": "<string>",
"representation": "<string>",
"create": true,
"read": true,
"update": true,
"del": true
}
],
"enabled": true,
"customerId": "<string>",
"deleted": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"lastUsedAt": "<string>",
"billingId": "<string>"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200
application/json
The updated deleted key
Required range:
x > 0
curl --request DELETE \
--url https://prod.oneloop.ai/api/v1/workspace/{id}/api-key/{akid} \
--header 'Authorization: Bearer <token>'
{
"apiKey": {
"id": "<string>",
"name": "<string>",
"maskedKey": "<string>",
"prefix": "<string>",
"expiresAt": 1,
"scopes": [
{
"id": "<string>",
"representation": "<string>",
"create": true,
"read": true,
"update": true,
"del": true
}
],
"enabled": true,
"customerId": "<string>",
"deleted": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"lastUsedAt": "<string>",
"billingId": "<string>"
}
}