Register a new tool
Authorization: platform admin only. Allowed callers: a Mnemom staff session (JWT or cookie whose role is mnemom_staff), or an API key carrying the admin:platform scope whose owner is re-verified as Mnemom staff on every request. Everyone else gets 403 Admin access required — that includes org owners and org admins of any tenant, ordinary users, and API keys without admin:platform (or whose owner is no longer staff). The BearerAuth / ApiKeyAuth schemes say how the caller authenticates, not who is allowed; the platform-admin check runs before the body is read, so a non-admin never reaches validation. An unauthenticated call gets 401.
Inserts a new tool row. Idempotency-Key is required (400 when absent; 409 while a request with the same key is still in flight, or when the tool name already exists; 422 when the key was already used with a different body). The composer sets content_hash + version=1; subsequent PATCH calls bump version only when content_hash changes.
Request
- Base URL: https://api.mnemom.ai/v1
- URL: https://api.mnemom.ai/v1/tools
- Auth: one of:
- HTTP bearer
- API key in header X-Mnemom-Api-Key
Headers
Per-mutation idempotency key (RFC draft-ietf-httpapi-idempotency-key-header).
Request body
Response
Tool registered.
Changes
No recorded changes to this operation across all 1 revision of this API.