Skip to content

Get API key configuration limits

GET /api/v1/api-keys-config

GET /maas/api/v1/api-keys-config

Returns the API key limits that apply when creating keys. Useful for clients that need to display valid ranges for expiration without requiring admin access to the Tenant CR. Proxies maas-api GET /v1/api-keys/config. Registered as /api-keys-config (not /api-keys/config) to avoid conflicting with httprouter GET /api-keys/:id.

Authorization

Responses

Status Description Response body
200 OK

OK response.

object

application/json

401 Unauthorized

Unauthorized response.

None
500 Internal Server Error

Internal Server Error

None

200 OK response body

Property Type Required Description
data ApiKeyConfig Yes

Example request

curl -X GET "/maas/api/v1/api-keys-config" \
  -H "Authorization: Bearer $TOKEN"

Example response

200 OK, application/json

{
  "data": {
    "max_expiration_days": 90,
    "ephemeral_max_expiration": "1h"
  }
}