Api-Keys

Create API key

Create a new API key with specified scopes.

Required scope: api-keys:write

post/api/v2/organizations/api-keys

Request

  • Base URL: https://api.kiloiot.io
  • URL: https://api.kiloiot.io/api/v2/organizations/api-keys
  • Auth: API key in header X-API-Key and API key in header X-Organization-Id

Request body

namestring required

Human-readable API key name

organizationIdstring required
scopesstring[]

List of scopes to assign (e.g. devices:read, devices:write)

expiresAtstring

Optional expiration date (ISO 8601)

Response

Created

idstring
namestring
keystring

The API key secret (only shown once at creation)

scopesstring[]
expiresAtstring
createdAtstring

Changes

No recorded changes to this operation across all 1 revision of this API.