# MKA1: English API Reference ## API Reference - [English / API Reference / Tools and sandbox (64 pages)](https://docs.mka1.com/_llms/en/api-reference/tools-and-sandbox.txt): Documentation for English / API Reference / Tools and sandbox. - [English / API Reference / Evals and feedback (55 pages)](https://docs.mka1.com/_llms/en/api-reference/evals-and-feedback.txt): Documentation for English / API Reference / Evals and feedback. - [English / API Reference / Usage and budgets (46 pages)](https://docs.mka1.com/_llms/en/api-reference/usage-and-budgets.txt): Documentation for English / API Reference / Usage and budgets. ### Overview - [API overview](https://docs.mka1.com/api-reference/introduction.md) ### Responses and conversations #### Responses - [Create an agent-powered response with tool support](https://docs.mka1.com/api-reference/responses/create-an-agent-powered-response-with-tool-support.md): Creates a new AI agent response using advanced language models with autonomous tool usage capabilities. - [List all responses with pagination](https://docs.mka1.com/api-reference/responses/list-all-responses-with-pagination.md): Retrieves a paginated list of all agent responses for the authenticated user. - [Retrieve response by ID with status and results](https://docs.mka1.com/api-reference/responses/retrieve-response-by-id-with-status-and-results.md): Retrieves a previously created agent response by its unique ID. When stream=true, returns Server-Sent Events for real-time updates on in-progress background responses. - [Update a response](https://docs.mka1.com/api-reference/responses/update-a-response.md): Update a response's metadata. - [Permanently delete a response and its data](https://docs.mka1.com/api-reference/responses/permanently-delete-a-response-and-its-data.md): Permanently deletes an agent response and all associated data. - [Cancel an in-progress background response](https://docs.mka1.com/api-reference/responses/cancel-an-in-progress-background-response.md): Cancels an agent response that is currently processing in the background. - [Wake a sleeping background response](https://docs.mka1.com/api-reference/responses/wake-a-sleeping-background-response.md): Interrupts a short sleep tool call on an in-progress background response by providing follow-up input. Wake delivery is polled by the sleeping agent and may take up to one second. - [List paginated input items for a response](https://docs.mka1.com/api-reference/responses/list-paginated-input-items-for-a-response.md): Retrieves a paginated list of all input items provided when creating the specified agent response. - [Compact a conversation](https://docs.mka1.com/api-reference/responses/compact-a-conversation.md): Creates a compacted summary of the conversation history for a response, reducing context size while preserving key information. Returns a compacted response object. #### Conversations - [Create a conversation](https://docs.mka1.com/api-reference/conversations/create-a-conversation.md): Create a conversation to store and retrieve conversation state across Response API calls. - [List conversations](https://docs.mka1.com/api-reference/conversations/list-conversations.md): List all conversations for the authenticated user with pagination support. - [Retrieve a conversation](https://docs.mka1.com/api-reference/conversations/retrieve-a-conversation.md): Get a conversation by ID. - [Update a conversation](https://docs.mka1.com/api-reference/conversations/update-a-conversation.md): Update a conversation's metadata. - [Delete a conversation](https://docs.mka1.com/api-reference/conversations/delete-a-conversation.md): Delete a conversation. Items in the conversation will not be deleted. - [List conversation items](https://docs.mka1.com/api-reference/conversations/list-conversation-items.md): List all items for a conversation with the given ID. - [Create conversation items](https://docs.mka1.com/api-reference/conversations/create-conversation-items.md): Create items in a conversation with the given ID. - [Delete multiple conversation items](https://docs.mka1.com/api-reference/conversations/delete-multiple-conversation-items.md): Delete multiple items from a conversation with the given ID. - [Retrieve a conversation item](https://docs.mka1.com/api-reference/conversations/retrieve-a-conversation-item.md): Get a single item from a conversation with the given IDs. - [Delete a conversation item](https://docs.mka1.com/api-reference/conversations/delete-a-conversation-item.md): Delete an item from a conversation with the given ID. ### Models and routing #### Models - [List available models](https://docs.mka1.com/api-reference/models/list-available-models.md): Lists the currently available models. Provides basic information about each model including its ID and owner. - [Retrieve a model](https://docs.mka1.com/api-reference/models/retrieve-a-model.md): Retrieves a model instance, providing basic information about the model such as the owner and supported capabilities. - [Read a model's token quota](https://docs.mka1.com/api-reference/models/read-a-models-token-quota.md): Read applicable token limits without consuming tokens or starting a window. Organization limits may be shared across models. Use a concrete active model, not auto. Omit selectors for the authenticated caller's context, including its delegated external user. Human sessions may select an authorized ap… - [Get an organization's token quota](https://docs.mka1.com/api-reference/models/get-an-organizations-token-quota.md): Cluster-admin read of the aggregate token policy across all models. An absent or disabled quota returns enabled: false with null limit and period. Does not require a model or change the active organization. - [Set an organization's token quota](https://docs.mka1.com/api-reference/models/set-an-organizations-token-quota.md): Cluster admins may create or replace the minute/day/month token allowance, or disable it with enabled: false. Changes apply to new admissions within 10 seconds; admitted requests finish. Limit changes preserve usage. Period changes use that period's calendar bucket; usage while disabled is not count… - [List every organization's budget-enforcement override](https://docs.mka1.com/api-reference/models/list-every-organizations-budget-enforcement-override.md): Cluster-admin inventory of the organizations that hold a budget-enforcement override, with the cluster default and each one's effective mode — what to review before flipping the cluster default, and where to look when an organization is being refused with `budget_check_unavailable`. Organizations th… - [Get an organization's budget-enforcement setting](https://docs.mka1.com/api-reference/models/get-an-organizations-budget-enforcement-setting.md): What the spend gate does for this organization's billable requests when the budget check cannot be made (budgeting unreachable or degraded): `allow` admits them, `block` refuses them with 503 `budget_check_unavailable`. Returns the organization's own setting (null = inherits), the cluster default an… - [Set an organization's budget-enforcement setting](https://docs.mka1.com/api-reference/models/set-an-organizations-budget-enforcement-setting.md): Choose `block` to refuse this organization's billable requests whenever the budget check is unavailable (fail closed), `allow` to admit them (fail open), or `null` to inherit the cluster default again. Applies to new admissions within 10 seconds on every gateway replica. Cluster admins may set any o… - [List the organization's model catalog](https://docs.mka1.com/api-reference/models/list-the-organizations-model-catalog.md): Lists all BYO, serving, and cluster-access definitions with activation state, blocker, health, and price preview. - [Define a BYO catalog model](https://docs.mka1.com/api-reference/models/define-a-byo-catalog-model.md): Creates an API-owned BYO definition without activating its name. - [Update a BYO catalog model](https://docs.mka1.com/api-reference/models/update-a-byo-catalog-model.md): Updates an API-owned BYO definition; yaml-origin entries are file-managed and immutable through this API. - [Remove a BYO catalog model](https://docs.mka1.com/api-reference/models/remove-a-byo-catalog-model.md): Withdraws a BYO definition and deactivates it only when the active name is sourced from that BYO lineage. - [Check a BYO catalog model's health](https://docs.mka1.com/api-reference/models/check-a-byo-catalog-models-health.md): Probes an available BYO definition whether or not it is active. A definition without a health check has nothing to probe and reports `status: unknown`. - [List an organization's cluster model access](https://docs.mka1.com/api-reference/models/list-an-organizations-cluster-model-access.md): Cluster operator view of an org's available cluster catalog entries and their activation state. - [Add cluster model access for an organization](https://docs.mka1.com/api-reference/models/add-cluster-model-access-for-an-organization.md): Idempotently adds availability without revoking any model names. Set activate to true to also activate every requested model from the cluster source in the target organization. Grants and activations are atomic per request; a name active from another source returns 409 without changing access or act… - [Replace an organization's cluster model access](https://docs.mka1.com/api-reference/models/replace-an-organizations-cluster-model-access.md): Serializable full replacement; revoked active cluster names are deactivated and their org price rows are closed. - [List organizations with access to a cluster model](https://docs.mka1.com/api-reference/models/list-organizations-with-access-to-a-cluster-model.md): Cluster operator reverse lookup showing availability and activation for one cluster catalog id. - [List the organization's active model registry](https://docs.mka1.com/api-reference/models/list-the-organizations-active-model-registry.md): Single management view of every active name with source-qualified definition, health, price, and activation audit details. - [Activate a catalog entry](https://docs.mka1.com/api-reference/models/activate-a-catalog-entry.md): Claims a model name from one catalog source. Re-activation from the same source is idempotent; a different holder returns 409. - [Deactivate a model registry name](https://docs.mka1.com/api-reference/models/deactivate-a-model-registry-name.md): Idempotently removes the active name and closes its org-scope price rows without touching the catalog definition. - [List this org's auto-model overrides](https://docs.mka1.com/api-reference/models/list-this-orgs-auto-model-overrides.md): Returns every endpoint for which this org has set its own `"auto"` target. Endpoints not listed fall through to the operator's YAML defaults. - [Set this org's auto policy for an endpoint](https://docs.mka1.com/api-reference/models/set-this-orgs-auto-policy-for-an-endpoint.md): Stores either the existing direct `{ endpoint → model_id }` alias or a judge policy with candidate models. Judge routing is supported for responses, completions, transcriptions, and TTS. The judge must be a non-reasoning text LLM. All configured models must be active when written; revoked candidates… - [Clear this org's auto-model override for an endpoint](https://docs.mka1.com/api-reference/models/clear-this-orgs-auto-model-override-for-an-endpoint.md): Removes the per-org override for the endpoint. Subsequent `model: "auto"` requests fall through to the operator's YAML default again. - [Get the cluster currency](https://docs.mka1.com/api-reference/models/get-the-cluster-currency.md): Returns the single cluster-wide ISO-4217 currency code (null if not set). - [Set the cluster currency](https://docs.mka1.com/api-reference/models/set-the-cluster-currency.md): Sets the cluster-wide currency. Changing it does not auto-convert existing prices. - [List cluster-default model prices](https://docs.mka1.com/api-reference/models/list-cluster-default-model-prices.md): Without `model`, lists every model's current cluster-default price. With `model`, returns that model's full dated history. - [Set a cluster-default model price](https://docs.mka1.com/api-reference/models/set-a-cluster-default-model-price.md): Upserts the cluster-default price for a model as a new dated version. `rates` is a flexible metric→rate map; omitted metrics are not charged. - [Clear a cluster-default model price](https://docs.mka1.com/api-reference/models/clear-a-cluster-default-model-price.md): Closes the cluster-default price. Active cluster lineage then uses an org override or becomes unpriced ($0). - [List an org's price overrides](https://docs.mka1.com/api-reference/models/list-an-orgs-price-overrides.md): Without `model`, lists the org's current overrides. With `model`, returns that override's dated history. - [Set an org price override](https://docs.mka1.com/api-reference/models/set-an-org-price-override.md): Upserts a dated per-org price. Cluster lineage falls back to the cluster default; BYO and serving lineage become unpriced when no org row exists. - [Clear an org price override](https://docs.mka1.com/api-reference/models/clear-an-org-price-override.md): Closes a per-org price. Only active cluster lineage can then fall back to the cluster default. - [List effective prices for the caller's models](https://docs.mka1.com/api-reference/models/list-effective-prices-for-the-callers-models.md): For every active model, returns its registry-aware price: an org row, a cluster default for cluster lineage, or unpriced ($0). Also lists the `auto` routing alias, priced at the per-metric maximum across every model it can be billed as (`resolves_to`): a judge policy's active candidates, or the dire… #### Embeddings - [List available embedding models](https://docs.mka1.com/api-reference/embeddings/list-available-embedding-models.md): Returns a list of available embedding models with their limits. Use this endpoint to discover which models are available and their constraints (batch size, input length) before making embedding requests. - [Create text embeddings](https://docs.mka1.com/api-reference/embeddings/create-text-embeddings.md): Generates vector embeddings for single or multiple text inputs. Returns floating-point vectors along with token usage statistics. #### Text Classification - [Classify text into predefined categories](https://docs.mka1.com/api-reference/text-classification/classify-text-into-predefined-categories.md): Classifies text content into one of the provided predefined labels. ### Images and audio #### Images - [Generate images from text descriptions](https://docs.mka1.com/api-reference/images/generate-images-from-text-descriptions.md): Creates AI-generated images from text descriptions. #### Speech - [Speech to text transcription](https://docs.mka1.com/api-reference/speech/speech-to-text-transcription.md): Convert audio to text using advanced speech recognition. - [Text to speech](https://docs.mka1.com/api-reference/speech/text-to-speech.md): Convert text to speech with automatic language detection. - [Streaming text to speech](https://docs.mka1.com/api-reference/speech/streaming-text-to-speech.md): Convert text to speech with real-time streaming audio delivery. - [Generate LiveKit room token](https://docs.mka1.com/api-reference/speech/generate-livekit-room-token.md): Generates a LiveKit access token for joining a real-time voice room. The token includes encrypted credentials and model configuration for the voice agent. - [List text-to-speech history](https://docs.mka1.com/api-reference/speech/list-text-to-speech-history.md): List stored text-to-speech generations for the authenticated user, newest first by default. - [Retrieve text-to-speech history item](https://docs.mka1.com/api-reference/speech/retrieve-text-to-speech-history-item.md): Returns metadata for a stored text-to-speech generation. - [Delete text-to-speech history item](https://docs.mka1.com/api-reference/speech/delete-text-to-speech-history-item.md): Deletes a stored text-to-speech generation. The audio blob is content-addressed and may be shared, so it is left in storage. - [Retrieve text-to-speech audio](https://docs.mka1.com/api-reference/speech/retrieve-text-to-speech-audio.md): Returns the stored audio for a text-to-speech generation as a binary response. - [List speech-to-text history](https://docs.mka1.com/api-reference/speech/list-speech-to-text-history.md): List stored transcriptions for the authenticated user, newest first by default. - [Retrieve speech-to-text history item](https://docs.mka1.com/api-reference/speech/retrieve-speech-to-text-history-item.md): Returns metadata for a stored transcription. - [Delete speech-to-text history item](https://docs.mka1.com/api-reference/speech/delete-speech-to-text-history-item.md): Deletes a stored transcription. The audio blob is content-addressed and may be shared, so it is left in storage. - [Retrieve speech-to-text audio](https://docs.mka1.com/api-reference/speech/retrieve-speech-to-text-audio.md): Returns the stored input audio for a transcription as a binary response. ### Files and retrieval #### Files - [Upload file](https://docs.mka1.com/api-reference/files/upload-file.md): Upload a file that can be used with Assistants, Vector Stores, and other features. Files are uploaded to S3 for durable storage. - [List files](https://docs.mka1.com/api-reference/files/list-files.md): Returns a list of files that have been uploaded. - [Retrieve file](https://docs.mka1.com/api-reference/files/retrieve-file.md): Returns information about a specific file. - [Delete file](https://docs.mka1.com/api-reference/files/delete-file.md): Delete a file from storage. The file is first removed from every vector store it is attached to, embeddings included, so it no longer appears in vector store search or `file_search` results. If that cannot finish, the file is kept and the request fails; retrying completes the deletion. Returns 400 `… - [Retrieve file content](https://docs.mka1.com/api-reference/files/retrieve-file-content.md): Returns the raw binary contents of the specified file with appropriate Content-Type header. #### Vector Stores - [Create a vector store](https://docs.mka1.com/api-reference/vector-stores/create-a-vector-store.md): Creates a new vector store for storing and searching through document embeddings. With file_ids, two files of the same content in the request are refused with 409 before the store is created. - [List vector stores](https://docs.mka1.com/api-reference/vector-stores/list-vector-stores.md): Retrieves a paginated list of all vector stores for the authenticated user. - [Retrieve a vector store](https://docs.mka1.com/api-reference/vector-stores/retrieve-a-vector-store.md): Retrieves a vector store by its ID. Returns 410 once the vector store has expired. - [Modify a vector store](https://docs.mka1.com/api-reference/vector-stores/modify-a-vector-store.md): Updates the name, description, expiration policy or metadata of an existing vector store. The embedding model, embedding dimensions, retrieval mode, extraction model and max hops are fixed when a store is created, and chunking is set per attached file: sending any of them returns 400 with a message… - [Delete a vector store](https://docs.mka1.com/api-reference/vector-stores/delete-a-vector-store.md): Permanently deletes a vector store and its associated embeddings. - [Search a vector store](https://docs.mka1.com/api-reference/vector-stores/search-a-vector-store.md): Performs semantic search within a vector store to find the most relevant document chunks for a query. Returns 410 once the vector store has expired. - [Add a file to a vector store](https://docs.mka1.com/api-reference/vector-stores/add-a-file-to-a-vector-store.md): Adds a file to a vector store for semantic search indexing. Returns 409 when the store already holds a file with the same content (the error names that file; the store indexes each content once), 410 once the vector store has expired. - [List files in a vector store](https://docs.mka1.com/api-reference/vector-stores/list-files-in-a-vector-store.md): Retrieves a paginated list of all files in a specific vector store. Returns 410 once the vector store has expired. - [Retrieve a vector store file](https://docs.mka1.com/api-reference/vector-stores/retrieve-a-vector-store-file.md): Retrieves detailed information about a specific file within a vector store. Returns 410 once the vector store has expired. - [Update file attributes](https://docs.mka1.com/api-reference/vector-stores/update-file-attributes.md): Updates the metadata attributes attached to a file within a vector store. Returns 410 once the vector store has expired. - [Remove file from vector store](https://docs.mka1.com/api-reference/vector-stores/remove-file-from-vector-store.md): Removes a file from a vector store and deletes its associated embeddings. If the file is no longer attached but the vector store still holds embeddings for it (for example, left behind by an earlier file deletion), those embeddings are deleted and the request succeeds, provided the file was deleted… - [Retrieve parsed file content](https://docs.mka1.com/api-reference/vector-stores/retrieve-parsed-file-content.md): Retrieves the complete parsed contents of a file within a vector store. Returns 410 once the vector store has expired. - [Batch add multiple files to vector store](https://docs.mka1.com/api-reference/vector-stores/batch-add-multiple-files-to-vector-store.md): Adds multiple files to a vector store in a single batch operation. A file with the same content as one the store already holds, or as an earlier file in the batch, fails the batch with 409 unless skip_duplicates is set, in which case it is recorded as cancelled with duplicate_file and the rest are a… - [Retrieve file batch status](https://docs.mka1.com/api-reference/vector-stores/retrieve-file-batch-status.md): Retrieves the status of a specific file batch operation within a vector store. Returns 410 once the vector store has expired. - [Cancel batch file processing](https://docs.mka1.com/api-reference/vector-stores/cancel-batch-file-processing.md): Cancels an in-progress file batch operation. Returns 410 once the vector store has expired. - [List files in a batch](https://docs.mka1.com/api-reference/vector-stores/list-files-in-a-batch.md): Retrieves a paginated list of all files within a specific batch operation. Returns 410 once the vector store has expired. - [List vector store permissions](https://docs.mka1.com/api-reference/vector-stores/list-vector-store-permissions.md): Lists who holds a role on the vector store: its owner, then its team when that permission is set, then individual principals. Anyone who can read the store can list its permissions. Organization admins of the store's team can always read it and are not listed. Returns 410 once the vector store has e… - [Grant a vector store permission](https://docs.mka1.com/api-reference/vector-stores/grant-a-vector-store-permission.md): Grants `reader` or `writer` on the vector store to one principal, or to every member of the store's team (`grantee_type: team`), replacing any role that principal already held. Only the store's owner or an organization admin of its team can grant (403 otherwise). The owner's role is fixed at creatio… - [Retrieve a vector store permission](https://docs.mka1.com/api-reference/vector-stores/retrieve-a-vector-store-permission.md): Returns the role a principal effectively holds on the vector store and where it comes from: `owner`, a permission granted to it (`grant`), the store's `team` permission, or `none`. A principal with `none` can still reach the store as an organization admin of its team; that is decided per request fro… - [Remove a vector store permission](https://docs.mka1.com/api-reference/vector-stores/remove-a-vector-store-permission.md): Removes every role the principal holds on the vector store, or the `team` permission. Only the store's owner or an organization admin of its team can remove permissions (403 otherwise); the owner's own permission cannot be removed. 404 when the principal holds no permission. Returns 410 once the vec… ### Agents #### Agents - [List reusable function tools](https://docs.mka1.com/api-reference/agents/list-reusable-function-tools.md) - [Create a reusable function tool](https://docs.mka1.com/api-reference/agents/create-a-reusable-function-tool.md) - [Get a reusable function tool](https://docs.mka1.com/api-reference/agents/get-a-reusable-function-tool.md) - [Replace a reusable function definition](https://docs.mka1.com/api-reference/agents/replace-a-reusable-function-definition.md): Updates apply to every attached agent on its next run. Existing run snapshots are immutable. - [Delete a reusable function tool](https://docs.mka1.com/api-reference/agents/delete-a-reusable-function-tool.md): Attached agents fail until the unavailable reference is removed. Existing run snapshots remain usable. - [List imported OpenAPI tool sets](https://docs.mka1.com/api-reference/agents/list-imported-openapi-tool-sets.md) - [Import an OpenAPI document as a tool set](https://docs.mka1.com/api-reference/agents/import-an-openapi-document-as-a-tool-set.md): Parses an OpenAPI 3.0 or 3.1 document (JSON or YAML, sent in the body; it is never fetched from a URL) and stores its supported operations as tools an agent can call. Operations that cannot be called faithfully are listed in `skipped_operations`; selecting one with `operations` rejects the import in… - [Get an imported OpenAPI tool set](https://docs.mka1.com/api-reference/agents/get-an-imported-openapi-tool-set.md) - [Replace an OpenAPI tool set with a new import](https://docs.mka1.com/api-reference/agents/replace-an-openapi-tool-set-with-a-new-import.md): Applies to every attached agent on its next run. Existing run snapshots are immutable. - [Delete an OpenAPI tool set](https://docs.mka1.com/api-reference/agents/delete-an-openapi-tool-set.md): Attached agents fail until the unavailable reference is removed. Existing run snapshots remain usable. - [List agents](https://docs.mka1.com/api-reference/agents/list-agents.md) - [Create an agent](https://docs.mka1.com/api-reference/agents/create-an-agent.md) - [Retrieve an agent](https://docs.mka1.com/api-reference/agents/retrieve-an-agent.md) - [Update an agent](https://docs.mka1.com/api-reference/agents/update-an-agent.md) - [Soft-delete an agent](https://docs.mka1.com/api-reference/agents/soft-delete-an-agent.md): Preserves configuration versions and run history for audit. The restore deadline is pinned using AGENT_RETENTION_DAYS at deletion. - [Restore a soft-deleted agent](https://docs.mka1.com/api-reference/agents/restore-a-soft-deleted-agent.md): Restores the original configuration and history before retention_expires_at. Requires write:agents in the original mutation tenancy. Schedules remain paused. #### Agent Versions - [List agent versions](https://docs.mka1.com/api-reference/agent-versions/list-agent-versions.md): Lists the configuration history for an agent. Each committed change (create, update, rollback) appends a version. - [Retrieve an agent version](https://docs.mka1.com/api-reference/agent-versions/retrieve-an-agent-version.md) - [Roll back an agent to a version](https://docs.mka1.com/api-reference/agent-versions/roll-back-an-agent-to-a-version.md): Restores the target version's configuration as a new current version. History is preserved: the restore is appended as a new version rather than deleting later ones. #### Agent Runs - [List runs for an agent](https://docs.mka1.com/api-reference/agent-runs/list-runs-for-an-agent.md) - [Start a saved agent run](https://docs.mka1.com/api-reference/agent-runs/start-a-saved-agent-run.md): Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress. When the agent is already running max_concurrent_runs runs, concurrency_overflow decides: reject returns 429 with error… - [Stream agent run events](https://docs.mka1.com/api-reference/agent-runs/stream-agent-run-events.md): Streams Server-Sent Events for the gateway response linked to this agent run. Terminal runs emit a single terminal event and close. - [Cancel a saved-agent run](https://docs.mka1.com/api-reference/agent-runs/cancel-a-saved-agent-run.md): Cancels a waiting or queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gate… - [Wake a sleeping agent run](https://docs.mka1.com/api-reference/agent-runs/wake-a-sleeping-agent-run.md): Interrupts a short sleep tool call on a background run by forwarding follow-up input to the gateway response. - [Approve or deny a pending MCP tool call](https://docs.mka1.com/api-reference/agent-runs/approve-or-deny-a-pending-mcp-tool-call.md): Creates a continuation run for an mcp_approval_request emitted by the source run. The gateway binds the single-use decision to the original server, tool, and arguments; denying never invokes the remote MCP tool. - [Retrieve an agent run](https://docs.mka1.com/api-reference/agent-runs/retrieve-an-agent-run.md) #### Agent Connectors - [List connectors for an agent](https://docs.mka1.com/api-reference/agent-connectors/list-connectors-for-an-agent.md): Lists messaging-channel connectors configured for the agent. Connector credentials are never returned. - [Create a connector](https://docs.mka1.com/api-reference/agent-connectors/create-a-connector.md): Connects the agent to a Telegram bot or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. WhatsApp connector support is beta. Text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Mana… - [Set up a WhatsApp app webhook (Beta)](https://docs.mka1.com/api-reference/agent-connectors/set-up-a-whatsapp-app-webhook-beta.md): Beta. Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token. - [Retrieve a connector](https://docs.mka1.com/api-reference/agent-connectors/retrieve-a-connector.md): Retrieves connector configuration and status without exposing credentials. - [Delete a connector](https://docs.mka1.com/api-reference/agent-connectors/delete-a-connector.md): Unregisters the connector-specific provider webhook and deletes the stored connector credentials. Telegram pending updates are dropped; WhatsApp deletion clears only the phone-number callback and does not unsubscribe other numbers in the business account. Deleting a web connector disables its embed… - [Activate a connector](https://docs.mka1.com/api-reference/agent-connectors/activate-a-connector.md): Revalidates the stored provider credentials and registers the provider webhook. Use this to retry a connector left in an error state. API-key authentication with every listed scope is required; session authentication is rejected, and the key must belong to the connector's original user or service-ac… #### Agent Schedules - [List schedules for an agent](https://docs.mka1.com/api-reference/agent-schedules/list-schedules-for-an-agent.md) - [Create an agent schedule](https://docs.mka1.com/api-reference/agent-schedules/create-an-agent-schedule.md): Creates a Temporal-backed one-time, interval, or cron schedule that starts normal saved agent runs. - [Retrieve an agent schedule](https://docs.mka1.com/api-reference/agent-schedules/retrieve-an-agent-schedule.md) - [Update an agent schedule](https://docs.mka1.com/api-reference/agent-schedules/update-an-agent-schedule.md) - [Delete an agent schedule](https://docs.mka1.com/api-reference/agent-schedules/delete-an-agent-schedule.md) - [Pause an agent schedule](https://docs.mka1.com/api-reference/agent-schedules/pause-an-agent-schedule.md) - [Resume an agent schedule](https://docs.mka1.com/api-reference/agent-schedules/resume-an-agent-schedule.md) #### Memory Stores - [Create memory store](https://docs.mka1.com/api-reference/memory-stores/create-memory-store.md): Creates a memory store for persistent agent notes. Stores are private by default and can be shared across the workspace. - [List memory stores](https://docs.mka1.com/api-reference/memory-stores/list-memory-stores.md) - [Retrieve memory store](https://docs.mka1.com/api-reference/memory-stores/retrieve-memory-store.md) - [Update memory store](https://docs.mka1.com/api-reference/memory-stores/update-memory-store.md) - [Delete memory store](https://docs.mka1.com/api-reference/memory-stores/delete-memory-store.md) - [Create memory entry](https://docs.mka1.com/api-reference/memory-stores/create-memory-entry.md) - [List memory entries](https://docs.mka1.com/api-reference/memory-stores/list-memory-entries.md) - [Retrieve memory entry](https://docs.mka1.com/api-reference/memory-stores/retrieve-memory-entry.md) - [Update memory entry](https://docs.mka1.com/api-reference/memory-stores/update-memory-entry.md) - [Delete memory entry](https://docs.mka1.com/api-reference/memory-stores/delete-memory-entry.md) ### Compute #### Compute Jobs - [List jobs](https://docs.mka1.com/api-reference/compute-jobs/list-jobs.md) - [Create a job](https://docs.mka1.com/api-reference/compute-jobs/create-a-job.md) - [Get a job](https://docs.mka1.com/api-reference/compute-jobs/get-a-job.md) - [List job events](https://docs.mka1.com/api-reference/compute-jobs/list-job-events.md) - [List observed job instances](https://docs.mka1.com/api-reference/compute-jobs/list-observed-job-instances.md) - [List job logs](https://docs.mka1.com/api-reference/compute-jobs/list-job-logs.md) - [Terminate a job](https://docs.mka1.com/api-reference/compute-jobs/terminate-a-job.md) #### Compute Services - [List services](https://docs.mka1.com/api-reference/compute-services/list-services.md) - [Create a service](https://docs.mka1.com/api-reference/compute-services/create-a-service.md) - [Get a service](https://docs.mka1.com/api-reference/compute-services/get-a-service.md) - [List service events](https://docs.mka1.com/api-reference/compute-services/list-service-events.md) - [List observed service instances](https://docs.mka1.com/api-reference/compute-services/list-observed-service-instances.md) - [List service logs](https://docs.mka1.com/api-reference/compute-services/list-service-logs.md) - [Replace a service scaling policy](https://docs.mka1.com/api-reference/compute-services/replace-a-service-scaling-policy.md) - [Terminate a service](https://docs.mka1.com/api-reference/compute-services/terminate-a-service.md) #### Compute Catalog - [List accelerators](https://docs.mka1.com/api-reference/compute-catalog/list-accelerators.md) - [Get an accelerator](https://docs.mka1.com/api-reference/compute-catalog/get-an-accelerator.md) - [List provider offers](https://docs.mka1.com/api-reference/compute-catalog/list-provider-offers.md): Cluster administrators may always read this route. Organization administrators may read it only when provider anonymity is disabled. - [List provider health](https://docs.mka1.com/api-reference/compute-catalog/list-provider-health.md): Cluster administrators may always read this route. Organization administrators may read it only when provider anonymity is disabled. - [Create a quote](https://docs.mka1.com/api-reference/compute-catalog/create-a-quote.md) #### Compute Secrets - [List secrets](https://docs.mka1.com/api-reference/compute-secrets/list-secrets.md) - [Create a secret](https://docs.mka1.com/api-reference/compute-secrets/create-a-secret.md) - [Delete a secret](https://docs.mka1.com/api-reference/compute-secrets/delete-a-secret.md) - [Get a secret](https://docs.mka1.com/api-reference/compute-secrets/get-a-secret.md) - [Rotate a secret](https://docs.mka1.com/api-reference/compute-secrets/rotate-a-secret.md): Replaces every value of the secret under the same id and increments its version. Resources that reference it read the new values at their next launch, retry or restart; running workloads keep the values they started with. The new keys must include every key a live resource references. The expiry is… #### Compute Volumes - [List organization volumes](https://docs.mka1.com/api-reference/compute-volumes/list-organization-volumes.md): Lists the organization's volumes, newest first. Deleted volumes are omitted unless `status` is `deleted`; a deleted volume also stays readable by id. - [Create a standalone shared volume](https://docs.mka1.com/api-reference/compute-volumes/create-a-standalone-shared-volume.md) - [Permanently delete a standalone volume](https://docs.mka1.com/api-reference/compute-volumes/permanently-delete-a-standalone-volume.md): Deletion bypasses tenant enablement and budget gates, but is refused while non-terminal attachments exist. - [Get a standalone volume](https://docs.mka1.com/api-reference/compute-volumes/get-a-standalone-volume.md) - [List volume attachments](https://docs.mka1.com/api-reference/compute-volumes/list-volume-attachments.md) #### Compute Usage - [Get usage](https://docs.mka1.com/api-reference/compute-usage/get-usage.md) #### Compute Tenants - [List tenants](https://docs.mka1.com/api-reference/compute-tenants/list-tenants.md): Cluster-administrator-only. - [Get a tenant](https://docs.mka1.com/api-reference/compute-tenants/get-a-tenant.md): Cluster-administrator-only. - [Update a tenant](https://docs.mka1.com/api-reference/compute-tenants/update-a-tenant.md): Cluster-administrator-only idempotent upsert. #### Compute Pricing - [Get the latest committed storage price](https://docs.mka1.com/api-reference/compute-pricing/get-the-latest-committed-storage-price.md): The latest version may be scheduled for the next UTC hour. Before the first version is written this route returns pricing_not_configured. - [Create an immutable storage-price version](https://docs.mka1.com/api-reference/compute-pricing/create-an-immutable-storage-price-version.md): Cluster administrators only. If-Match: 0 performs the explicit bootstrap. Every version activates at the next UTC-hour boundary; equivalent idempotent replay precedes version comparison. #### Tracking Experiments - [Create](https://docs.mka1.com/api-reference/tracking-experiments/create.md): Create a namespaced experiment. Artifact locations are managed by the service. Requires `write:tracking`. Results are restricted to the API key organization and team. - [Search](https://docs.mka1.com/api-reference/tracking-experiments/search.md): Requires `read:tracking`. Results are restricted to the API key organization and team. - [Get](https://docs.mka1.com/api-reference/tracking-experiments/get.md): Requires `read:tracking`. Results are restricted to the API key organization and team. - [GetByName](https://docs.mka1.com/api-reference/tracking-experiments/getbyname.md): Requires `read:tracking`. Results are restricted to the API key organization and team. - [Delete](https://docs.mka1.com/api-reference/tracking-experiments/delete.md): Requires `write:tracking`. Results are restricted to the API key organization and team. #### Tracking Runs - [Create](https://docs.mka1.com/api-reference/tracking-runs/create.md): Requires `write:tracking`. Results are restricted to the API key organization and team. - [Get](https://docs.mka1.com/api-reference/tracking-runs/get.md): Requires `read:tracking`. Results are restricted to the API key organization and team. - [Search](https://docs.mka1.com/api-reference/tracking-runs/search.md): Explicit experiment IDs are required; every experiment must belong to the caller. Requires `read:tracking`. Results are restricted to the API key organization and team. - [Update](https://docs.mka1.com/api-reference/tracking-runs/update.md): Requires `write:tracking`. Results are restricted to the API key organization and team. - [Delete](https://docs.mka1.com/api-reference/tracking-runs/delete.md): Requires `write:tracking`. Results are restricted to the API key organization and team. - [Restore](https://docs.mka1.com/api-reference/tracking-runs/restore.md): Requires `write:tracking`. Results are restricted to the API key organization and team. - [LogMetric](https://docs.mka1.com/api-reference/tracking-runs/logmetric.md): Requiere `write:tracking`. Los resultados están restringidos a la organización y al equipo de la clave de API. - [LogParameter](https://docs.mka1.com/api-reference/tracking-runs/logparameter.md): Requiere `write:tracking`. Los resultados están restringidos a la organización y al equipo de la clave de API. - [SetTag](https://docs.mka1.com/api-reference/tracking-runs/settag.md): Requires `write:tracking`. Results are restricted to the API key organization and team. - [DeleteTag](https://docs.mka1.com/api-reference/tracking-runs/deletetag.md): Requires `write:tracking`. Results are restricted to the API key organization and team. - [LogBatch](https://docs.mka1.com/api-reference/tracking-runs/logbatch.md): Requires `write:tracking`. Results are restricted to the API key organization and team. - [LogInputs](https://docs.mka1.com/api-reference/tracking-runs/loginputs.md): Requires `write:tracking`. Results are restricted to the API key organization and team. - [GetMetricHistory](https://docs.mka1.com/api-reference/tracking-runs/getmetrichistory.md): Requires `read:tracking`. Results are restricted to the API key organization and team. ### Repositories #### Repositories - [List the caller's org's repositories](https://docs.mka1.com/api-reference/repositories/list-the-callers-orgs-repositories.md): Returns every repository in the caller's org (org owner/admin only). Read-only. With `kind`, only repositories of that kind; an untyped (legacy, `kind: null`) repository appears in the unfiltered listing only. - [Create a repository](https://docs.mka1.com/api-reference/repositories/create-a-repository.md): Provisions a repository (org owner/admin only); a failed provision is rolled back best-effort (see the `502`). The repository belongs to the caller's org. `kind` says what it will hold and defaults to `repo` (a plain git repository); it decides which protocol planes answer for the name (see the `Rep… - [Delete a repository](https://docs.mka1.com/api-reference/repositories/delete-a-repository.md): Removes a repository; org owner/admin only. The deletion is authoritative; the contents are cleaned up best-effort. - [Get a repository](https://docs.mka1.com/api-reference/repositories/get-a-repository.md): Reads a single repository after the org+role access check (org owner/admin of the repository's org only). - [Update a repository's labels](https://docs.mka1.com/api-reference/repositories/update-a-repositorys-labels.md): Applies a label-only update (name/description/kind); org owner/admin only. The repository id is stable, so a rename touches no contents. Omitted fields are left unchanged. #### Image tags - [List an image repository's tags](https://docs.mka1.com/api-reference/repositories/list-an-image-repositorys-tags.md): Lists the container-image tags a repository holds, newest-moved first, each with the manifest it points at, the manifest's media type, the image's declared size and when the tag last moved. The same access check as reading the repository (org owner/admin; `read:repos` for a key). - [Delete an image tag](https://docs.mka1.com/api-reference/repositories/delete-an-image-tag.md): Removes one tag; org owner/admin only (`write:repos` for a key). The same untag as the registry's `DELETE /v2/{org}/{name}/manifests/{tag}`: the name goes and the image stays, reachable by digest and by any other tag that names it. ### Dataset generations #### Generations - [List Generations](https://docs.mka1.com/api-reference/generations/list-generations.md) - [Create Generation](https://docs.mka1.com/api-reference/generations/create-generation.md): The components.md §6 D.1 sequence, in its order: a credential is minted before anything is spent and revoked before the response leaves, nothing is written before the digest is pinned, and the workflow starts only after the row is committed. - [Get Generation](https://docs.mka1.com/api-reference/generations/get-generation.md) - [Get Logs](https://docs.mka1.com/api-reference/generations/get-logs.md) - [Get Events](https://docs.mka1.com/api-reference/generations/get-events.md) - [Cancel Generation](https://docs.mka1.com/api-reference/generations/cancel-generation.md): api.md §3: `cancelling` is written here, then the signal; a `cancelling` row whose signal was lost (the retry case) is signalled again. #### Generators - [List Generators](https://docs.mka1.com/api-reference/generators/list-generators.md) - [Get Generator](https://docs.mka1.com/api-reference/generators/get-generator.md) - [Quote Generator](https://docs.mka1.com/api-reference/generators/quote-generator.md) #### Formats - [List Formats](https://docs.mka1.com/api-reference/formats/list-formats.md) - [Get Format](https://docs.mka1.com/api-reference/formats/get-format.md) ### Organizations and access #### Organization - [List organization members](https://docs.mka1.com/api-reference/organization/list-organization-members.md): Requires organization membership and read:org for API keys. Returns up to 100 members with directory-management status. - [List organization invitation history](https://docs.mka1.com/api-reference/organization/list-organization-invitation-history.md): Requires a live browser session with the target organization active and a current human owner/admin membership. Cluster membership does not grant access to another organization. Returns all invitation lifecycle states, including expired pending records, with stored role and every assigned team ID in… - [Invite an organization member](https://docs.mka1.com/api-reference/organization/invite-an-organization-member.md): Requires current organization owner/admin and write:org for API keys. Invites member/admin to the default team. A matching retry preserves the invitation role; resend explicitly retries delivery. Directory-managed users must be managed at their directory. email_failed means the invitation was saved… - [Change an organization member's role](https://docs.mka1.com/api-reference/organization/change-an-organization-members-role.md): Requires current organization owner/admin and write:org for API keys. Assigns member/admin to human members. Owners and directory-managed members cannot be changed through this endpoint. - [Remove an organization member](https://docs.mka1.com/api-reference/organization/remove-an-organization-member.md): Requires current organization owner/admin and write:org for API keys. Removes the human member's organization/team memberships and cancels pending invitations in this organization. Owners and directory-managed members are protected; other organizations are unchanged. - [Read enterprise SSO role mapping policy](https://docs.mka1.com/api-reference/organization/read-enterprise-sso-role-mapping-policy.md): Requires a live human browser session and current owner/admin membership in the connection's active customer organization. API keys are not accepted. - [Update enterprise SSO role mapping policy](https://docs.mka1.com/api-reference/organization/update-enterprise-sso-role-mapping-policy.md): Requires a live human browser session and current owner/admin membership. Enabling a connection requires verified domain ownership. Exact IdP group mappings grant member or admin on subsequent SSO logins; owners are preserved. - [Read current network policy management access](https://docs.mka1.com/api-reference/organization/read-current-network-policy-management-access.md): Current human membership and administrator permissions, verified with cookie caching disabled. A signed-in session is required; API keys cannot administer network policy. Expected IDs must match the active workspace. - [Create a team](https://docs.mka1.com/api-reference/organization/create-a-team.md) - [List teams in an org](https://docs.mka1.com/api-reference/organization/list-teams-in-an-org.md) - [Get a team](https://docs.mka1.com/api-reference/organization/get-a-team.md) - [Rename a team](https://docs.mka1.com/api-reference/organization/rename-a-team.md) - [Delete a team](https://docs.mka1.com/api-reference/organization/delete-a-team.md) - [Add a team member](https://docs.mka1.com/api-reference/organization/add-a-team-member.md): Attach a principal (user or service account) to the team by its userId. - [List team members](https://docs.mka1.com/api-reference/organization/list-team-members.md) - [Set a team member role](https://docs.mka1.com/api-reference/organization/set-a-team-member-role.md): Organization owner/admin only. Team admins may manage their own team network policy; other team administration remains org-admin-only. - [Remove a team member](https://docs.mka1.com/api-reference/organization/remove-a-team-member.md) - [Create a service account](https://docs.mka1.com/api-reference/organization/create-a-service-account.md): Mint a non-human principal scoped to this org (org owner/admin only). - [List service accounts](https://docs.mka1.com/api-reference/organization/list-service-accounts.md) - [Get a service account](https://docs.mka1.com/api-reference/organization/get-a-service-account.md) - [Delete a service account](https://docs.mka1.com/api-reference/organization/delete-a-service-account.md) - [List a service account's API keys](https://docs.mka1.com/api-reference/organization/list-a-service-accounts-api-keys.md) - [Update a service-account API key](https://docs.mka1.com/api-reference/organization/update-a-service-account-api-key.md) - [Delete a service-account API key](https://docs.mka1.com/api-reference/organization/delete-a-service-account-api-key.md) - [Rotate a service-account API key's secret](https://docs.mka1.com/api-reference/organization/rotate-a-service-account-api-keys-secret.md) - [Get basic organization details](https://docs.mka1.com/api-reference/organization/get-basic-organization-details.md): Returns basic fields and the full metadata object to a member of the organization or a cluster admin. It never includes member identities, invitations, or API-key details. - [Patch organization metadata (cluster-admin)](https://docs.mka1.com/api-reference/organization/patch-organization-metadata-cluster-admin.md): Merges supplied top-level metadata keys while preserving omitted siblings. metadata.codeConfig accepts one releaseManifestUrl; codeConfig:null removes that override. - [Get an org's usage quota](https://docs.mka1.com/api-reference/organization/get-an-orgs-usage-quota.md) - [Set an org's usage quota (cluster-admin)](https://docs.mka1.com/api-reference/organization/set-an-orgs-usage-quota-cluster-admin.md) - [Get an org's rate limit](https://docs.mka1.com/api-reference/organization/get-an-orgs-rate-limit.md) - [Set an org's rate limit (cluster-admin)](https://docs.mka1.com/api-reference/organization/set-an-orgs-rate-limit-cluster-admin.md) - [Get an org's inbound IP rules](https://docs.mka1.com/api-reference/organization/get-an-orgs-inbound-ip-rules.md): Source-IP allowlist for the org's API keys. `available` mirrors the cluster's INBOUND_RULES_ENABLED flag. Rules are ordered by createdAt, then id. - [Replace an org's inbound IP rules (org owner/admin, browser session)](https://docs.mka1.com/api-reference/organization/replace-an-orgs-inbound-ip-rules-org-owneradmin-browser-session.md): Replaces the whole policy atomically. Each cidr is normalized (bare 0.0.0.0 / :: mean /0, other bare addresses are /32 or /128, host bits are cleared); duplicates after normalization are a 400. A request carrying an Authorization header is refused with 403. #### Cluster Admin - [Create a cluster invitation](https://docs.mka1.com/api-reference/cluster-admin/create-a-cluster-invitation.md): Issue a one-shot invite that provisions a new org on acceptance. Email-bound invites can be accepted headless (passwordless + issueApiKey). - [List cluster invitations](https://docs.mka1.com/api-reference/cluster-admin/list-cluster-invitations.md) - [Update a pending cluster invitation](https://docs.mka1.com/api-reference/cluster-admin/update-a-pending-cluster-invitation.md): Extend the expiry or atomically replace the available-model, API-quota, or compute policy of an unclaimed, unexpired invitation. Omitted top-level fields are preserved. - [Revoke a cluster invitation](https://docs.mka1.com/api-reference/cluster-admin/revoke-a-cluster-invitation.md) - [List all organizations](https://docs.mka1.com/api-reference/cluster-admin/list-all-organizations.md) - [Get an organization](https://docs.mka1.com/api-reference/cluster-admin/get-an-organization.md) - [Soft-delete an organization and schedule its purge](https://docs.mka1.com/api-reference/cluster-admin/soft-delete-an-organization-and-schedule-its-purge.md): Marks the organization deleted, closes its billing and asks Dory to hard-delete its data after the purge grace period (`purgeAfter`). The delete commits even when billing or Dory cannot be reached: `scheduling` reports each call, and repeating the delete resubmits them. - [Invite members on behalf of an organization](https://docs.mka1.com/api-reference/cluster-admin/invite-members-on-behalf-of-an-organization.md): Requires a cluster-admin session with Cluster as its active organization. The target must be active and cannot be Cluster. Sends up to 20 organization invitations without switching the admin's session or joining the target organization. Each row accepts role member or admin, defaulting to member; ow… - [Suspend an organization](https://docs.mka1.com/api-reference/cluster-admin/suspend-an-organization.md) - [Unsuspend an organization](https://docs.mka1.com/api-reference/cluster-admin/unsuspend-an-organization.md) - [Request an org owner-key recovery](https://docs.mka1.com/api-reference/cluster-admin/request-an-org-owner-key-recovery.md): Open a request to re-issue an owner key for an org whose credential was lost. Mints nothing: a different cluster admin must approve it, and every other cluster admin is emailed. Cluster-admin only (`write:cluster`). Defaults to the org's oldest human owner and oldest team; `userId` / `teamId` overri… - [List owner-key recovery requests](https://docs.mka1.com/api-reference/cluster-admin/list-owner-key-recovery-requests.md): Newest first. Cluster-admin only (`read:cluster`). - [Get an owner-key recovery request](https://docs.mka1.com/api-reference/cluster-admin/get-an-owner-key-recovery-request.md): Cluster-admin only (`read:cluster`). - [Approve an owner-key recovery](https://docs.mka1.com/api-reference/cluster-admin/approve-an-owner-key-recovery.md): Mint the owner key and mark the request approved. Needs a cluster admin's signed-in session; API keys are refused. The requester, and anyone who joined the Cluster org after the request was made, cannot approve. `token` is the per-recipient token from the approval email; when present it must belong… - [Reject an owner-key recovery](https://docs.mka1.com/api-reference/cluster-admin/reject-an-owner-key-recovery.md): Any cluster admin may reject a pending request; the requester rejecting it cancels it. Cluster-admin only (`write:cluster`). - [Read cluster-invite info (public)](https://docs.mka1.com/api-reference/cluster-admin/read-cluster-invite-info-public.md) - [Accept a cluster invitation (public)](https://docs.mka1.com/api-reference/cluster-admin/accept-a-cluster-invitation-public.md): Accept an invite and create the org. Existing signed-in user, new email/password owner, or (email-bound) headless machine owner with `passwordless: true, issueApiKey: true`. A reserved slug (`api`, whether supplied as `orgSlug` or derived from `orgName`) is refused with 400 `reserved_org_slug`; a sl… #### Resource Authorization - [Create a new resource](https://docs.mka1.com/api-reference/resource-authorization/create-a-new-resource.md): Create an LLM resource and assign the authenticated caller as owner. Existing owners may pass overwrite=true to replace direct relationships for the resource. - [Delete a resource](https://docs.mka1.com/api-reference/resource-authorization/delete-a-resource.md): Delete an LLM resource and all of its direct permissions. Only owners can delete resources. - [Grant permission to a user or make public](https://docs.mka1.com/api-reference/resource-authorization/grant-permission-to-a-user-or-make-public.md): Grant a role to a user for a resource, or grant public access by using "*" as userId. Only owners can grant permissions. Public access is allowed only for writer and reader roles. - [Revoke permission from a user or remove public access](https://docs.mka1.com/api-reference/resource-authorization/revoke-permission-from-a-user-or-remove-public-access.md): Revoke a role from a user for a resource, or remove public access by using "*" as userId. Only owners can revoke permissions. - [List resources the user has access to](https://docs.mka1.com/api-reference/resource-authorization/list-resources-the-user-has-access-to.md): List resources of a specific type where the authenticated caller has the specified role. Returns direct relationships only (not computed). - [List users with permissions](https://docs.mka1.com/api-reference/resource-authorization/list-users-with-permissions.md): List users with a specific role on a resource. Returns direct relationships only (not computed). The authenticated caller must have at least reader access. - [Check user permission](https://docs.mka1.com/api-reference/resource-authorization/check-user-permission.md): Check whether the authenticated caller has a specific role on a resource. #### API Key - [Mint a scoped API key](https://docs.mka1.com/api-reference/api-key/mint-a-scoped-api-key.md): Mint an API key bound to a (principal, team) carrying an explicit scope set. Requires a session, a bearer key holding `write:apikeys`, or (when OAuth is enabled) an OAuth access token holding `write:apikeys` for the authentication management service. OAuth issuance is self-only and bound to the cons… - [List scoped API keys](https://docs.mka1.com/api-reference/api-key/list-scoped-api-keys.md): List the caller's scoped API keys (metadata only — never the secret). Optional `?orgId=&teamId=` narrows; a key caller is scoped to its own org. - [Update a scoped API key](https://docs.mka1.com/api-reference/api-key/update-a-scoped-api-key.md): Update a key's scopes (and optionally name / rate limit). Scopes already on the key are retained; newly-added scopes are bounded by the caller's role (and, for a key caller, the calling key's own scopes). - [Rotate a scoped API key's secret](https://docs.mka1.com/api-reference/api-key/rotate-a-scoped-api-keys-secret.md): Issue a new plaintext secret for an existing key in place (id / scopes / binding preserved). Returned once. - [Delete a scoped API key](https://docs.mka1.com/api-reference/api-key/delete-a-scoped-api-key.md): Delete one of the caller's own keys. A key caller needs `write:apikeys` and may delete only keys in its own organization whose scopes it holds, including itself. Takes effect immediately. - [Exchange API key for a JWT token](https://docs.mka1.com/api-reference/api-key/exchange-api-key-for-a-jwt-token.md): Exchange an API key for a JWT token - [Exchange API key for a JWT token](https://docs.mka1.com/api-reference/api-key/exchange-api-key-for-a-jwt-token.md): Exchange an API key for a JWT token #### Session - [Find an unfinished invitation for the signed-in recipient](https://docs.mka1.com/api-reference/session/find-an-unfinished-invitation-for-the-signed-in-recipient.md): Requires a session with a verified email. Returns a pending, unexpired organization invitation first, otherwise an unclaimed, unexpired cluster invitation bound to that email. Open cluster invitations are never returned. Does not accept or modify the invitation. - [Exchange a live session for a delegated access token](https://docs.mka1.com/api-reference/session/exchange-a-live-session-for-a-delegated-access-token.md): Mints a short-lived, audience-bound token with the same authority as the current live browser or device-login session. Identity, tenancy, permissions, and lifetime cannot be selected by the caller. The JSON body is limited to 4 KiB. ### Application utilities #### Batches - [Create a batch](https://docs.mka1.com/api-reference/batches/create-a-batch.md): Creates and executes a batch from an uploaded JSONL file of requests. Each line must have custom_id, method, url, and body fields. Text batches also require write:responses. - [List batches](https://docs.mka1.com/api-reference/batches/list-batches.md): Returns a paginated list of batches owned by the authenticated user. - [Get a batch](https://docs.mka1.com/api-reference/batches/get-a-batch.md): Retrieves a batch by its ID. - [Cancel a batch](https://docs.mka1.com/api-reference/batches/cancel-a-batch.md): Cancels an in-progress batch. The batch status changes to cancelling, and remaining requests will not be processed. #### Extract - [Extract structured data with inline JSON Schema](https://docs.mka1.com/api-reference/extract/extract-structured-data-with-inline-json-schema.md): Extracts structured data from files using a custom inline JSON schema. - [Create reusable extraction schema template](https://docs.mka1.com/api-reference/extract/create-reusable-extraction-schema-template.md): Creates and stores a reusable JSON Schema template for structured data extraction. - [Get extraction schema by ID](https://docs.mka1.com/api-reference/extract/get-extraction-schema-by-id.md): Retrieve a stored extraction schema and its metadata. - [Update extraction schema by ID](https://docs.mka1.com/api-reference/extract/update-extraction-schema-by-id.md): Update an existing extraction schema and its metadata. - [Delete extraction schema by ID](https://docs.mka1.com/api-reference/extract/delete-extraction-schema-by-id.md): Remove a stored extraction schema. - [Extract data using saved schema template](https://docs.mka1.com/api-reference/extract/extract-data-using-saved-schema-template.md): Extracts structured data from files using a previously saved extraction schema template. #### Guardrails - [Get effective guardrails](https://docs.mka1.com/api-reference/guardrails/get-effective-guardrails.md): Retrieve the guardrails that apply to the caller's requests. guardrails holds the org-wide policy followed by the caller's team policy; cluster_default lists the cluster default rules enforced beneath them, without their configuration. All are enforced. Policies are managed by org admins via PUT /gu… - [Update guardrails policy](https://docs.mka1.com/api-reference/guardrails/update-guardrails-policy.md): Replace a guardrails policy. Classifier models must be active and declare structured-output support; replace the example model ID with a suitable model from your organization. Omit team_id to set the org-wide policy (org admin only); provide team_id to set that team's additional policy (org admins m… - [Delete guardrails policy](https://docs.mka1.com/api-reference/guardrails/delete-guardrails-policy.md): Delete a guardrails policy. Omit team_id to delete the org-wide policy (org admin only); provide team_id to delete that team's policy (org admins may target any team in their org, other callers only their own team). Idempotent: deleting a policy that doesn't exist returns deleted: false. - [List guardrails policies](https://docs.mka1.com/api-reference/guardrails/list-guardrails-policies.md): List the stored guardrails policies visible to the caller: org admins see every policy in their org (the org-wide policy has team_id null, plus each team's additional policy); other callers see the org-wide policy and their own team's policy. Unlike GET /guardrails, rows are returned per scope so a… - [Test content against guardrails](https://docs.mka1.com/api-reference/guardrails/test-content-against-guardrails.md): Test a piece of content against the caller's effective guardrails (cluster default, org-wide policy and team policy) without generating an answer. Classifier guardrails call their configured model and incur inference usage, so API keys additionally require write:responses and the caller must pass th… - [Get the cluster default guardrails](https://docs.mka1.com/api-reference/guardrails/get-the-cluster-default-guardrails.md): Cluster operator view of the default guardrails enforced beneath the org-wide and team policies of every enrolled organization. Until an operator saves one, the built-in default applies: switched on, with no rules, so nothing is enforced. - [Update the cluster default guardrails](https://docs.mka1.com/api-reference/guardrails/update-the-cluster-default-guardrails.md): Replace the default guardrails enforced on every enrolled organization, and switch them on or off for the whole cluster. Organization admins can add rules on top of the cluster default but cannot weaken or remove it. Classifier models must be active in the cluster organization's registry; their call… - [Reset the cluster default guardrails](https://docs.mka1.com/api-reference/guardrails/reset-the-cluster-default-guardrails.md): Delete the saved cluster default so the built-in default applies again: switched on, with no rules, so nothing is enforced. To stop enforcing a cluster default, update it with enabled set to false instead. - [Get an organization's cluster default enrollment](https://docs.mka1.com/api-reference/guardrails/get-an-organizations-cluster-default-enrollment.md): Whether an organization is enrolled in the cluster default guardrails, and whether they are enforced on it now. Organizations created before the cluster default existed are not enrolled until a cluster admin enrolls them. - [Enroll an organization in the cluster default](https://docs.mka1.com/api-reference/guardrails/enroll-an-organization-in-the-cluster-default.md): Enroll an organization in the cluster default guardrails, or remove it. Idempotent. Enrolled organizations are checked against the cluster default whenever the cluster switch is on. - [Get a resource guardrails policy](https://docs.mka1.com/api-reference/guardrails/get-a-resource-guardrails-policy.md): Additional guardrails attached to a saved agent in the active team or a catalog model endpoint throughout the organization. Cluster, organization and team policies are always enforced as well. Model aliases resolve to canonical model IDs; auto is not an attachable endpoint. Only organization admins/… - [Set a resource guardrails policy](https://docs.mka1.com/api-reference/guardrails/set-a-resource-guardrails-policy.md): Additional guardrails attached to a saved agent in the active team or a catalog model endpoint throughout the organization. Cluster, organization and team policies are always enforced as well. Model aliases resolve to canonical model IDs; auto is not an attachable endpoint. Only organization admins/… - [Remove a resource guardrails policy](https://docs.mka1.com/api-reference/guardrails/remove-a-resource-guardrails-policy.md): Additional guardrails attached to a saved agent in the active team or a catalog model endpoint throughout the organization. Cluster, organization and team policies are always enforced as well. Model aliases resolve to canonical model IDs; auto is not an attachable endpoint. Only organization admins/… #### Prompts - [Create a prompt](https://docs.mka1.com/api-reference/prompts/create-a-prompt.md): Creates a new prompt with its first version. The template supports {{variable}} placeholders. - [List prompts](https://docs.mka1.com/api-reference/prompts/list-prompts.md): Returns a paginated list of prompts owned by the authenticated user. - [Get a prompt](https://docs.mka1.com/api-reference/prompts/get-a-prompt.md): Retrieves a prompt by its ID, including the active template. Pass `version` to get a specific version's template. Pass `variables` as a JSON-encoded map to render the template with substitutions. - [Update a prompt](https://docs.mka1.com/api-reference/prompts/update-a-prompt.md): Updates prompt metadata. To update the template content, create a new version instead. - [Delete a prompt](https://docs.mka1.com/api-reference/prompts/delete-a-prompt.md): Deletes a prompt and all its versions. - [Create a new version](https://docs.mka1.com/api-reference/prompts/create-a-new-version.md): Creates a new version of a prompt. The new version automatically becomes the active version. Fields not provided are carried forward from the previous version. - [List versions](https://docs.mka1.com/api-reference/prompts/list-versions.md): Returns the version history of a prompt, ordered by version number. - [Get a specific version](https://docs.mka1.com/api-reference/prompts/get-a-specific-version.md): Retrieves a specific version of a prompt by version number. - [Rollback to a version](https://docs.mka1.com/api-reference/prompts/rollback-to-a-version.md): Sets the active version of a prompt to a previous version. This does not delete newer versions — it only changes which version is active. ### Analytics #### Projects - [Create a project](https://docs.mka1.com/api-reference/analyticsprojects/create-an-analytics-project.md): Create a project in the caller's organization. Without team_id the project belongs to the authenticated team. Organization owners and admins can create a project for any team in their organization, including teams they are not a member of, or pass team_id: null for an organization-level project. Ser… - [List projects](https://docs.mka1.com/api-reference/analyticsprojects/list-accessible-analytics-projects.md): Organization owners and admins see every project in their organization: all teams' projects and organization-level projects, regardless of their active team. This also applies to an owner's or admin's API keys and exchanged JWTs, whichever team the key was issued for; use a service account for a tea… - [Get a project](https://docs.mka1.com/api-reference/analyticsprojects/get-an-analytics-project.md) - [Update a project](https://docs.mka1.com/api-reference/analyticsprojects/rename-an-active-analytics-project.md): Rename an active project. Project ownership cannot be changed. - [Archive a project](https://docs.mka1.com/api-reference/analyticsprojects/archive-an-analytics-project.md): Stop new captures and queries for this project. Previously accepted events continue processing. Archiving does not delete stored events. #### Capture keys - [Create a capture key](https://docs.mka1.com/api-reference/analyticskeys/create-a-capture-key-and-return-its-secret-once.md): Create a key that can send events to this project. Save the key from this response; its secret is only returned once. Capture keys cannot read analytics or manage projects. - [List capture keys](https://docs.mka1.com/api-reference/analyticskeys/list-capture-key-metadata.md) - [Revoke a capture key](https://docs.mka1.com/api-reference/analyticskeys/revoke-a-capture-key.md) #### Events - [Capture events](https://docs.mka1.com/api-reference/analytics/durably-accept-a-batch-of-events.md): Send a batch of events using the project's X-Analytics-Key header. A 202 response confirms the batch is stored; events become available to queries after background processing. Retry with the same idempotency_key and unchanged events if you do not receive a response. - [Query events](https://docs.mka1.com/api-reference/analytics/query-event-counts-or-unique-visitors.md): Count events or unique visitors in a time range. Optionally filter by event name or properties, group by one property, and split results into hour, day, or week buckets that start on the clock of an IANA time zone, UTC by default. Each bucket is returned as the UTC instant at which it starts. The ra… #### Event search - [Search events](https://docs.mka1.com/api-reference/analyticsevents/search-events-in-a-time-range.md): List individual events in a time range, newest first, with their properties. Optionally filter by event name, event properties, or one visitor's distinct_id. The range includes from and excludes to, and duplicate event IDs are returned once, so a search over a chart bucket's range with the same filt… #### Visitor search - [Search visitors](https://docs.mka1.com/api-reference/analyticsvisitors/search-visitors-in-a-time-range.md): List visitors with matching events in a time range, most recently active first. Each visitor is one distinct_id with the timestamps of its first and last matching event and its event count over the whole range, so for a range that receives no further events the number of visitors across all pages eq… ### Legacy APIs #### Chat Completions - [[Deprecated] Chat completions for OpenAI SDK/client usage](https://docs.mka1.com/api-reference/chat-completions/[deprecated]-chat-completions-for-openai-sdkclient-usage.md): **Deprecated: Use the Responses API (`/api/v1/llm/responses`) instead.** OpenAI-compatible chat completion endpoint designed for use with the official OpenAI client libraries (Python, Node.js, etc.). Supports both streaming and non-streaming requests by setting the `stream` parameter. This endpoint… - [[Deprecated] Streaming chat completions for generated SDK usage](https://docs.mka1.com/api-reference/chat-completions/[deprecated]-streaming-chat-completions-for-generated-sdk-usage.md): **Deprecated: Use the Responses API (`/api/v1/llm/responses`) instead.** Streaming chat completion endpoint designed for use with the generated TypeScript/JavaScript SDK from the OpenAPI specification. This endpoint uses ORPC's native streaming via async generators and returns Server-Sent Events (SS… #### Fine-Tuning - [[Deprecated] Create a fine-tuning job](https://docs.mka1.com/api-reference/fine-tuning/[deprecated]-create-a-fine-tuning-job.md): **Deprecated: Use Compute jobs (`/api/v1/compute/jobs`) instead.** Creates a fine-tuning job which begins the process of training a new model from a given dataset. - [[Deprecated] List fine-tuning jobs](https://docs.mka1.com/api-reference/fine-tuning/[deprecated]-list-fine-tuning-jobs.md): **Deprecated: Use Compute jobs (`/api/v1/compute/jobs`) instead.** List your organization's fine-tuning jobs. - [[Deprecated] Retrieve a fine-tuning job](https://docs.mka1.com/api-reference/fine-tuning/[deprecated]-retrieve-a-fine-tuning-job.md): **Deprecated: Use Compute jobs (`/api/v1/compute/jobs`) instead.** Get info about a fine-tuning job. - [[Deprecated] Cancel a fine-tuning job](https://docs.mka1.com/api-reference/fine-tuning/[deprecated]-cancel-a-fine-tuning-job.md): **Deprecated: Use Compute jobs (`/api/v1/compute/jobs`) instead.** Immediately cancel a fine-tuning job. - [[Deprecated] Pause a fine-tuning job](https://docs.mka1.com/api-reference/fine-tuning/[deprecated]-pause-a-fine-tuning-job.md): **Deprecated: Use Compute jobs (`/api/v1/compute/jobs`) instead.** Pause a running fine-tuning job. - [[Deprecated] Resume a fine-tuning job](https://docs.mka1.com/api-reference/fine-tuning/[deprecated]-resume-a-fine-tuning-job.md): **Deprecated: Use Compute jobs (`/api/v1/compute/jobs`) instead.** Resume a paused fine-tuning job. - [[Deprecated] List fine-tuning events](https://docs.mka1.com/api-reference/fine-tuning/[deprecated]-list-fine-tuning-events.md): **Deprecated: Use Compute jobs (`/api/v1/compute/jobs`) instead.** Get status updates for a fine-tuning job. - [[Deprecated] List fine-tuning checkpoints](https://docs.mka1.com/api-reference/fine-tuning/[deprecated]-list-fine-tuning-checkpoints.md): **Deprecated: Use Compute jobs (`/api/v1/compute/jobs`) instead.** List checkpoints for a fine-tuning job. ### Additional APIs #### Audit - [Get a request trace](https://docs.mka1.com/api-reference/audit/get-a-request-trace.md): Returns the end-to-end trace of one API request: its timing at the API gateway, every response it created (including agents it called), and each response's model invocations and tool calls with durations. Look it up by the `X-Request-ID` returned on every response, or by the API gateway's own reques… - [Export audit cases](https://docs.mka1.com/api-reference/audit/export-audit-cases.md): The organization's audit cases: one row per model response. - [Export one audit case](https://docs.mka1.com/api-reference/audit/export-one-audit-case.md): One case. json and html return the case with its timeline and artifacts; csv and ndjson return its ledger entries. - [Export gateway requests](https://docs.mka1.com/api-reference/audit/export-gateway-requests.md): The organization's API requests as the gateway logged them: one row per request. - [Export misuse findings](https://docs.mka1.com/api-reference/audit/export-misuse-findings.md): The organization's misuse findings, newest first. - [Export one misuse finding](https://docs.mka1.com/api-reference/audit/export-one-misuse-finding.md): One finding with its actions and ledger events, as CSV. #### Tool Policy - [Get the tool policy](https://docs.mka1.com/api-reference/tool-policy/get-the-tool-policy.md): Retrieve your organization's tool policy: the rules that deny tool types, or hold their calls for approval, on every Responses request in the organization, including saved agent runs. When the organization has no policy, rules is empty and updated_at is null. - [Replace the tool policy](https://docs.mka1.com/api-reference/tool-policy/replace-the-tool-policy.md): Replace your organization's tool policy (org admin only). Each rule names a tool type and an action: deny refuses requests that configure the tool, and require_approval holds each call until it is approved. MCP rules can be limited to servers by hostname and to tool names; a deny rule with tool_name… - [Delete the tool policy](https://docs.mka1.com/api-reference/tool-policy/delete-the-tool-policy.md): Delete your organization's tool policy (org admin only), removing every restriction it set. Idempotent: deleting when there is no policy returns deleted: false. #### OAuth - [Read public native OAuth client configuration](https://docs.mka1.com/api-reference/oauth/read-public-native-oauth-client-configuration.md): Returns the built-in Code registration, or the selected public native client. Available when OAuth is enabled. Does not register clients or grant access. - [Read the authenticated OAuth user and workspace](https://docs.mka1.com/api-reference/oauth/read-the-authenticated-oauth-user-and-workspace.md): Requires an OAuth API access token for this issuer resource. Rechecks the parent session, client policy and workspace membership, returning current effective API scopes. Browser cookies, API keys and ID tokens cannot authenticate this endpoint. No additional permission scope is required. Available w… #### Sandbox Connectors - [List Connectors](https://docs.mka1.com/api-reference/sandbox-connectors/list-connectors.md): List the connectors you can connect and your connection to each, or `null` when you have none. `status` is `needs_login` when the connector must be reconnected. `tool_allowlist` set to `null` means sessions may call every tool the connector lists, read or write. Only an environment with `network_acc… - [Start Connector Sign-In](https://docs.mka1.com/api-reference/sandbox-connectors/start-connector-sign-in.md): Start connecting an OAuth connector to your account. Send the user to the returned `authorize_url`. The connector redirects back to the platform callback page with a `code` and the same `state`, which it passes to `POST /connectors/oauth/connections` before `expires_in_seconds` elapses. Each `state`… - [Finish Connector Sign-In](https://docs.mka1.com/api-reference/sandbox-connectors/finish-connector-sign-in.md): Exchange the `code` and `state` from the connector's redirect for a stored connection. Call it as the same signed-in user who started the sign-in. The sandbox service keeps the token encrypted and never returns it. - [Set Connector API Key](https://docs.mka1.com/api-reference/sandbox-connectors/set-connector-api-key.md): Connect an API-key connector. The key is checked against the connector before it is stored (422 when the connector refuses it) and is never returned. - [Disconnect Connector](https://docs.mka1.com/api-reference/sandbox-connectors/disconnect-connector.md): Delete your connection to a connector and revoke its token at the connector when it supports revocation. The connection is deleted even if the connector does not confirm the revocation. - [List Connector Tools](https://docs.mka1.com/api-reference/sandbox-connectors/list-connector-tools.md): List the connector's tools now, with whether each is read-only, your tool allowlist, and `allowed`: the tools a session could call. 409 when the connector must be reconnected. - [Set Connector Tool Allowlist](https://docs.mka1.com/api-reference/sandbox-connectors/set-connector-tool-allowlist.md): Choose which of the connector's tools sessions may call. Send a list of tool names, or `null` to allow every tool the connector lists, read or write. #### Billing - [Get apiv1budgetingbillingorg](https://docs.mka1.com/api-reference/billing/get-apiv1budgetingbillingorg.md): Leer la facturación de la organización. Las claves de API requieren read:billing y además un propietario o administrador humano, o una cuenta de servicio delegada. Las claves están vinculadas a su organización; las lecturas entre organizaciones requieren un administrador humano del clúster con read:… - [Put apiv1budgetingbillingorgenabled](https://docs.mka1.com/api-reference/billing/put-apiv1budgetingbillingorgenabled.md): Habilita o deshabilita la facturación de la organización. Requiere un administrador humano del clúster. Las claves API requieren tanto el permiso write:billing como el alcance write:cluster, que solo está disponible durante el arranque. Las claves de cuenta de servicio no pueden habilitar ni deshabi… - [Put apiv1budgetingbillingorgprofile](https://docs.mka1.com/api-reference/billing/put-apiv1budgetingbillingorgprofile.md): Actualiza el perfil de facturación de la organización vinculada. Las claves de API requieren write:billing y, además, un propietario o administrador humano o una cuenta de servicio delegada. La organización se resuelve a partir de la clave de API. - [Post apiv1budgetingbillingorgsetup session](https://docs.mka1.com/api-reference/billing/post-apiv1budgetingbillingorgsetup-session.md): Cree una sesión de configuración del proveedor de pagos para la organización vinculada. Las claves de API requieren write:billing y un propietario/admin humano o una cuenta de servicio delegada. La organización se resuelve a partir de la clave de API. - [Post apiv1budgetingbillingorgportal session](https://docs.mka1.com/api-reference/billing/post-apiv1budgetingbillingorgportal-session.md): Crear una sesión del portal del proveedor de pagos para la organización vinculada. Las claves de API requieren write:billing y bien un propietario/admin humano o una cuenta de servicio delegada. La organización se resuelve a partir de la clave de API. - [Get apiv1budgetingbillingorginvoices](https://docs.mka1.com/api-reference/billing/get-apiv1budgetingbillingorginvoices.md): Listar facturas de una organización. Las claves de API requieren read:billing y, además, un propietario/admin humano o una cuenta de servicio delegada. Las lecturas entre organizaciones requieren un administrador humano del clúster con read:cluster. #### Feature Flags - [List flags](https://docs.mka1.com/api-reference/feature-flags/list-flags.md): Every flag with a per-environment digest of its state. - [Create a flag](https://docs.mka1.com/api-reference/feature-flags/create-a-flag.md): The flag starts disabled in every environment and belongs to Default when project_id is omitted. - [List projects](https://docs.mka1.com/api-reference/feature-flags/list-projects.md) - [Create a project](https://docs.mka1.com/api-reference/feature-flags/create-a-project.md) - [Delete an empty project](https://docs.mka1.com/api-reference/feature-flags/delete-an-empty-project.md): Default cannot be deleted. Move or delete every flag before deleting another project. - [Get a project](https://docs.mka1.com/api-reference/feature-flags/get-a-project.md) - [Rename a project](https://docs.mka1.com/api-reference/feature-flags/rename-a-project.md) - [List audit entries, newest first](https://docs.mka1.com/api-reference/feature-flags/list-audit-entries-newest-first.md) - [List environments](https://docs.mka1.com/api-reference/feature-flags/list-environments.md) - [Create an environment](https://docs.mka1.com/api-reference/feature-flags/create-an-environment.md): Every existing flag gets a disabled state in the new environment. - [Delete an environment and every flag setting in it](https://docs.mka1.com/api-reference/feature-flags/delete-an-environment-and-every-flag-setting-in-it.md) - [Rename an environment](https://docs.mka1.com/api-reference/feature-flags/rename-an-environment.md) - [Evaluate every flag for an identity](https://docs.mka1.com/api-reference/feature-flags/evaluate-every-flag-for-an-identity.md): Resolves every non-archived flag of the environment for an anonymous caller, or for the identity given in the query. Sends an ETag and answers 304 to a matching If-None-Match after authenticating the environment evaluation key. - [Evaluate every flag for an identity with traits](https://docs.mka1.com/api-reference/feature-flags/evaluate-every-flag-for-an-identity-with-traits.md) - [Revoke an environment evaluation key](https://docs.mka1.com/api-reference/feature-flags/revoke-an-environment-evaluation-key.md): Revocation is idempotent while the environment exists. - [Generate or replace an environment evaluation key](https://docs.mka1.com/api-reference/feature-flags/generate-or-replace-an-environment-evaluation-key.md): Returns the new plaintext key once. Only its SHA-256 digest and a display hint are stored; generating another key immediately replaces the previous credential on this replica. - [Delete a flag and its settings in every environment](https://docs.mka1.com/api-reference/feature-flags/delete-a-flag-and-its-settings-in-every-environment.md) - [Get a flag](https://docs.mka1.com/api-reference/feature-flags/get-a-flag.md) - [Update a flag's name, description, default value, or project](https://docs.mka1.com/api-reference/feature-flags/update-a-flags-name-description-default-value-or-project.md) - [Archive a flag](https://docs.mka1.com/api-reference/feature-flags/archive-a-flag.md): Archived flags are excluded from evaluation in every environment; their settings are kept. - [Replace a flag's settings in one environment](https://docs.mka1.com/api-reference/feature-flags/replace-a-flags-settings-in-one-environment.md) - [Restore an archived flag](https://docs.mka1.com/api-reference/feature-flags/restore-an-archived-flag.md) #### Service Status - [Get the service status](https://docs.mka1.com/api-reference/service-status/get-the-service-status.md): Each service's current status and the active incidents. Any authenticated caller may read it. - [List incidents](https://docs.mka1.com/api-reference/service-status/list-incidents.md): Incidents, most recently started first. - [Get an incident](https://docs.mka1.com/api-reference/service-status/get-an-incident.md): One incident with its full timeline of updates. #### Support Cases - [List support cases](https://docs.mka1.com/api-reference/support-cases/list-support-cases.md): Support cases visible to the caller, most recently updated first. Requires `read:support`. - [Open a support case](https://docs.mka1.com/api-reference/support-cases/open-a-support-case.md): Requires `write:support`. - [Get a support case](https://docs.mka1.com/api-reference/support-cases/get-a-support-case.md): One support case with its timeline. Requires `read:support`. - [Comment on a support case](https://docs.mka1.com/api-reference/support-cases/comment-on-a-support-case.md): Adds a comment. A comment on a case that is waiting on you or resolved reopens it. Requires `write:support`. - [Resolve a support case](https://docs.mka1.com/api-reference/support-cases/resolve-a-support-case.md): Marks the case resolved, with an optional closing comment. Requires `write:support`. ## OpenAPI Specs - [speakeasy](https://apigw.mka1.com/speakeasy.json) - [speakeasy](https://apigw.mka1.com/speakeasy.json?language=es)