Huddle01 Cloud
API Keys

Create API key

Create a new API key for programmatic access.

POST
/api-keys
X-API-Key<token>

GPU API key (format: mk_...). Generate from the dashboard or via POST /api-keys.

In: header

Request Body

application/json

name?string

Friendly label (defaults to "default")

Response Body

application/json

application/json

curl -X POST "https://gpu.huddleapis.com/api/v1/api-keys" \  -H "Content-Type: application/json" \  -d '{    "name": "ci-pipeline"  }'
{
  "code": "OK",
  "data": {
    "id": "e5f6a7b8-...",
    "name": "ci-pipeline",
    "prefix": "mk_9f8e7d",
    "secret": "mk_9f8e7d6c5b4a...full_secret_here",
    "created_at": "2026-04-01T12:05:00Z"
  }
}
{
  "code": "BAD_REQUEST",
  "error": "Missing required field: hostname"
}