mcp
v73.3.0Avallon API MCP server - generated from OpenAPI
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
listVoiceAgents List voice agents
List all voice agents for your tenant. **Filtering:** Filter voice agents by name using the `agent_name` query parameter (exact match). **Response:** Returns an array of all voice agents with their configurations and a total count. For compatibility this endpoint is also available using the following (deprecated) paths: `GET /v1/agents`
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
createVoiceAgent Create voice agent
Create a new voice agent with the specified configuration. **Required fields:** Provide `engine`: a `pipeline` of STT, LLM and TTS models, or a `speech_to_speech` model such as `gpt-live-1`. The flat `llm_model`, `tts_provider`, `tts_model`, `tts_voice_id` and `stt_model` fields are deprecated; they still create a pipeline agent but cannot be combined with `engine`. All other fields are required except `phone_number_id` and `transfer_phone_number`. **Response:** Returns the created voice agent with its ID and configuration. For compatibility this endpoint is also available using the foll…
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
getVoiceAgent Get voice agent
Retrieve a single voice agent by its ID. For compatibility this endpoint is also available using the following (deprecated) paths: `GET /v1/agents/{id}`
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateVoiceAgent Update voice agent
Update a voice agent. Only the fields you send change; omitted fields keep their current value. To change the processor assignment, `call_processor_id` and `call_processor_type` must be provided together. Set `call_processor_id` to `null` to detach (`call_processor_type` is still required). Set `engine` to replace the whole model setup: `pipeline` (STT, LLM and TTS models plus optional fallbacks) or `speech_to_speech` (`gpt-live-1` and a voice). For `gpt-live-1`, `prompt` is the reasoner prompt and `speaker_instructions` the speaker prompt. The flat model fields (`llm_model`, `tts_provider`…
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
deleteVoiceAgent Delete voice agent
Delete a voice agent. The agent is hidden from all reads; its call and job history is preserved.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
listVoiceAgentVersions List voice agent versions
List all config versions for a voice agent, ordered by version (newest first by default).
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
getVoiceAgentVersion Get voice agent version
Retrieve a single voice agent config version, including the agent's identity, the config snapshot at that version, and version-specific metadata.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
promoteVoiceAgentVersion Promote voice agent version
Select a voice agent configuration version for the live or test environment.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
getVoiceAgentVersionChangeSummary Get voice agent version change summary
Returns an AI-generated summary of what changed between this version and the previous one. Initial version returns an empty string since there is no predecessor.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
getVoiceAgentPlaceholders Get voice agent placeholders
Retrieve the available placeholder variables defined in a voice agent's prompt. For compatibility this endpoint is also available using the following (deprecated) paths: `GET /v1/agents/{id}/prompt`
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
getVoiceAgentPrompt Get voice agent prompt
Retrieve the prompt for a voice agent. Pass `version` to fetch the prompt snapshot at a specific config version; omit it to fetch the current prompt. Internal use only.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
updateVoiceAgentPrompt Update voice agent prompt (deprecated)
Update the prompt for a voice agent. Internal use only. **Deprecated:** Use `PATCH /v1/voice-agents/{voiceAgentId}` instead.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
updateVoiceAgentModels Update voice agent models (deprecated)
Update the LLM, TTS, and STT model configuration for a voice agent. **Deprecated:** Use `PATCH /v1/voice-agents/{voiceAgentId}` instead. For compatibility this endpoint is also available using the following (deprecated) paths: `PATCH /v1/agents/{id}/models`
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
updateCallControls Update voice agent call controls (deprecated)
Update call control settings for a voice agent. Configure whether the voice agent supports dial pad input, can end calls, and set a transfer phone number. **Deprecated:** Use `PATCH /v1/voice-agents/{voiceAgentId}` instead. For compatibility this endpoint is also available using the following (deprecated) paths: `PUT /v1/agents/{id}/call-controls`
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
scheduleJob Schedule an outbound job
**Deprecated:** use `POST /v1/calls`, which returns the call itself. Schedule a new outbound call job for a voice agent. The job can be scheduled for a future time or triggered immediately with `trigger_immediately: true`. **Scheduling:** When scheduling for a future time, provide `scheduled_at` (ISO 8601) and optionally `schedule_window_minutes` (minimum 10 minutes). **Environment:** `environment` selects which promoted agent configuration and phone binding the call dispatches against (`live` or `test`). Defaults to `live`. Scheduling fails when the selected environment has no active pr…
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
listJobs List outbound jobs
**Deprecated:** use `GET /v1/calls?state=scheduled,in_progress,ended,canceled,failed`, which also filters by `scheduled_after` / `scheduled_before`. `GET /v1/calls/{id}` returns a call's `payload`. List all outbound jobs with pagination and filtering. **Filtering:** - Filter by agent ID, status, or scheduled time range. - Multiple statuses can be comma-separated (e.g. `status=pending,queued`). For compatibility this endpoint is also available using the following (deprecated) paths: `GET /v1/agents/jobs`
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
cancelJob Cancel an outbound job
**Deprecated:** use `POST /v1/calls/{id}/cancel`. Cancel a pending or queued outbound job. Jobs that are already in progress or completed cannot be canceled. For compatibility this endpoint is also available using the following (deprecated) paths: `POST /v1/agents/jobs/{id}/cancel`
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
listApiKeys List API keys
List all API keys for your tenant. By default, revoked keys are excluded. Set `include_revoked=true` to include them. **Note:** The full API key value is never returned — only the key prefix is shown.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
createApiKey Create an API key
Create a new API key for authenticating with the Avallon API. **Important:** The full API key is only returned once in the response. Store it securely — it cannot be retrieved again. Keys are scoped to an environment (`test` or `live`) and optionally accept an expiration date.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
revokeApiKey Revoke an API key
Revoke an existing API key. Once revoked, the key can no longer be used for authentication. This operation is irreversible — revoked keys cannot be re-enabled. Create a new key if needed. Returns 409 if the key is already revoked, 404 if the key does not exist.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateApiKey Update API key
Update mutable fields of an API key. Currently only `role` can be updated. The caller's role caps the maximum role they can grant — an `admin` cannot promote a key to `avallon_admin`.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
createArtifact Create artifact
Upload a document as a base64-encoded artifact for processing. **Limits:** Maximum file size is approximately 6.75MB (base64 encoded). The API Gateway has a 10MB request limit. **Processing options:** - `file_password`: Password for encrypted PDFs - `file_splitting_enabled`: Split multi-page PDFs into separate artifacts
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listArtifacts List artifacts
List all artifacts with pagination, filtering, and sorting. **Case Filtering:** Use `case_id` to return only artifacts linked to a case. This reads the case links created via `POST /v1/cases/{caseId}/links`, and is independent of any `metadata.case_id` an artifact may carry. **Metadata Filtering:** Use bracket notation to filter by metadata keys: - `metadata[claim_id]=abc-123` - `metadata[source]=email` Multiple metadata filters can be combined (AND logic).
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getArtifact Get artifact
Retrieve a single artifact by ID, including its metadata, file URL, extracted content, and chunk-annotated content. The response always includes `content_with_chunkids_md`: the parsed content annotated with `[chunk_id=...]` markers when the artifact has parsed chunks. Chunk IDs are stable citation anchors — cite them to attribute extracted values to their source location.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
deleteArtifact Delete artifact
Soft-delete an artifact. Soft-deleted artifacts and their chunks no longer appear in any read.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
getArtifactChunks Get artifact chunks
Resolve chunk ids to their document, page, bounding box and text, keyed by chunk id. Chunk ids are the `[chunk_id=…]` markers in `content_with_chunkids_md` and the values workers cite (e.g. `data-cite-chunk`). Ids that are unknown or whose document was deleted are omitted.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getArtifactStatusSummary Get artifact status summary
Count the artifacts in a scope, broken down by processing status. Define the scope with bracket notation (e.g. `scope[email_id]=abc-123`). At least one key is required; multiple keys are combined with AND logic.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getArtifactUploadUrl Request a pre-signed URL for direct large file upload
Returns a pre-signed PUT URL. Upload the file directly to `upload_url`, then pass `file_url` as `source_url` to POST /v1/upload-file.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
updateArtifactMetadata Update artifact metadata
Merge-update metadata on an existing artifact. Provided keys are added or overwritten; other existing keys are preserved.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
signUp Sign up
Create a new user account with email and password. When the response includes a pending_authentication_token, the account requires email verification: complete it via sign-in (type: email_otp) with the emailed one-time password and this token.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
signIn Sign in
Authenticate using one of the supported methods: - **Password:** Email and password credentials. If the password is correct but the email is not verified yet, responds 403 with `data.pending_authentication_token` and a fresh verification code is emailed; complete verification via **Email OTP**. Each password attempt invalidates earlier codes and tokens, so always use the most recent pair — repeating the password sign-in is also how a new code is requested. - **OAuth:** Authorization code from OAuth flow (social or enterprise SSO). Pass the `provider` the flow was started with so the code is…
| Parameter | Type | Description |
|---|---|---|
bodyParams |
requestPasswordReset Request password reset
Start password recovery for an email/password account. When the email belongs to an account, a reset link is emailed to it. The response is 200 regardless, and does not reveal whether an account exists.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
resetPassword Reset password
Complete password recovery with the token from the emailed reset link and set a new password. Completing the reset also verifies the account's email address. Afterwards, sign in with the new password.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
refreshToken Refresh authentication token
Exchange a valid access token and refresh token pair for new tokens.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
refreshSession Refresh session
Rotate the refresh token and return a new access token for `tenant_id`. Call it with a different `tenant_id` to switch tenants. Send the current access token as `Authorization: Bearer`. It may be expired: it only identifies the user, and the refresh token must belong to that same user. The identity provider decides whether the session is still valid. The user must be a member of `tenant_id` (404 otherwise).
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
getOAuthUrl Get OAuth sign-in URL
Generate an OAuth authorization URL for a given provider. PKCE is optional. To use it, generate a random verifier, derive `code_challenge` from it, and pass both `code_challenge` and the matching `code_challenge_method` — then send the verifier to **Sign in** when exchanging the code. Omit both to run the flow without PKCE and exchange the code on its own. For enterprise SSO, pass `provider=sso` together with the user's `email`; the email domain selects the SSO organization. Responds 404 when no SSO organization is configured for the domain.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getSessionToken Create or switch tenant session
Exchange an identity token for a tenant-scoped Core Plane access token. - If `tenant_id` is provided, validates the user is a member of that tenant and returns 404 if they are not. - If `tenant_id` is omitted, selects the tenant of the identity token's organization, falling back to the user's default (oldest) tenant. - Call this endpoint again with a different `tenant_id` to switch tenants.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
getPartnerJwks Get partner JWKS
Returns the JSON Web Key Set (RFC 7517) of a partner's public signing keys, used to verify partner-issued launch tokens.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
partnerLaunch Partner launch (SSO)
Verifies a partner-signed launch token, mints an Avallon session, and redirects (302) the user into the app's handoff route, carrying the session token in the URL fragment (no cookie).
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
listCalls List calls
List all calls, with pagination, filtering, and sorting. **Filtering:** Filter by agent, direction, status, time range, phone number, and more. Phone number filter supports both exact E.164 matches and partial search. **Case Filtering:** Use `case_id` to return only calls linked to a case. This reads the case links created via `POST /v1/cases/{caseId}/links`, and is independent of any `metadata.case_id` a call may carry. **Metadata Filtering:** Use bracket notation to filter by metadata keys: - `metadata[claim_id]=abc-123` - `metadata[source]=worker` Multiple metadata filters can be com…
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
createCall Create an outbound call
Create an outbound call for a voice agent, either for later or right away. **Scheduling:** Provide `scheduled_at` (ISO 8601) to place the call later. It is dialed within 60 minutes of that time, or it expires. Omit `scheduled_at` to dial immediately. **Lifecycle:** The call starts as `scheduled` and moves to `in_progress` when it is dialed, then `ended`. A scheduled call can be canceled with `POST /v1/calls/{id}/cancel`. **Environment:** `environment` selects which promoted agent configuration and phone binding the call dispatches against (`live` or `test`). Defaults to `live`.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
getCall Get call
Retrieve detailed information about a specific call. Set `include_messages=true` to include the full message transcript.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
cancelCall Cancel a scheduled call
Cancel an outbound call that is still `scheduled`. Canceling a call that is already canceled returns it unchanged; a call that is in progress or has ended cannot be canceled.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
listenCall Listen to a call
Issue a short-lived token that joins a connected call as a hidden, listen-only participant. Only calls that are `in_progress` with a `connected_at` can be listened to.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
getCallEvaluation Get call evaluation
Retrieve the evaluation results for a specific call, including overall score, pass status, and per-metric breakdowns.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
getCallAnalytics Get call analytics
Retrieve aggregated call analytics for a time range. Includes summary statistics, call volume over time, evaluation scores, score and duration distributions, and per-metric performance.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getAnalyticsTimeSeries Get analytics time series
Retrieve a tenant-scoped time series for a single metric. Pick a `metric`, a date range, a bucket `granularity` (day/week/month), and optionally a `group_by` dimension and filters. The series is sparse (only buckets with data) over the half-open window `[from, to)`. - `worker_runs`, `documents`, `pages`: processing volume, bucketed by creation time. `worker_runs` can be grouped by `worker_id` and filtered by `worker_id` and `environment`. Documents are shared across environments and cannot be filtered by them. - `finished_worker_runs`, `avg_worker_run_duration_ms`, `avg_worker_run_artifacts`…
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
createCallFeedback Create feedback on a call message
Create feedback for a specific message in a call. Requires user (JWT) authentication; the author is derived from the authenticated user's profile and API-key callers are rejected.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
listCallFeedback List feedback for a call
List all feedback for a call. Paginated.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
deleteCallFeedback Delete feedback
Delete a single feedback entry.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
checkInboxAvailability Check email username availability
Check whether a given email username is available for creating a new inbox. For compatibility this endpoint is also available using the following (deprecated) paths: `GET /v1/email-agents/availability`
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
createInbox Create inbox
Create a new inbox linked to a processor (extractor or worker). The inbox receives emails at the live address built from `username` and at a test address built from `test_username` (defaults to `<username>-test`), and automatically processes attachments using the specified processor. Either `processor_id` or the deprecated `extractor_id` must be provided. When using `extractor_id`, the processor type defaults to `extractor`. For compatibility this endpoint is also available using the following (deprecated) paths: `POST /v1/email-agents`
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listInboxes List inboxes
List all inboxes with pagination and sorting. For compatibility this endpoint is also available using the following (deprecated) paths: `GET /v1/email-agents`
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
updateInbox Update inbox
Update an inbox's configuration. For compatibility this endpoint is also available using the following (deprecated) paths: `PATCH /v1/email-agents/{id}`
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
deleteInbox Delete inbox
Delete an inbox. The inbox stops routing new mail; existing email history is preserved.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
getEmail Get email
Retrieve detailed information about a specific email, including full body content and the artifact IDs of its attachments.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
deleteEmail Delete email
Soft-delete an email. The message is hidden from all reads (get, list, and thread aggregation) but its content is retained until a separate hard purge.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
listEmails List emails
List all emails with pagination and filtering. **Filtering:** Filter by email agent, sender, recipient, content search, or case.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
listEmailThreads List email threads
List email threads with pagination. Each thread includes the subject of the first email, the sender of the first email, and the date of the last email. **Filtering:** Filter by inbox or environment. Without an `environment` filter, live and test threads are returned together.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
replyToEmail Reply to email
Reply to an existing email thread via Nylas. The reply is sent to the original sender by default. Optionally include additional recipients via `to` (merged with the original sender), `cc`, and `bcc` arrays. The `body` is HTML by default. Set `is_html` to `false` to provide plain text instead; it is converted to HTML before sending.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
sendEmail Send email
Send a new email through an inbox. The provider-assigned thread id is returned and persisted on the stored email row, so subsequent inbound replies on that thread are linked to this send. The `body` is HTML by default. Set `is_html` to `false` to provide plain text instead; it is converted to HTML before sending.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listExtractorJobs List extractor jobs
List all extraction jobs with pagination, filtering, and sorting. **Scope Filtering:** Use bracket notation to filter by scope keys: - `scope[call_id]=abc-123` - `scope[email_id]=xyz-456` - `scope[case_id]=case-789` Multiple scope filters can be combined (AND logic).
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
createExtractorJob Create extractor job
Create a new extraction job for the specified extractor. Provide a non-empty `scope` object to define what the extractor should process (e.g. `{ "claim_id": "abc-123" }`).
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
getExtractorJob Get extractor job
Retrieve detailed information about a specific extractor job, including its status, timing, and result.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
listWorkerRuns List worker runs
List all worker runs with pagination, filtering, and sorting. **Scope Filtering:** Use bracket notation to filter by scope keys: - `scope[call_id]=abc-123` - `scope[email_id]=xyz-456` Multiple scope filters can be combined (AND logic).
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
createWorkerRun Create worker run
Create a new worker run for the specified worker. Provide a `scope` object with at least one key to define which artifacts the worker should process (e.g. `{ "claim_id": "abc-123" }`). The run stays `pending` until those artifacts are ready. Pass `null` to run the worker without any artifacts — the run is queued immediately. An empty object, or a scope that matches no artifacts, is rejected.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
getWorkerRun Get worker run
Retrieve detailed information about a specific worker run, including its status, timing, and errors.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
listWorkerRunMessages List worker run messages
Retrieve messages emitted during a worker run, ordered by emission time. Supports cursor-style pagination via `after` and `count`. When a page would exceed the response size limit, the largest messages are replaced by a hint to the full message and marked `truncated`.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
getWorkerRunMessage Get worker run message
Retrieve one message emitted during a worker run, in full. Use it for messages the list endpoint returned with `truncated: true`.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
cancelWorkerRun Cancel a worker run
Cancel a worker run. For in_progress runs, the underlying E2B sandbox is terminated when possible. Pending and queued runs are simply marked canceled. Runs that are starting are still being handed their context and cannot be interrupted, so they cannot be canceled until they reach in_progress. Runs in terminal states (completed, failed) cannot be canceled. Already-canceled runs are returned without side effects.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
createWorkerEvalFromRun Create a worker eval from a run
Snapshot a worker run's trigger and resolved artifacts, and record its MCP tool responses from telemetry for replay. Each assertion is graded PASS/FAIL independently on every run.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
runEval Run an eval
Queue an explicit worker version against the eval's immutable artifact snapshot and mocked tools.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
listEvalRuns List an eval's runs
Run history of an eval (newest first by default) without tool traces. Use GET /v1/eval-runs/{evalRunId} for a run's tool trace.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
getEvalRun Get an eval run
Get the status and prompt-grader result for an eval run.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
createEvalBenchmark Benchmark two worker versions on an eval
Queue runs_per_configuration trials of the eval against a candidate and a baseline worker version. When all trials finish, the benchmark reports mean ± stddev pass rate per configuration, the candidate-minus-baseline delta, and analyzer notes.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
listEvalBenchmarks List an eval's benchmarks
Benchmark history of an eval (newest first by default) without per-run details. Use GET /v1/benchmarks/{benchmarkId} for the runs.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
getBenchmark Get a benchmark
Get a benchmark with its per-run gradings and metrics, and once all runs finished, the per-configuration summary, delta, and analyzer notes.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
listWorkerEvals List a worker's evals
List the evals recorded for a worker, newest first by default. Fixtures and tool mocks are omitted; tool_mock_count gives the number of tool mocks.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
createWorkerBenchmarks Benchmark two worker versions on the worker's evals
Create one benchmark per eval of the worker, or per eval in suite or eval_ids when given, each queueing runs_per_configuration trials against the candidate and the baseline version. Poll each benchmark with GET /v1/benchmarks/{benchmarkId}.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
deleteEval Delete an eval
Remove an eval from every suite and soft-delete it. Its past runs and benchmarks stay readable. Returns 409 while any of its runs are queued, running or judging.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateEval Update an eval
Rename an eval or replace its assertions. Returns 409 while any of its runs are queued, running or judging.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
listWorkerEvalSuites List a worker's eval suites
List the suites of a worker's evals with the evals in each.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
setWorkerEvalSuite Set a worker's eval suite
Make the suite contain exactly the given evals of the worker; an empty list removes the suite.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
createExtractor Create extractor
Create a new extractor with a name and JSON schema defining the extraction output format.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listExtractors List extractors
List all extractors with pagination, filtering, and sorting. Filter by name using the `name` query parameter.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getExtractor Get extractor
Retrieve a single extractor by ID, including its schema and version.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateExtractor Update extractor
Update an extractor's schema. This creates a new version of the extractor.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
deleteExtractor Delete extractor
Soft-delete an extractor and all of its versions. Soft-deleted extractors no longer appear in any read.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
createWorker Create worker
Create a new worker with a name and prompt.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listWorkers List workers
List all workers with pagination, filtering, and sorting. Filter by name using the `name` query parameter.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getWorker Get worker
Retrieve a single worker by ID.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
deleteWorker Delete worker
Delete a worker. The worker is hidden from all reads; its run history is preserved.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateWorker Update worker
Partially update a worker. Omitted fields are left unchanged, and one request creates at most one new config version.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
getWorkerPrompt Get worker prompt
Retrieve the prompt for a worker. Pass `version` to fetch the prompt snapshot at a specific config version; omit it to fetch the current prompt. Internal use only.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
updateWorkerPrompt Update worker prompt (deprecated)
Update the prompt for a worker. Internal use only. **Deprecated:** Use `PATCH /v1/workers/{workerId}` instead.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
listWorkerModels List available worker models
List the LLM models that can be assigned to a worker via the `model` field on update.
updateWorkerMcps Update worker MCP servers (deprecated)
Replace the set of MCP servers a worker connects to. Pass an empty array to disconnect. **Deprecated:** Use `PATCH /v1/workers/{workerId}` instead.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
getAccess Get access
List who an entity is shared with. Admins see every entity through their role, whether or not they are listed. Requires `workers:write` on a worker, `case-types:write` on a case type and `voice-agents:write` on a voice agent.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
changeAccess Change access
Grant, change or revoke access for specific team members and workers. Everyone not named keeps their access. Each grantee must be a team member or a worker of the tenant. Requires `workers:write` on a worker, `case-types:write` on a case type and `voice-agents:write` on a voice agent. An editor who revokes their own grant loses access, and one who downgrades it can no longer change or share the entity, unless their role gives it.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
getMyAccess Get my access
List what the caller may do with an entity, through their role or a grant on it, to decide which controls to show. An entity the caller cannot see is not found.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
listWorkerVersions List worker versions
List all config versions for a worker, ordered by version (newest first by default).
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
getWorkerVersion Get worker version
Retrieve a single worker config version, including the worker's identity, the config snapshot at that version, and version-specific metadata. The prompt is served separately by the worker prompt endpoint.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
promoteWorkerVersion Promote worker version
Select a worker configuration version for the live or test environment. This freezes the config snapshot only — the E2B template, attached tools and attached secrets are not versioned and always resolve to their current values.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
getWorkerVersionChangeSummary Get worker version change summary
Returns an AI-generated summary of what changed between this version and the previous one. Initial version returns an empty string since there is no predecessor.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
createWorkerWebhook Create worker webhook
Create a webhook that fires when events occur for the specified worker.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
listWorkerWebhooks List worker webhooks
List all webhooks configured for a specific worker.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
listCases List cases
List all cases for the current tenant, paginated, filterable, and sortable.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
createCase Create case
Create a case with a client-supplied id. Case ids are tenant-scoped opaque keys (e.g. "clm-1", "STD-001") and are normalized server-side (trimmed and lowercased). Creating an id that already exists **in the same environment** returns 409 — the same id can exist once in `live` and once in `test`.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
searchCases Search cases
Probe for candidate cases. Matches the query as a normalized substring of the case id, and fuzzily (trigram) against subject and reporter. Results are relevance-ranked — id matches first, then best fuzzy match, then most recently updated — so ordering is fixed and not configurable.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getCase Get case
Retrieve a case by id, with its current fields. Related entities are not embedded — fetch them via the filtered list endpoints, e.g. `GET /v1/worker-runs?case_id=…` and `GET /v1/artifacts?metadata[case_id]=…`.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
deleteCase Delete case
Delete a case. The case and its links stop being visible; the linked entities themselves are untouched. The id becomes available again — a case created with the same id afterwards is a new, empty case, not the deleted one. Unlike removing a case link, this is **not** idempotent: deleting a case that does not exist, or has already been deleted, returns 404.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
updateCase Update case
Only the fields sent change.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object | |
bodyParams | object |
getCaseCitations Get case citations
Resolve the chunks cited by a case's current field values, keyed by chunk id. Each field in `GET /v1/cases/{id}` lists its citations as chunk ids; this endpoint returns the document, page, bounding box and text for each. Chunks whose document was deleted are omitted. A case with no cited fields returns an empty map.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
addCaseLinks Add case links
Link up to 100 entities (artifacts, calls, chats, emails, extracts, information requests, schedules, worker runs) to a case. The case and every entity must already exist in the tenant — unknown ids return 404 and nothing is created. Calls, emails, information requests and worker runs must belong to the case's environment, and a schedule must run in it; artifacts, chats and extracts are not environment-scoped and can be linked to a case in either. A mismatch rejects the whole request. Adding is idempotent: re-linking an already linked entity returns the existing link with its original `creat…
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object | |
bodyParams | object |
listCaseLinks List case links
List the entities linked to a case, paginated and filterable by entity type.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
removeCaseLink Remove case link
Remove the link between a case and an entity. Removal is idempotent: removing a link that does not exist succeeds without effect.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
listCaseLeases List case leases
List which worker runs work on which cases, or did so before, and what for.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
createChatAgent Create chat agent
Create a new chat agent with a name and prompt.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listChatAgents List chat agents
List the tenant's chat agents with pagination and sorting. Prompts are not returned.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getChatAgent Get chat agent
Retrieve a single chat agent by ID, including the IDs of its attached code tools. The prompt is not returned.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateChatAgent Update chat agent
Patch a chat agent's attached code tool set and evaluator. The response does not include the resulting tool list; the agent's `updated_at` is not bumped when only the tool set changes. Set `evaluator_slug` to score the agent's chats with that evaluator when they end. It applies to every chat that ends afterwards. Set `identity_provider_id` to restrict the agent to members signed in through that identity provider. It applies to every chat opened afterwards. Set `theme` to brand the hosted chat page with your colors, fonts and logo.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
deleteChatAgent Delete chat agent
Soft-delete a chat agent. The agent no longer appears in any read and stops accepting new chats; existing chats and messages are preserved.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
getChatAgentPrompt Get chat agent prompt
Retrieve the prompt and greeting for a chat agent. Internal use only.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateChatAgentPrompt Update chat agent prompt
Update the prompt and/or greeting for a chat agent. Internal use only.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
createChat Create a chat
Create a new chat against an existing chat agent. The chat agent's tenant becomes the owner of the chat. If the agent requires authentication (`identity_provider_id` on the public chat agent), send the identity token from `POST /public/v1/identity/token` in the `X-External-Identity-Token` header; without a valid token the request fails with 401.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
getChat Get a chat
Return a chat and its messages in chronological order. Used to re-render a transcript after a reload. Only `user` and `assistant` messages are included; tool calls and tool results are omitted. Each message's `content` is the concatenation of its text blocks separated by newlines. For compatibility this endpoint is also available using the following (deprecated) paths: `GET /public/v1/chat`
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
getPublicChatAgent Get a chat agent (public)
Return the public-facing fields of a chat agent for use in the chat UI. Sensitive fields such as the agent's prompt and tenant ID are not exposed.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
postChatMessage Post a message to a chat
Post a user message to an existing chat and return the assistant reply. Both messages are persisted. For compatibility this endpoint is also available using the following (deprecated) paths: `POST /public/v1/chat/messages`
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
endChat End a chat
End a chat. Further messages are rejected with `409`. Ending an ended chat also returns `204`.
exchangeExternalIdentityToken Exchange an external identity token
Redeem a single-use interclient token from a partner identity provider for a short-lived Avallon identity token. A malformed request body returns 400. A rejected exchange returns 401; the interclient token may already be spent, so request a fresh one before retrying.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listChats List chats
List the tenant's chats with pagination, sorting, and optional filtering by case. Returns chat metadata, message counts and evaluation outcome; messages are not included.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
listChatMessages List chat messages
List messages for a chat owned by the tenant, in chronological order by default.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
getChatEvaluation Get chat evaluation
Retrieve the evaluation results for a chat, including overall score, pass status, and per-metric breakdowns.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
getPublicFormSubmission Get a form submission's form (public)
Return the title and JSON Schema of the form version a submission link is pinned to, for the form renderer. The id and the password set on create are the credential; an unknown id is 404 and a wrong password, or a link created without one, is 401. Once the request has been submitted the request fails with 409 and `{ title }`.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
submitFormSubmission Submit a form submission (public)
Store the answers for a submission link and hand them to the form's processor. Each link can be submitted once: a second submit fails with 409. The id and the password set on create are the credential; an unknown id is 404 and a wrong password, or a link created without one, is 401.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
getPublicFormSubmissionTheme Get a form submission's theme (public)
Return the form title and the name and branding of the tenant a submission link belongs to, so the form renderer can style the page before the password is entered. Needs no password; an unknown id is 404.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
createForm Create form
Create a form. Its schema becomes version 1, used by both live and test. The schema is validated against the renderer subset; violations are reported as 400 with the offending field path.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listForms List forms
List the forms shared with the caller, each at its latest version.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getForm Get form
Retrieve a form at its latest version.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateForm Update form
Partially update a form. Omitted fields are left unchanged, and one request creates at most one new version — none when nothing changed. Live and test keep pointing at their versions until promoted.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
listFormVersions List form versions
List a form's versions without their schemas, newest first by default. Fetch a version's schema with the form version endpoint.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
getFormVersion Get form version
Retrieve a form at the given version, including that version's schema.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
promoteFormVersion Promote form version
Point the live or test environment at an existing form version. New submission links for that environment are pinned to it; open links keep their version.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
createFormSubmission Create form submission
Open a submission link for a form, pinned to the version the given environment points at. Send the returned url and the password to the person filling the form.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listFormSubmissions List form submissions
List the submission links of the forms shared with the caller, with the answers of those already submitted.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getFormSubmission Get form submission
Retrieve a submission link and, once it was submitted, the answers. Used by the form's worker and the studio; respondents use the public endpoint instead.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
createIntake Create intake
Create an intake with the routes its items can be routed to. The routes and dry run become version 1, used by both live and test. A worker routes the intake's items once its config has the `intake_id`, set with `PATCH /v1/workers/{workerId}`. Route names must be unique within the intake, and only workers can process a route.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listIntakes List intakes
List intakes with their routes at the newest version.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getIntake Get intake
Retrieve an intake with its routes at the newest version.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateIntake Update intake
Update an intake. A change creates a new version, which live and test use once it is promoted.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
promoteIntakeVersion Promote intake version
Point the live or test environment at a version. Any existing version can be promoted, including an older one.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
listIntakeBundles List intake bundles
List the bundles an intake sorted its documents into. Bundles waiting for review have the destination `review`.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
resolveIntakeBundle Resolve intake bundle
Move a bundle out of review: send it to a route, ignore it, or route it again.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams |
getExtract Get extract
Retrieve a single extract by ID, including the extraction result data.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
getExtractCitations Get extract citations
Retrieve the citation tree with resolved chunk data for a given extract. Returns 404 if the extract does not exist or has no citations (the citations sub-resource is not available).
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
listExtracts List extracts
List all extracts with pagination, filtering, and sorting. **Scope Filtering:** Use bracket notation to filter by scope keys: - `scope[claim_id]=abc-123` Multiple scope filters can be combined (AND logic).
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getProfile Get profile
Retrieve the current user's profile information. This endpoint requires a user session and cannot be used with API Keys.
listTeamMembers List team members
List all members in the current tenant.
inviteTeamMember Invite a team member
Invite an email address to join the current tenant. The invitee receives an email and joins at the `member` role once they accept; promote them afterwards with `PATCH /v1/team/members/{id}`. Requires the `teams:write` permission. Returns `409` if the address already has a pending invitation or is already a member.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listTeamInvitations List pending team invitations
List the invitations for the current tenant that are still awaiting acceptance. Accepted, revoked and expired invitations are not returned. Invitees are not team members yet, so they do not appear in `GET /v1/team/members`. A member-management screen shows both by merging the two lists. Requires the `teams:write` permission.
revokeTeamInvitation Revoke a team invitation
Cancel a pending invitation. The link that was emailed to the invitee stops working, and the address becomes free to invite again. Idempotent: an invitation that was already accepted, revoked or expired also returns `204`. Requires the `teams:write` permission. Returns `404` for an unknown invitation or one that belongs to another tenant.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
resendTeamInvitation Resend a team invitation
Email the invitation to its recipient again, for an invite that never arrived. The invitation keeps its `id` and its original expiry — this re-sends the existing link rather than issuing a new one. To give someone a genuinely fresh 5 days, revoke the invitation and send a new one instead. Requires the `teams:write` permission. Returns `409` if the invitation is no longer pending — it was accepted, revoked or expired underneath the caller — and `404` for an unknown invitation or one that belongs to another tenant.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateMemberRole Update member role
Change the role of a team member.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
removeMember Remove team member
Soft-delete a team member, revoking access on the next token refresh.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
getTenantSettings Get tenant settings
Retrieve the settings of the current tenant.
updateTenantSettings Update tenant settings
Update settings of the current tenant. Requires the `tenants:write` permission, which only Avallon admins hold.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
createIdentityProvider Create an identity provider
Register an external identity provider (Okta Native-to-Web SSO) for member sign-in. Attach it to a chat agent with `identity_provider_id` on `PATCH /v1/chat-agents/{id}`; only its members may then open chats with that agent. The client secret is encrypted at rest and **write-only**. Requires the `identity-providers:write` permission.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listIdentityProviders List identity providers
List the organization's identity providers. Client secrets are never included. Requires the `identity-providers:write` permission.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getIdentityProvider Get identity provider
Get an identity provider. The client secret is never included. Requires the `identity-providers:write` permission.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateIdentityProvider Update identity provider
Update an identity provider. Omitted fields are left unchanged; `scopes` replaces the stored list. Passing `client_secret` rotates it. The `slug` is immutable: clients and existing chats refer to the provider by it. Requires the `identity-providers:write` permission.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
deleteIdentityProvider Delete identity provider
Delete an identity provider. Fails with 409 while chat agents are still attached to it. Requires the `identity-providers:write` permission.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
createSecret Create a secret
Create an organization-level secret. The value is encrypted at rest and **write-only** — no endpoint ever returns it. Requires the `secrets:write` permission. Env keys used by the worker runtime itself (e.g. `OPENAI_API_KEY`, `AVALLON_*`, `AWS_*`) are reserved and rejected.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listSecrets List secrets
List the organization's secrets with pagination and sorting. Values are never included. Requires the `secrets:read` permission.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getSecret Get secret
Get a secret's metadata. The value is never included. Requires the `secrets:read` permission.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateSecret Update secret
Update a secret's display name or description, or rotate its live or test value. Rotation overwrites the stored value — previous values are not retrievable. The `env_key` is immutable: consumers of the secret receive the value under that key, so changing it would silently break them. Create a new secret instead. Requires the `secrets:write` permission.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
deleteSecret Delete secret
Delete a secret and detach it from all entities. Requires the `secrets:write` permission.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
createEvaluator Create an evaluator
Create an evaluator: a named set of metrics that an LLM judge scores every call or chat of the agents it is attached to. Evaluators can't be changed after creation, so past scores keep their meaning. To change the criteria, create a new evaluator (e.g. `support-quality-v2`) and attach that instead. A slug that already exists returns 409. Attach it to a voice agent with `PATCH /v1/voice-agents/{voiceAgentId}` (`evaluator_slug`), then promote that version, or to a chat agent with `PATCH /v1/chat-agents/{chatAgentId}` (`evaluator_slug`). Requires the `evaluators:write` permission.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listEvaluators List evaluators
List all evaluators of the tenant with their metrics.
getEvaluator Get an evaluator
Retrieve an evaluator and the metrics its judge scores.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
createSchedule Create a schedule
Create a schedule that performs an action, either repeatedly or once. `action` describes **what** happens: `trigger_worker` starts a worker run with the given scope, and `execute_tool` executes a tool without parameters. `rule` describes **when**: `recurring` carries one or more `patterns`, and fires whenever any of them comes round. A pattern fires every hour at `minute`, narrowed by `hours` and `weekdays` — so `hours: [9]` is daily at 09:00, `hours: [12], weekdays: [1]` is Mondays at noon, and `hours: [9, 13, 17], weekdays: [1, 2, 3, 4, 5]` is three times a day on weekdays. Give a second…
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listSchedules List schedules
List the organization's schedules. Requires the `schedules:read` permission.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getSchedule Get a schedule
Retrieve a single schedule. Requires the `schedules:read` permission.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateSchedule Update a schedule
Update a schedule's rule, environments, name, or enabled state. Changing the rule moves `next_run_at` to the first occurrence after the update; a rule that resolves to no such occurrence is rejected. One-off schedules are always enabled — delete one to cancel it before it fires. `environments` replaces the whole list rather than adding to it. It takes effect from the next occurrence: one already due keeps the environments it was created with.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
deleteSchedule Delete a schedule
Delete a schedule so it stops firing.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
listDispatches List dispatches
List the organization's dispatches, newest occurrence first. A dispatch is one occurrence of a trigger in one environment, carried out on its own: a schedule produces one per environment it runs in every time it fires, an inbound email produces one for the environment its inbox received it in, a resolved information request produces one that restarts the worker that asked, an ended call produces one that runs its voice agent's post-call processor once its transcript is ready, and creating a worker run through the API produces a `manual` one, carried out before the request returns. Listing the…
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
listNotifications List notifications
List the organization's notifications, newest first. A notification is a durable record that something happened and that somebody should know about it. Notifications are not yet addressed to individual people, so everyone in the organization sees the same feed. `title` and `body` are the display text — render them as-is rather than deriving your own wording from `type`, so every surface says the same thing. `data` carries the identifiers the notification points at, so a client can link to the thing it is about; which keys are present depends on `type`. `worker_issue_reported` means a work…
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getNotification Get notification
Retrieve a single notification by its ID, the id a `notification.created` webhook delivery carries. `title` and `body` are the display text — render them as-is rather than deriving your own wording from `type`, so every surface says the same thing. `data` carries the identifiers the notification points at, so a client can link to the thing it is about; which keys are present depends on `type`. `worker_issue_reported` means a worker hit a problem during a run and reported it; its `body` is the worker's own message and its `data` is the reporting `worker_id` and `run_id`. `information_reques…
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
createInformationRequest Ask for information
Ask a person for a specific fact you cannot establish yourself. Use this when one missing piece of information is blocking you and only a human can supply it — which claim a document belongs to, which of two policies applies, what an ambiguous reference means. Ask one answerable question per request, and write it so it stands on its own: whoever resolves it sees your title and your question and nothing else. Immediately link the request to its case with `addCaseLinks` and `entity_type: "information_request"`. That is how it reaches the person working that case; unlinked, it sits in a queue…
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listInformationRequests List information requests
List the organization's information requests, newest first. An information request is a specific question a worker could not settle on its own and needs a person to resolve. It stays open until somebody resolves it; there is no separate status field.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getInformationRequest Get information request
Retrieve a single information request by its ID.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
deleteInformationRequest Delete information request
Delete an information request, open or resolved..
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
resolveInformationRequest Resolve information request
Resolve an open information request by providing an answer/resolution.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
createCaseType Create case type
Create a case type. Its fields become version 1, used by both live and test.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listCaseTypes List case types
List the organization's case types, without their fields.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getCaseType Get case type
Retrieve a case type with its fields at the newest version. Inside a worker run, returns the version the run's environment points at.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateCaseType Update case type
Update a case type. Its fields are changed through `/v1/case-types/{caseTypeSlug}/fields`. Setting `view_template`, or removing it with null, creates a new version; its placeholders must name fields of the case type.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
listCaseTypeVersions List case type versions
List a case type's versions, newest first by default.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
getCaseTypeVersion Get case type version
Retrieve a case type with its fields at a specific version.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
getCaseTypeViewTemplate Get case type view template
Retrieve the Overview template of a case type at a specific version, or null when it has none.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
promoteCaseTypeVersion Promote case type version
Point the live or test environment at a version. Any existing version can be promoted, including an older one.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
createCaseTypeField Create case type field
Add a field to a case type. Creates a new version; promote it to use the field.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
updateCaseTypeField Update case type field
Change a field's label, description, nullability, enum or sensitivity. Creates a new version when something changes; promote it to use the change. A field's key, type, list-ness and parent are permanent.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
deleteCaseTypeField Delete case type field
Remove a field from a case type. Creates a new version; once it is promoted, the field can't be written. Deleting an object deletes its fields with it. Cases keep their values, and the key can't be reused.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
createTool Create tool
Create a new code tool that can be attached to agents. Provide the tool's name, code, and description.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listTools List tools
List all code tools with sorting. For compatibility this endpoint is also available using the following (deprecated) paths: `GET /worker/v1/tools`
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
deleteTool Delete tool
Delete a tool. Fails with a conflict when the tool is still attached to a voice agent, worker, or chat agent; detach it first.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
getTool Get tool
Retrieve a single tool by ID at its newest config version, including its code, schema, description and attached secrets, plus the versions each environment runs. For compatibility this endpoint is also available using the following (deprecated) paths: `GET /worker/v1/tools/{id}`
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateTool Update tool
Update a code tool's name, description, code, attached secrets or eval behavior. All fields are optional — only provided fields are updated. Changing the code, description or attached secrets creates a new config version; runs keep executing the versions promoted to live and test until that version is promoted. Renaming and changing the eval behavior do not create a version.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
executeCode Execute tool
Execute a code tool with the given parameters. Returns the result, any errors, and execution traces. For compatibility this endpoint is also available using the following (deprecated) paths: `POST /worker/v1/tools/{id}/execute`
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
listToolVersions List tool versions
List all config versions for a tool, ordered by version (newest first by default).
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
getToolVersion Get tool version
Retrieve a single tool config version: the tool's identity, the code, schema, description and attached secrets at that version, and version metadata.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
promoteToolVersion Promote tool version
Select a tool config version for the live or test environment. Runs in that environment execute this version's code with this version's schema and attached secrets from then on.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
getToolVersionChangeSummary Get tool version change summary
Returns an AI-generated summary of what changed between this version and the previous one. Initial version returns an empty string since there is no predecessor.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
listToolCalls List tool calls
List tool calls without their params, result, error and traces. Requires the `tool-calls:read` permission.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
getToolCall Get tool call
Retrieve a single tool call. Requires the `tool-calls:read` permission.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
workerListTools List tools
List all code tools with sorting.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
workerGetTool Get tool
Retrieve a single tool by ID at its newest config version, including its code, schema, description and attached secrets, plus the versions each environment runs.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
workerExecuteTool Execute tool
Execute a code tool with the given parameters. Returns the result, any errors, and execution traces.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
notifyAdmin Notify an admin
Report a problem to the people who run this organization. Use this for something a human has to resolve — a login that no longer works, a document you cannot read, a system that will not let you in, instructions that contradict what you found. The report goes to the organization's notifications; nobody sees it while the run is happening, so it does not unblock you now. Carry on with what you can still do, or stop, and say in your final report that you raised it. Do not use it for progress updates or for anything you can work around yourself.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
uploadFile Upload a file for processing
Upload a file for processing by passing a URL to a file. Use this for uploading larger files. This endpoint returns an upload id that can be used to find the created artifacts using the list artifacts endpoint.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
createAgentWebhook Create voice agent webhook
Create a webhook that fires when events occur for the specified voice agent. For compatibility this endpoint is also available using the following (deprecated) paths: `POST /v1/agents/{id}/webhooks`
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
listAgentWebhooks List voice agent webhooks
List all webhooks configured for a specific voice agent. For compatibility this endpoint is also available using the following (deprecated) paths: `GET /v1/agents/{id}/webhooks`
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
createInboxWebhook Create inbox webhook
Create a webhook that fires when events occur for the specified inbox. For compatibility this endpoint is also available using the following (deprecated) paths: `POST /v1/email-agents/{id}/webhooks`
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
listInboxWebhooks List inbox webhooks
List all webhooks configured for a specific inbox. For compatibility this endpoint is also available using the following (deprecated) paths: `GET /v1/email-agents/{id}/webhooks`
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
createExtractorWebhook Create extractor webhook
Create a webhook that fires when extraction events occur for the specified extractor.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
listWebhooks List extractor webhooks
List all webhooks configured for a specific extractor.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
createNotificationWebhook Create notification webhook
Create a webhook that fires whenever a notification is raised for the organization. Notifications belong to the organization rather than to a resource, so this webhook is not attached to anything: its `scope` is `{ "notifications": true }` and it receives every notification the organization raises. Each delivery carries the notification's `title` and `body` — the same display text `GET /v1/notifications` returns — alongside the structured `data` it points at. Notifications are not environment-specific, so every delivery is `live`. A webhook that names only `test` receives nothing.
| Parameter | Type | Description |
|---|---|---|
bodyParams | object |
listNotificationWebhooks List notification webhooks
List the webhooks that receive the organization's notifications.
| Parameter | Type | Description |
|---|---|---|
queryParams * | object |
deleteWebhook Delete webhook
Permanently delete a webhook. This action is irreversible.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
getWebhook Get webhook
Retrieve a single webhook by ID. The authentication header value is never exposed — only `has_auth` indicates whether authentication is configured.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object |
updateWebhook Update webhook
Update a webhook's name, destination, environments, enabled state, or authentication. Omitted fields are left unchanged, and at least one must be provided.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |
listWebhookDeliveries List webhook deliveries
List delivery attempts for a specific webhook, with pagination and sorting. Useful for debugging webhook issues.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
queryParams * | object |
testWebhook Test webhook
Send a test event to a webhook endpoint. Returns the HTTP status code, response time, and any errors. The request is rejected with a 400 if the webhook does not target the given environment, since a successful ping would say nothing about events it will never receive.
| Parameter | Type | Description |
|---|---|---|
pathParams * | object | |
bodyParams | object |