KintsugiKintsugi

Create an API key

POST/api-keys

Create an API key and return its one-time secret token (shown only here). Requires a user credential (an Owner or Admin) or a PORTFOLIO-scope Api-Key. Select an organization with an Organization-Id to create an organization key (a portfolio Owner/Admin bearer, or a portfolio Api-Key, selecting a client org creates a client-scoped key); omit it to create a portfolio-wide key if you are a portfolio Owner or Admin bearer. Portfolio and client keys are capped: creating one past the cap returns 409.

Authorization

Api-KeystringRequired

Your secret API key. Include it with every request.

Headers

Api-Versiondate

Release date, as YYYY-MM-DD. Defaults to 2026-07-21.

Organization-Idstring

Target organization id (Organization-Id selector). Omit to manage portfolio keys as a bearer. Required for a PORTFOLIO-scope Api-Key, which may only manage one client org's keys at a time.

Connection-Idstring

Target connection id; resolves to its organization.

Entity-Idstring

Platform entity id; resolves to a connection's organization.

Entity-Sourcestring

Optional source to disambiguate an Entity-Id.

Body

expiresAtstring

When the key should expire (RFC-3339 UTC with an explicit Z). Must be in the future. Omit for a key that does not expire.

Response

idstringRequired

Opaque unique identifier of the created key. Treat as opaque.

tokenstringRequired

The secret API-key token. Shown ONCE, here, at creation; it cannot be retrieved later. Store it securely.

201

Successful Response

400

The request was invalid.

401

Authentication failed or was missing.

403

The credential is not permitted for this request.

404

The requested resource was not found.

409

The request conflicts with existing state.

422

The request failed validation.

503

A service this request depends on was unavailable. Retry the request.

cURL
POST /api-keys
-H "Api-Key: ***"
-H "Api-Version: 2026-07-21"
{
"expiresAt": "2026-07-21T15:30:00Z"
}
Response
{
"id": "3f6c2b1e-8a4d-4c2e-9b1f-2d7e5a6c9f10",
"token": "tok_2mNpQr7Ls8f3k"
}
Create an API key (2026-07-21) | Kintsugi API Reference