POST/keys

Create API Key

Generate a new API key for your tenant. The full key is returned once β€” save it immediately.

πŸ”’Scope required:admin

Body Parameters

ParameterTypeRequiredDescription
namestringβœ…Friendly name for the key (e.g. β€œCI/CD Pipeline”)
scopesstring[]NoAllowed scopes. Defaults to ["read"]
expiresInDaysintegerNoDays until expiry. null = never expires

Request Example

curl -X POST https://api.scootsign.com/api/v1/keys \
  -H "X-API-Key: aram_ent_ADMIN_KEY..." \
  -H "Content-Type: application/json" \
  -d '{
    "name": "CI/CD Pipeline",
    "scopes": ["read", "write"],
    "expiresInDays": 90
  }'

Response

200 OK

{
  "success": true,
  "data": {
    "id": "key_abc123",
    "name": "CI/CD Pipeline",
    "key": "aram_ent_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
    "prefix": "aram_ent_a1b2",
    "scopes": ["read", "write"],
    "expiresAt": "2026-06-01T00:00:00.000Z",
    "warning": "Save this key now. It will not be shown again."
  }
}

⚠️ The key field is only returned in this response. It is SHA-256 hashed before storage and cannot be retrieved later.

Aram by ScootSign docs.scootsign.com