Create an API key
Creates a new API key for the authenticated user in the current workspace.
The raw key value is returned only once at creation time; subsequent list
responses will only show the prefix.
Authorizations
API key obtained from the Slog dashboard or returned by the signup/invite-redeem
flows. Pass as the slog-api-key header.
Body
Response
API key created. Store the key value — it will not be shown again.
Unique API key ID (UPID).
"apik_01jqapikey001"
"Default"
First 10 characters of the raw key, safe to display.
"sk_a1b2c3"
ID of the user this key belongs to.
"user_01jquser0001"
"ws_01jqws000001"
"2026-05-01T10:00:00.000Z"
"2026-05-20T08:00:00.000Z"
null
Full raw API key value — shown only at creation time.
"sk_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"