API Key

Delete

DEL
Delete an API key

Path parameters

idstringRequired

Response

This endpoint returns an object
success
boolean
data
objectOptional
Represents a ApiKey record
DEL
$curl -X DELETE https://api.beta.superagent.sh/api/v1/api-keys/string \
> -H "Authorization: Bearer <token>"
Response
1{
2 "success": true,
3 "data": {
4 "id": "string",
5 "name": "string",
6 "displayApiKey": "string",
7 "createdAt": "2024-01-15T09:30:00Z",
8 "updatedAt": "2024-01-15T09:30:00Z",
9 "apiUserId": "string",
10 "apiUser": {
11 "id": "string",
12 "createdAt": "2024-01-15T09:30:00Z",
13 "updatedAt": "2024-01-15T09:30:00Z"
14 }
15 }
16}