API Keys
API keys provide programmatic access without session cookies. Available on Pro and Business plans.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Friendly name for the key |
Example Requestjson
{
"name": "Production Server"
}Response 201
| Field | Type | Description |
|---|---|---|
id | string | Key ID |
name | string | Key name |
key | string | Full API key (only shown once) |
keyPrefix | string | Key prefix for identification |
Example Responsejson
{
"id": "kJx9mP2qLn4vRt7bYw3cZ",
"name": "Production Server",
"key": "sk_live_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
"keyPrefix": "sk_live_a1b2",
"createdAt": "2025-01-29T12:00:00.000Z"
}Errors
| Status | Message |
|---|---|
| 401 | Unauthorized |
| 403 | API keys not available on your plan |
Rate Limits
FreeN/A (Pro only)
Pro10 req/min
Business30 req/min
Code Examples
curl -X POST https://destroy.network/api/api-keys \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{"name": "Production Server"}'The full key is only shown once. Store it securely.
Maximum 10 API keys per account.
Response 200
Example Responsejson
[
{
"id": "kJx9mP2qLn4vRt7bYw3cZ",
"name": "Production Server",
"keyPrefix": "sk_live_a1b2",
"lastUsedAt": "2025-01-29T10:00:00.000Z",
"createdAt": "2025-01-28T12:00:00.000Z"
}
]Rate Limits
FreeN/A (Pro only)
Pro30 req/min
Business60 req/min
Code Examples
curl https://destroy.network/api/api-keys \
-H "Authorization: Bearer sk_live_your_api_key"Full keys are never returned after creation.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | API key ID |
Response 200
Example Responsejson
{
"success": true
}Errors
| Status | Message |
|---|---|
| 404 | API key not found |
Rate Limits
FreeN/A (Pro only)
Pro10 req/min
Business30 req/min
Code Examples
curl -X DELETE https://destroy.network/api/api-keys/kJx9mP2qLn4vRt7bYw3cZ \
-H "Authorization: Bearer sk_live_your_api_key"