external-keys

Create External Key

Create a new external API key for the current workspace.

Issue #381: owner-only (router-level dependency). Issue #385: workspace-scoped — the new key is stored with the caller's current_workspace_id and context_id=None. Per-workspace uniqueness is enforced by (a) the app-layer pre-checks in this handler and (b) the partial unique index on (workspace_id, context_id, provider) WHERE enabled=true (NULLS NOT DISTINCT).

post/api/v1/external-keys

Request

  • Base URL: https://memory.kagura-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://memory.kagura-ai.com/api/v1/external-keys
  • Auth: none declared

Headers

authorizationstring nullable

Request body

key_namestring required
providerstring required
valuestring required
enabledboolean

Response

Successful Response

key_namestring required
providerstring required
masked_valuestring required
user_idstring required
enabledboolean required
is_protectedboolean required
created_atstring required
updated_atstring required

Changes

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