Requires tools:create. Supply workflow for the canonical HTTP/app/transfer tool variant and an Idempotency-Key header. Identity and revision numbers are server-owned. Creates never execute the action. A 202 response is durable acceptance: poll GET /tools/ until current or a terminal failure. Retrying the unchanged body/key never creates a second tool; changing the accepted body conflicts. Legacy type/config bodies and their camelCase normalization - of the tool name as well as its payload parameter names - remain a temporary migration boundary only; a body without type is read as the workflow variant, so what a tool does always belongs under workflow.
Create one reusable HTTP endpoint, connected-app action, or named transfer. Required scope: tools:create. Send x-company-id for the active workspace and a fresh Idempotency-Key (16–128 letters, digits, _ or -). IDs and revision numbers are assigned by Yappr.
Two bodies, one endpoint — send workflow
This endpoint still accepts two different request bodies, and which one you
send is decided by one key:
You send
You get
Use it?
workflow: {…}
A workflow tool: revisions, a contract with allowed_phases/allowed_channels, a place in the binding catalog, and the name stored exactly as you wrote it. The response carries workflow and workflow_version: "workflow_v1".
Yes. Everything below the legacy heading is the other one.
type + config
A legacy webhook tool. The response carries type and config and no workflow member; the tool has no revisions and no contract, so it does not appear in GET /tools/workflow-catalog and nothing can bind it yet. Giving it one is a second call, POST /tools/{id}/workflow-revisions, which you would not have needed.
No, unless you are maintaining an integration written before workflow tools existed.
Never send both. A body that puts http, app or transfer at the top level
is refused with /workflow and told to move it, rather than being read as the
legacy schema.One difference bites immediately: a legacy body’s name is normalised to
camelCase, so critic-order-lookup is stored and returned as
criticOrderLookup. A workflow body’s name is stored exactly as given,
trimmed only.Brand-new legacy tools are still creatable today. That is deliberate, so an
existing integration keeps working through the migration — it is not a
recommendation. A tool created that way needs a contract revision added before
any agent can use it, so sending the legacy body is a round trip you pay for
once and then pay for again.
Tool names are not unique
Two tools in one workspace may carry the same name, and a create that reuses one
is not refused — production workspaces already hold pairs that share a name,
and refusing the second would break the integrations that made them.It is still worth knowing about, because an agent’s builder picks a tool by name:
two tools called Order lookup are told apart only by an id nobody reads. So a
create whose name is already taken answers 201 (or 202 while the tool is
still being built) with the tool exactly as always, plus a warnings array:
{ "id": "5fa3…", "name": "Order lookup", "workflow": { "status": "current", "…": "…" }, "warnings": [ { "code": "tool_name_in_use", "message": "Another tool in this workspace is already called \"Order lookup\". Both exist; an agent picking a tool by name cannot tell them apart.", "tools": [{ "id": "7cb5…", "name": "Order lookup" }] } ]}
warnings is absent when there is nothing to say, so treat it as optional and
never as a refusal — the tool in the same response was created either way.
Matching is on the trimmed name exactly as stored; archived tools are not
counted. The array is capped at twenty named tools.Idempotency is the other half of this. A repeated Idempotency-Key returns
the first tool rather than making a second one, so a retry after a timeout costs
nothing. Two creates with different keys are two deliberate creates and make
two tools, whatever they are called.
Full input_schema, output_schema, and fixed configuration.url. Method defaults to POST; private headers are optional. The optional workflow.timeout_ms (1–60,000; left out, 30,000) sits beside configuration, not inside it: configuration takes url, method and headers only. No action is sent when saving.
app
Local metadata_id from dated action detail, exact ready connection_id, and typed fixed_inputs permitted by its reviewed policy. Optional timeout_ms (1–60,000; left out, 30,000).
transfer
Fixed destination: an international number (+972501234567) or a SIP address of the caller’s own phone system (sip:extension@pbx.example.com, which works only on calls that arrive through your SIP trunk, where your phone system has about nine seconds to answer and a failed hand-off ends the call, or through an extension endpoint); optional announce_transfer and announce_message. Each named destination is a separate tool, available during phone calls only. Intrinsic End is not a tool. On an extension endpoint’s calls the tool uses the transfer code set on the endpoint; it takes transfer_method, pbx_feature_code and pbx_feature_code_hangup_after_secs only when it needs a code of its own (below).
Reading a tool back never returns its URL in full. An HTTP tool’s saved
configuration.url is projected as url_display (scheme, host and path) plus
url_redacted and configured_query_names, and every read carries
url_replacement_required: true — a constant that states the rule rather than
a condition: changing the URL later means sending the whole URL again, query
string included, and keeping it means omitting the field. See
Get tool. Headers behave the same way: the names
come back, the values never do.App discovery does not imply execution eligibility. An action must have supported, reviewed completion, effect and file semantics. Its full raw contract stays private; the model schema excludes fields fixed by the tool owner. Neither model arguments nor test input can replace the saved account, action, version or fixed values.
A transfer tool with its own transfer code
On a call that arrived through an extension endpoint, a transfer to an extension uses
the transfer code set on the endpoint
(register.pbx_feature_code), so a transfer tool needs nothing for it. Give a tool a
code of its own only when this one transfer needs a different one:
The tool’s code and hang-up time replace the endpoint’s as a pair: leave out
pbx_feature_code_hangup_after_secs and this tool waits for your phone system,
whatever the endpoint sets.
destination must be a SIP address whose extension a keypad can dial: up to 32
digits, * or # before the @.
The rules are the endpoint’s: pbx_feature_code is 1 to 32 characters of 0-9,
*, #, A-D and the pauses w and W, with at least one key and
{extension} at most once; the hang-up time is a whole number from 1 to 10.
A fault is a 422 WORKFLOW_TOOL_REQUEST_INVALID with an issue at
/workflow/<field>: transfer_method_invalid, pbx_feature_code_missing,
pbx_feature_code_invalid, transfer_extension_not_dialable (at
/workflow/destination), pbx_feature_code_hangup_after_secs_invalid or
pbx_feature_code_hangup_after_secs_without_code.
A read shows them under workflow.current. "transfer_method": "auto" on an
update removes them, so the endpoint’s code applies again
(Update tool).
A transfer tool an agent brought with it when it moved to a workflow keeps the code it
had, its hang-up time included.
Google Calendar and Gmail actions
Six actions run the way Yappr’s own calendar and email integrations did:
Google Calendar’s Create event, List events, Find free slots, List calendars
and Delete event, and Gmail’s Send email. They run on the version
GET /tool-apps/{app} offers by default
(20260902_00 for Google Calendar, 20260911_00 for Gmail); a tool on any
other version of them is refused (parity_version_unpinned).Yappr fixes their provider settings: no video-meeting room and the organizer not
added as a guest on a new event, one calendar searched, plain-text email. In
fixed_inputs you may choose only the calendar (calendar_id; calendarId on
List events; items: ["<calendar id>"] on Find free slots) and the time zone
(timezone; timeZone on List events), an IANA name such as
Asia/Jerusalem. Anything else is refused with configured_fields_invalid.Without a time zone, the tool takes your workspace’s time zone when it is
saved. Times the model sends without an offset are read in that zone, and
results come back as wall-clock times in it, labelled with timeZone. Each time
is read at the offset its own date has in that zone, so a booking on the far
side of a daylight-saving change keeps its hour. A time the clocks skip (02:30
on the night they go forward) is read as the moment it would have been, 03:30.
A time the clocks repeat (01:30 on the night they go back) is its first
occurrence in a search window; Create event refuses it with
parity_datetime_ambiguous and books nothing, since either 01:30 could be
meant. Reading
the tool back shows every fixed value, the zone included, so saving it again
keeps that zone; send "fixed_inputs": {} with
PATCH /tools/{id} to take the workspace’s
current zone instead.
When the body is wrong
A body Yappr can read but not accept answers 422 WORKFLOW_TOOL_REQUEST_INVALID
with an issues[], one entry per field at fault, each with a JSON pointer:
{ "error": "configuration.url must be an absolute http or https URL with a host and no embedded credentials, for example https://example.com/orders. Never send url_display back: it is display text with the private query removed.", "code": "WORKFLOW_TOOL_REQUEST_INVALID", "issues": [ { "code": "tool_request_invalid", "path": "/workflow/configuration/url", "message": "configuration.url must be an absolute http or https URL…" }, { "code": "tool_request_invalid", "path": "/workflow/effect", "message": "effect is \"read\" for a lookup that changes nothing, or \"write\" (the default) for one that does." } ]}
No tool is created by a refusal of this kind, and every field at fault is in
the one answer. An HTTP tool whose configuration.url is on localhost, a
private network (10.x, 172.16–31.x, 192.168.x), a link-local, a cloud-metadata
or another reserved address (IPv6 outside global unicast, 6to4 2002::/16,
NAT64 64:ff9b::/96) is refused here too, with the issue code url_not_public
at /workflow/configuration/url: our servers can never reach it. A hostname is
read for what it resolves to as well as how it is written: a name whose DNS
answers include such an address (127.0.0.1.nip.io) is refused with the same
code. A rebinding name, one that answers a public address now and a private one
later (…rbndr.us), is built when its answer is public; every call resolves it
again and connects only to the public address it checked, so an answer that has
turned private is refused there and nothing is sent — a test
reads blocked, with outcome.error_codeurl_resolves_private. A host written
as a shortened, octal or hexadecimal number (1.2.3, 01.2.3.4) is refused
the same way with url_host_form: write it as a hostname or as four plain
decimal numbers. A number that spells loopback or a private address in any of
those forms (2130706433, 0177.0.0.1, 0x7f000001) is url_not_public. A
request carrying some of those forms can be stopped by our network edge before it
reaches the API, with an HTML 403 instead of this JSON answer; nothing is
created either way.What can only be found while the tool is built — a connected-account action
that is not eligible, a connection that is not ready, a schema the builder
rejects — answers 422 WORKFLOW_TOOL_NOT_BUILT. The body is the tool’s own
document, so its id is the tool to fix, with error saying what to do and
issues[0] naming the field; issues[0].code is the same reason as
workflow.error_code:
{ "id": "TOOL_ID", "name": "Find free slots", "workflow_version": "workflow_v1", "workflow": { "kind": "app", "status": "failed", "current": null, "error_code": "connection_unavailable" }, "error": "The connected account is not ready to use: it is still connecting, was disconnected, or needs reconnecting. Reconnect it (GET /tool-connections shows its state), then send the whole tool again with PATCH /tools/{id}.", "code": "WORKFLOW_TOOL_NOT_BUILT", "issues": [ { "code": "connection_unavailable", "path": "/workflow/connection_id", "message": "The connected account is not ready to use: …" } ]}
That answer used to carry only workflow.error_code, under the fallback code
UNPROCESSABLE_REQUEST.An app tool whose metadata_id or connection_id names nothing — an id
that is not an action from Get app action, or
not one of this workspace’s connected accounts —
is a mistake in the request, not a tool that failed. It answers 400 WORKFLOW_TOOL_REFERENCE_INVALID with an issues[] entry for each field at
fault, and writes nothing:
{ "error": "connection_id names no account in this workspace. Take the id of a row from GET /tool-connections.", "code": "WORKFLOW_TOOL_REFERENCE_INVALID", "issues": [ { "code": "tool_reference_unknown", "path": "/workflow/connection_id", "message": "connection_id names no account in this workspace. Take the id of a row from GET /tool-connections." } ]}
A tool that did fail — the account was not connected yet, say — is not a dead
end. Connect the account, then send the whole tool again with
PATCH /tools/{id}
to build it under the same id, or remove it with
DELETE /tools/{id}.What the tool does always lives under workflow. A body that puts http,
app or transfer at the top level is refused with /workflow and told to
move it, rather than being read as the legacy type/config schema.workflow.input_schema must declare "type": "object" at its root, as this
reference has always described it. A schema carrying only properties is now
refused here, by name, instead of being accepted and failing later while the
tool is built.201 means the tool was built while the request waited and has a current revision: bind it now. Every create the build service takes answers 201, after waiting a few seconds at most for its build, so identical creates answer the same status. 202 means the create is queued and not built yet — the build service could not take it right now, or the build was still running when that wait ended. Poll GET /tools/{id} with the returned id until workflow.status is current (or failed). After a lost response, resend the identical body and key: Yappr returns the original identity, never a second tool. Changed content with the same key returns 409; invalid contracts may return 422 with a durable failed state. The accepted request is limited to 256 KiB.Schemas preserve nested types, required fields, defaults, combinators and exact JSON numbers. Use a lossless JSON client for integers outside JavaScript’s safe range. Saving does not make an HTTP/provider request.
The legacy type/config body
Supported during migration only — see the table at the top of this page for
what you give up by sending it. Do not combine it with workflow, and do not
use it to mutate or execute workflow-owned tools. Legacy webhook rules:
For webhook tools, description is required because it tells the model when the tool is appropriate.
config.url must be a final public HTTP(S) endpoint. Local and non-public targets are rejected at save time with 400, including a hostname whose DNS answers include one (127.0.0.1.nip.io); dispatch reads the DNS answers again and rejects non-public or mixed ones. Redirects are not followed.
config.method supports GET, POST, PUT, PATCH, and DELETE; timeout_seconds is 1–60 seconds and defaults to 30. On a live call the agent waits that long for the answer before the call treats the tool as failed.
Request headers must have non-empty names and string values, and a null value is refused here: nothing is stored yet for it to keep. The response never carries the values back — config.configured_header_names names them instead. Routing/framing headers such as Host, Content-Length, Transfer-Encoding, Connection, Expect, Keep-Alive, Proxy-*, TE, Trailer, and Upgrade are rejected. Authorization and custom content types remain supported.
The tool name is normalized to camelCase and stored that way.critic-ron-notify-noshow is created as criticRonNotifyNoshow, and a legacy body that renames a tool with PATCH /tools/{id} does the same. The response carries the stored name — read it back and use that, not the string you sent, when you look the tool up later or name it in a prompt. A name sent with the workflow variant is stored exactly as given, trimmed only.
Payload parameter names are normalized to camelCase. Extraction descriptions are required, and required defaults to true when omitted.
Webhook tools are dispatched once. retry_count is unsupported because automatically replaying an action could duplicate a non-idempotent operation.
Authorizations
Authorization
string
header
required
Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys. No key is 401 MISSING_KEY; a key that is not one of ours, or is revoked, is 401 INVALID_KEY; an expired one is 401 EXPIRED_KEY. A valid key without the scope an operation needs is 403 INSUFFICIENT_SCOPE on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's RATE_LIMIT asks for what is left of the minute, a route's daily cap (RATE_LIMITED) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is 404 ROUTE_NOT_FOUND, and a method a served path does not take is 405 METHOD_NOT_ALLOWED with an Allow header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (POST /calls/ is POST /calls) and refused where it can (GET /calls/). A doubled slash inside a path is merged into one before the request reaches the API (GET //calls is GET /calls).
Headers
Idempotency-Key
string
Required for the workflow variant. Preserve the same key and accepted body after a lost response.
Pattern: ^[A-Za-z0-9_-]{16,128}$
x-company-id
string<uuid>
Explicit active workspace. Optional; when sent it must be the API key's own workspace — any other value is refused with 403 WORKSPACE_MISMATCH.
Body
application/json
Option 1
Option 2
name
string
required
Stored verbatim for the workflow variant. A legacy type/config body has its name normalized to camelCase before it is stored - "critic-ron-notify-noshow" is created as "criticRonNotifyNoshow" - so read the stored name back from the response rather than assuming the one you sent.
Required string length: 1 - 200
Example:
"capture_lead"
workflow
object
required
Option 1
Option 2
Option 3
Show child attributes
description
string
requirediftype=webhook
Required and non-empty when type is webhook; optional for function tools.
Maximum string length: 10000
expected_head_revision_id
string<uuid>
expected_head_generation
integer
Required range: x >= 1
type
enum<string>
Available options:
webhook,
function
idempotency_key
string
config
object
Webhook configuration is validated as described below; function-tool configuration is stored as an arbitrary JSON object.
Response
Idempotent replay of an already-materialized tool.
id
string<uuid>
required
name
string
required
workflow_version
any
required
read-only
workflow
object
required
Show child attributes
description
string | null
is_active
boolean
created_at
string<date-time>
When the tool was made. On a creation that has not built, when it was first asked for; a retry does not move it.
integration
object
read-only
Present only on a tool an integration runs one of its actions through: the tool made for a connected account's action when that account is given to an agent (POST /agents/{id}/integrations). It names the account and the action. Such a tool belongs to the integration and is shared by every agent the account is given to: PATCH /tools/{id} answers 409 INTEGRATION_ACTION_MANAGED, DELETE /tools/{id} does too while any agent still uses it, and GET /tools leaves it out. Change which actions an agent uses with PATCH /agents/{id}/integrations/{integration_id}.
Show child attributes
warnings
object[]
Present only on a create that went through with something worth saying about it - today, only that another tool in this workspace already carries the same name. Never a refusal: the tool in the same response exists. Absent when there is nothing to say.
Show child attributes
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Yappr","colors":{"primary":"#6366f1","light":"#818cf8","dark":"#4f46e5"},"favicon":"https://mintcdn.com/yappr/E1AQ46GZ-5iPcyPp/favicon.svg?fit=max\u0026auto=format\u0026n=E1AQ46GZ-5iPcyPp\u0026q=85\u0026s=a8c28fe51e78b8e4701c773698ba2378","logo":{"light":"https://mintcdn.com/yappr/E1AQ46GZ-5iPcyPp/logo/light.svg?fit=max\u0026auto=format\u0026n=E1AQ46GZ-5iPcyPp\u0026q=85\u0026s=a117ff3aa08c2017e8d58b0da5be882f","dark":"https://mintcdn.com/yappr/E1AQ46GZ-5iPcyPp/logo/dark.svg?fit=max\u0026auto=format\u0026n=E1AQ46GZ-5iPcyPp\u0026q=85\u0026s=613f48501928d9122f97fb91bfcf9b87"},"api":{"openapi":"openapi.yaml"},"footer":{"socials":{"website":"https://goyappr.com"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"yappr","hasAudioNarration":false,"actualSubdomain":"yappr","customDomains":["docs.goyappr.com"],"gitSource":{"type":"github","owner":"simon-isf","repo":"hebrew-voice-ai","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b097bda241cbb20e7401d81","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"API Reference","count":210},{"language":"default","tag":"Tools \u0026 integrations","count":35},{"language":"default","tag":"Agent Eval","count":24},{"language":"default","tag":"Agents","count":20},{"language":"default","tag":"Tools","count":19},{"language":"default","tag":"Connected accounts","count":16},{"language":"default","tag":"Campaigns","count":15},{"language":"default","tag":"Carrier accounts","count":14},{"language":"default","tag":"Workflows","count":12},{"language":"default","tag":"Billing","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/tools/create","slug":"/api-reference/tools/create","pageMetadata":{"title":"Create Tool","openapi":"POST /tools","description":"Requires tools:create. Supply workflow for the canonical HTTP/app/transfer tool variant and an Idempotency-Key header. Identity and revision numbers are server-owned. Creates never execute the action. A 202 response is durable acceptance: poll GET /tools/{id} until current or a terminal failure. Retrying the unchanged body/key never creates a second tool; changing the accepted body conflicts. Legacy type/config bodies and their camelCase normalization - of the tool name as well as its payload parameter names - remain a temporary migration boundary only; a body without `type` is read as the workflow variant, so what a tool does always belongs under `workflow`.\n","href":"/api-reference/tools/create"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Requires tools:create. Supply workflow for the canonical HTTP/app/transfer tool variant and an Idempotency-Key header. Identity and revision numbers are server-owned. Creates never execute the action. A 202 response is durable acceptance: poll GET /tools/\", \" until current or a terminal failure. Retrying the unchanged body/key never creates a second tool; changing the accepted body conflicts. Legacy type/config bodies and their camelCase normalization - of the tool name as well as its payload parameter names - remain a temporary migration boundary only; a body without \", _jsx(_components.code, {\n children: \"type\"\n }), \" is read as the workflow variant, so what a tool does always belongs under \", _jsx(_components.code, {\n children: \"workflow\"\n }), \".\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Create one reusable HTTP endpoint, connected-app action, or named transfer. Required scope: `,_jsx(_components.code,{children:`tools:create`}),`. Send `,_jsx(_components.code,{children:`x-company-id`}),` for the active workspace and a fresh `,_jsx(_components.code,{children:`Idempotency-Key`}),` (16–128 letters, digits, `,_jsx(_components.code,{children:`_`}),` or `,_jsx(_components.code,{children:`-`}),`). IDs and revision numbers are assigned by Yappr.`]}),`\n`,_jsxs(Heading,{level:`2`,id:`two-bodies-one-endpoint-—-send-workflow`,children:[`Two bodies, one endpoint — send `,_jsx(_components.code,{children:`workflow`})]}),`\n`,_jsxs(_components.p,{children:[`This endpoint still accepts two different request bodies, and `,_jsx(_components.strong,{children:`which one you\nsend is decided by one key`}),`:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`You send`}),_jsx(_components.th,{children:`You get`}),_jsx(_components.th,{children:`Use it?`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`workflow: {…}`})}),_jsxs(_components.td,{children:[`A workflow tool: revisions, a contract with `,_jsx(_components.code,{children:`allowed_phases`}),`/`,_jsx(_components.code,{children:`allowed_channels`}),`, a place in the binding catalog, and the name stored exactly as you wrote it. The response carries `,_jsx(_components.code,{children:`workflow`}),` and `,_jsx(_components.code,{children:`workflow_version: \"workflow_v1\"`}),`.`]}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Yes.`}),` Everything below the legacy heading is the other one.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`type`}),` + `,_jsx(_components.code,{children:`config`})]}),_jsxs(_components.td,{children:[`A legacy webhook tool. The response carries `,_jsx(_components.code,{children:`type`}),` and `,_jsx(_components.code,{children:`config`}),` and no `,_jsx(_components.code,{children:`workflow`}),` member; the tool has no revisions and no contract, so it does not appear in `,_jsx(_components.a,{href:`/api-reference/workflows/catalog`,children:_jsx(_components.code,{children:`GET /tools/workflow-catalog`})}),` and `,_jsx(_components.strong,{children:`nothing can bind it yet`}),`. Giving it one is a second call, `,_jsx(_components.a,{href:`/api-reference/tools/create-revision`,children:_jsx(_components.code,{children:`POST /tools/{id}/workflow-revisions`})}),`, which you would not have needed.`]}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`No,`}),` unless you are maintaining an integration written before workflow tools existed.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Never send both. A body that puts `,_jsx(_components.code,{children:`http`}),`, `,_jsx(_components.code,{children:`app`}),` or `,_jsx(_components.code,{children:`transfer`}),` at the top level\nis refused with `,_jsx(_components.code,{children:`/workflow`}),` and told to move it, rather than being read as the\nlegacy schema.`]}),`\n`,_jsxs(_components.p,{children:[`One difference bites immediately: a legacy body’s `,_jsx(_components.strong,{children:`name is normalised to\ncamelCase`}),`, so `,_jsx(_components.code,{children:`critic-order-lookup`}),` is stored and returned as\n`,_jsx(_components.code,{children:`criticOrderLookup`}),`. A `,_jsx(_components.code,{children:`workflow`}),` body’s name is stored exactly as given,\ntrimmed only.`]}),`\n`,_jsx(_components.p,{children:`Brand-new legacy tools are still creatable today. That is deliberate, so an\nexisting integration keeps working through the migration — it is not a\nrecommendation. A tool created that way needs a contract revision added before\nany agent can use it, so sending the legacy body is a round trip you pay for\nonce and then pay for again.`}),`\n`,_jsx(Heading,{level:`2`,id:`tool-names-are-not-unique`,children:`Tool names are not unique`}),`\n`,_jsxs(_components.p,{children:[`Two tools in one workspace may carry the same name, and a create that reuses one\nis `,_jsx(_components.strong,{children:`not refused`}),` — production workspaces already hold pairs that share a name,\nand refusing the second would break the integrations that made them.`]}),`\n`,_jsxs(_components.p,{children:[`It is still worth knowing about, because an agent’s builder picks a tool by name:\ntwo tools called `,_jsx(_components.code,{children:`Order lookup`}),` are told apart only by an id nobody reads. So a\ncreate whose name is already taken answers `,_jsx(_components.code,{children:`201`}),` (or `,_jsx(_components.code,{children:`202`}),` while the tool is\nstill being built) with the tool exactly as always, plus a `,_jsx(_components.code,{children:`warnings`}),` array:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5fa3…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Order lookup\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"workflow\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"current\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"warnings\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tool_name_in_use\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Another tool in this workspace is already called `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Order lookup`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`. Both exist; an agent picking a tool by name cannot tell them apart.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tools\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7cb5…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Order lookup\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`warnings`}),` is absent when there is nothing to say, so treat it as optional and\nnever as a refusal — the tool in the same response was created either way.\nMatching is on the trimmed name exactly as stored; archived tools are not\ncounted. The array is capped at twenty named tools.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Idempotency is the other half of this.`}),` A repeated `,_jsx(_components.code,{children:`Idempotency-Key`}),` returns\nthe first tool rather than making a second one, so a retry after a timeout costs\nnothing. Two creates with `,_jsx(_components.em,{children:`different`}),` keys are two deliberate creates and make\ntwo tools, whatever they are called.`]}),`\n`,_jsxs(Heading,{level:`2`,id:`the-workflow-body`,children:[`The `,_jsx(_components.code,{children:`workflow`}),` body`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.goyappr.com/tools`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-company-id: COMPANY_ID\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: create-order-lookup-001\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"name\":\"Lookup order\",\"workflow\":{\"kind\":\"http\",\"input_schema\":{\"type\":\"object\",\"properties\":{\"order_id\":{\"type\":\"string\"}},\"required\":[\"order_id\"],\"additionalProperties\":false},\"output_schema\":{\"type\":\"object\"},\"configuration\":{\"url\":\"https://example.com/orders\",\"method\":\"POST\",\"headers\":{}},\"effect\":\"read\",\"timeout_ms\":30000}}'`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variant`}),_jsx(_components.th,{children:`Required configuration`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`http`})}),_jsxs(_components.td,{children:[`Full `,_jsx(_components.code,{children:`input_schema`}),`, `,_jsx(_components.code,{children:`output_schema`}),`, and fixed `,_jsx(_components.code,{children:`configuration.url`}),`. Method defaults to POST; private headers are optional. The optional `,_jsx(_components.code,{children:`workflow.timeout_ms`}),` (1–60,000; left out, 30,000) sits beside `,_jsx(_components.code,{children:`configuration`}),`, not inside it: `,_jsx(_components.code,{children:`configuration`}),` takes `,_jsx(_components.code,{children:`url`}),`, `,_jsx(_components.code,{children:`method`}),` and `,_jsx(_components.code,{children:`headers`}),` only. No action is sent when saving.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`app`})}),_jsxs(_components.td,{children:[`Local `,_jsx(_components.code,{children:`metadata_id`}),` from `,_jsx(_components.a,{href:`/api-reference/tools/action`,children:`dated action detail`}),`, exact ready `,_jsx(_components.code,{children:`connection_id`}),`, and typed `,_jsx(_components.code,{children:`fixed_inputs`}),` permitted by its reviewed policy. Optional `,_jsx(_components.code,{children:`timeout_ms`}),` (1–60,000; left out, 30,000).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`transfer`})}),_jsxs(_components.td,{children:[`Fixed `,_jsx(_components.code,{children:`destination`}),`: an international number (`,_jsx(_components.code,{children:`+972501234567`}),`) or a SIP address of the caller’s own phone system (`,_jsx(_components.code,{children:`sip:extension@pbx.example.com`}),`, which works only on calls that arrive through your `,_jsx(_components.a,{href:`/concepts/sip-trunks#transfers`,children:`SIP trunk`}),`, where your phone system has about nine seconds to answer and a failed hand-off ends the call, or through an `,_jsx(_components.a,{href:`/concepts/sip-trunks#transfers-on-extension-calls`,children:`extension endpoint`}),`); optional `,_jsx(_components.code,{children:`announce_transfer`}),` and `,_jsx(_components.code,{children:`announce_message`}),`. Each named destination is a separate tool, available during phone calls only. Intrinsic End is not a tool. On an extension endpoint’s calls the tool uses the transfer code set on the endpoint; it takes `,_jsx(_components.code,{children:`transfer_method`}),`, `,_jsx(_components.code,{children:`pbx_feature_code`}),` and `,_jsx(_components.code,{children:`pbx_feature_code_hangup_after_secs`}),` only when it needs a code of its own (`,_jsx(_components.a,{href:`#a-transfer-tool-with-its-own-transfer-code`,children:`below`}),`).`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Reading a tool back never returns its URL in full. An HTTP tool’s saved\n`,_jsx(_components.code,{children:`configuration.url`}),` is projected as `,_jsx(_components.code,{children:`url_display`}),` (scheme, host and path) plus\n`,_jsx(_components.code,{children:`url_redacted`}),` and `,_jsx(_components.code,{children:`configured_query_names`}),`, and every read carries\n`,_jsx(_components.code,{children:`url_replacement_required: true`}),` — a constant that states the rule rather than\na condition: changing the URL later means sending the whole URL again, query\nstring included, and keeping it means omitting the field. See\n`,_jsx(_components.a,{href:`/api-reference/tools/get`,children:`Get tool`}),`. Headers behave the same way: the names\ncome back, the values never do.`]}),`\n`,_jsx(_components.p,{children:`App discovery does not imply execution eligibility. An action must have supported, reviewed completion, effect and file semantics. Its full raw contract stays private; the model schema excludes fields fixed by the tool owner. Neither model arguments nor test input can replace the saved account, action, version or fixed values.`}),`\n`,_jsx(Heading,{level:`3`,id:`a-transfer-tool-with-its-own-transfer-code`,children:`A transfer tool with its own transfer code`}),`\n`,_jsxs(_components.p,{children:[`On a call that arrived through an extension endpoint, a transfer to an extension uses\nthe `,_jsx(_components.a,{href:`/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code`,children:`transfer code set on the endpoint`}),`\n(`,_jsx(_components.code,{children:`register.pbx_feature_code`}),`), so a transfer tool needs nothing for it. Give a tool a\ncode of its own only when this one transfer needs a different one:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Transfer to sales\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"workflow\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"kind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"transfer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"destination\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sip:400@pbx.example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transfer_method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pbx_feature_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pbx_feature_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"*2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pbx_feature_code_hangup_after_secs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The tool’s code and hang-up time replace the endpoint’s as a pair: leave out\n`,_jsx(_components.code,{children:`pbx_feature_code_hangup_after_secs`}),` and this tool waits for your phone system,\nwhatever the endpoint sets.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`destination`}),` must be a SIP address whose extension a keypad can dial: up to 32\ndigits, `,_jsx(_components.code,{children:`*`}),` or `,_jsx(_components.code,{children:`#`}),` before the `,_jsx(_components.code,{children:`@`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`The rules are the endpoint’s: `,_jsx(_components.code,{children:`pbx_feature_code`}),` is 1 to 32 characters of `,_jsx(_components.code,{children:`0`}),`-`,_jsx(_components.code,{children:`9`}),`,\n`,_jsx(_components.code,{children:`*`}),`, `,_jsx(_components.code,{children:`#`}),`, `,_jsx(_components.code,{children:`A`}),`-`,_jsx(_components.code,{children:`D`}),` and the pauses `,_jsx(_components.code,{children:`w`}),` and `,_jsx(_components.code,{children:`W`}),`, with at least one key and\n`,_jsx(_components.code,{children:`{extension}`}),` at most once; the hang-up time is a whole number from 1 to 10.`]}),`\n`,_jsxs(_components.li,{children:[`A fault is a `,_jsx(_components.code,{children:`422 WORKFLOW_TOOL_REQUEST_INVALID`}),` with an issue at\n`,_jsx(_components.code,{children:`/workflow/\u003cfield>`}),`: `,_jsx(_components.code,{children:`transfer_method_invalid`}),`, `,_jsx(_components.code,{children:`pbx_feature_code_missing`}),`,\n`,_jsx(_components.code,{children:`pbx_feature_code_invalid`}),`, `,_jsx(_components.code,{children:`transfer_extension_not_dialable`}),` (at\n`,_jsx(_components.code,{children:`/workflow/destination`}),`), `,_jsx(_components.code,{children:`pbx_feature_code_hangup_after_secs_invalid`}),` or\n`,_jsx(_components.code,{children:`pbx_feature_code_hangup_after_secs_without_code`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A read shows them under `,_jsx(_components.code,{children:`workflow.current`}),`. `,_jsx(_components.code,{children:`\"transfer_method\": \"auto\"`}),` on an\nupdate removes them, so the endpoint’s code applies again\n(`,_jsx(_components.a,{href:`/api-reference/tools/update#what-an-update-changes`,children:`Update tool`}),`).`]}),`\n`,_jsx(_components.li,{children:`A transfer tool an agent brought with it when it moved to a workflow keeps the code it\nhad, its hang-up time included.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`google-calendar-and-gmail-actions`,children:`Google Calendar and Gmail actions`}),`\n`,_jsxs(_components.p,{children:[`Six actions run the way Yappr’s own calendar and email integrations did:\nGoogle Calendar’s Create event, List events, Find free slots, List calendars\nand Delete event, and Gmail’s Send email. They run on the version\n`,_jsx(_components.a,{href:`/api-reference/tools/app`,children:_jsx(_components.code,{children:`GET /tool-apps/{app}`})}),` offers by default\n(`,_jsx(_components.code,{children:`20260902_00`}),` for Google Calendar, `,_jsx(_components.code,{children:`20260911_00`}),` for Gmail); a tool on any\nother version of them is refused (`,_jsx(_components.code,{children:`parity_version_unpinned`}),`).`]}),`\n`,_jsxs(_components.p,{children:[`Yappr fixes their provider settings: no video-meeting room and the organizer not\nadded as a guest on a new event, one calendar searched, plain-text email. In\n`,_jsx(_components.code,{children:`fixed_inputs`}),` you may choose only the calendar (`,_jsx(_components.code,{children:`calendar_id`}),`; `,_jsx(_components.code,{children:`calendarId`}),` on\nList events; `,_jsx(_components.code,{children:`items: [\"\u003ccalendar id>\"]`}),` on Find free slots) and the time zone\n(`,_jsx(_components.code,{children:`timezone`}),`; `,_jsx(_components.code,{children:`timeZone`}),` on List events), an IANA name such as\n`,_jsx(_components.code,{children:`Asia/Jerusalem`}),`. Anything else is refused with `,_jsx(_components.code,{children:`configured_fields_invalid`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Without a time zone, the tool takes your workspace’s time zone when it is\nsaved. Times the model sends without an offset are read in that zone, and\nresults come back as wall-clock times in it, labelled with `,_jsx(_components.code,{children:`timeZone`}),`. Each time\nis read at the offset its own date has in that zone, so a booking on the far\nside of a daylight-saving change keeps its hour. A time the clocks skip (02:30\non the night they go forward) is read as the moment it would have been, 03:30.\nA time the clocks repeat (01:30 on the night they go back) is its first\noccurrence in a search window; Create event refuses it with\n`,_jsx(_components.code,{children:`parity_datetime_ambiguous`}),` and books nothing, since either 01:30 could be\nmeant. Reading\nthe tool back shows every fixed value, the zone included, so saving it again\nkeeps that zone; send `,_jsx(_components.code,{children:`\"fixed_inputs\": {}`}),` with\n`,_jsx(_components.a,{href:`/api-reference/tools/update`,children:_jsx(_components.code,{children:`PATCH /tools/{id}`})}),` to take the workspace’s\ncurrent zone instead.`]}),`\n`,_jsx(Heading,{level:`3`,id:`when-the-body-is-wrong`,children:`When the body is wrong`}),`\n`,_jsxs(_components.p,{children:[`A body Yappr can read but not accept answers `,_jsx(_components.code,{children:`422 WORKFLOW_TOOL_REQUEST_INVALID`}),`\nwith an `,_jsx(_components.code,{children:`issues[]`}),`, one entry per field at fault, each with a JSON pointer:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"configuration.url must be an absolute http or https URL with a host and no embedded credentials, for example https://example.com/orders. Never send url_display back: it is display text with the private query removed.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"WORKFLOW_TOOL_REQUEST_INVALID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"issues\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tool_request_invalid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/workflow/configuration/url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"configuration.url must be an absolute http or https URL…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tool_request_invalid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/workflow/effect\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"effect is `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`read`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` for a lookup that changes nothing, or `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`write`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` (the default) for one that does.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`No tool is created by a refusal of this kind, and every field at fault is in\nthe one answer. An HTTP tool whose `,_jsx(_components.code,{children:`configuration.url`}),` is on `,_jsx(_components.code,{children:`localhost`}),`, a\nprivate network (10.x, 172.16–31.x, 192.168.x), a link-local, a cloud-metadata\nor another reserved address (IPv6 outside global unicast, 6to4 `,_jsx(_components.code,{children:`2002::/16`}),`,\nNAT64 `,_jsx(_components.code,{children:`64:ff9b::/96`}),`) is refused here too, with the issue code `,_jsx(_components.code,{children:`url_not_public`}),`\nat `,_jsx(_components.code,{children:`/workflow/configuration/url`}),`: our servers can never reach it. A hostname is\nread for what it resolves to as well as how it is written: a name whose DNS\nanswers include such an address (`,_jsx(_components.code,{children:`127.0.0.1.nip.io`}),`) is refused with the same\ncode. A rebinding name, one that answers a public address now and a private one\nlater (`,_jsx(_components.code,{children:`…rbndr.us`}),`), is built when its answer is public; every call resolves it\nagain and connects only to the public address it checked, so an answer that has\nturned private is refused there and nothing is sent — a `,_jsx(_components.a,{href:`/api-reference/tools/test-get`,children:`test`}),`\nreads `,_jsx(_components.code,{children:`blocked`}),`, with `,_jsx(_components.code,{children:`outcome.error_code`}),` `,_jsx(_components.code,{children:`url_resolves_private`}),`. A host written\nas a shortened, octal or hexadecimal number (`,_jsx(_components.code,{children:`1.2.3`}),`, `,_jsx(_components.code,{children:`01.2.3.4`}),`) is refused\nthe same way with `,_jsx(_components.code,{children:`url_host_form`}),`: write it as a hostname or as four plain\ndecimal numbers. A number that spells loopback or a private address in any of\nthose forms (`,_jsx(_components.code,{children:`2130706433`}),`, `,_jsx(_components.code,{children:`0177.0.0.1`}),`, `,_jsx(_components.code,{children:`0x7f000001`}),`) is `,_jsx(_components.code,{children:`url_not_public`}),`. A\nrequest carrying some of those forms can be stopped by our network edge before it\nreaches the API, with an HTML `,_jsx(_components.code,{children:`403`}),` instead of this JSON answer; nothing is\ncreated either way.`]}),`\n`,_jsxs(_components.p,{children:[`What can only be found while the tool is built — a connected-account action\nthat is not eligible, a connection that is not ready, a schema the builder\nrejects — answers `,_jsx(_components.code,{children:`422 WORKFLOW_TOOL_NOT_BUILT`}),`. The body is the tool’s own\ndocument, so its `,_jsx(_components.code,{children:`id`}),` is the tool to fix, with `,_jsx(_components.code,{children:`error`}),` saying what to do and\n`,_jsx(_components.code,{children:`issues[0]`}),` naming the field; `,_jsx(_components.code,{children:`issues[0].code`}),` is the same reason as\n`,_jsx(_components.code,{children:`workflow.error_code`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TOOL_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Find free slots\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"workflow_version\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workflow_v1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"workflow\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"kind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"app\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"current\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"connection_unavailable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The connected account is not ready to use: it is still connecting, was disconnected, or needs reconnecting. Reconnect it (GET /tool-connections shows its state), then send the whole tool again with PATCH /tools/{id}.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"WORKFLOW_TOOL_NOT_BUILT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"issues\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"connection_unavailable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/workflow/connection_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The connected account is not ready to use: …\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`That answer used to carry only `,_jsx(_components.code,{children:`workflow.error_code`}),`, under the fallback code\n`,_jsx(_components.code,{children:`UNPROCESSABLE_REQUEST`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`An `,_jsx(_components.code,{children:`app`}),` tool whose `,_jsx(_components.code,{children:`metadata_id`}),` or `,_jsx(_components.code,{children:`connection_id`}),` names `,_jsx(_components.strong,{children:`nothing`}),` — an id\nthat is not an action from `,_jsx(_components.a,{href:`/api-reference/tools/action`,children:`Get app action`}),`, or\nnot one of this workspace’s `,_jsx(_components.a,{href:`/api-reference/tool-connections/list`,children:`connected accounts`}),` —\nis a mistake in the request, not a tool that failed. It answers `,_jsx(_components.code,{children:`400 WORKFLOW_TOOL_REFERENCE_INVALID`}),` with an `,_jsx(_components.code,{children:`issues[]`}),` entry for each field at\nfault, and writes nothing:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"connection_id names no account in this workspace. Take the id of a row from GET /tool-connections.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"WORKFLOW_TOOL_REFERENCE_INVALID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"issues\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tool_reference_unknown\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/workflow/connection_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"connection_id names no account in this workspace. Take the id of a row from GET /tool-connections.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`A tool that did fail — the account was not connected yet, say — is not a dead\nend. Connect the account, then send the whole tool again with\n`,_jsx(_components.a,{href:`/api-reference/tools/update#a-tool-whose-creation-failed`,children:_jsx(_components.code,{children:`PATCH /tools/{id}`})}),`\nto build it under the same id, or remove it with\n`,_jsx(_components.a,{href:`/api-reference/tools/delete`,children:_jsx(_components.code,{children:`DELETE /tools/{id}`})}),`.`]}),`\n`,_jsxs(_components.p,{children:[`What the tool does always lives under `,_jsx(_components.code,{children:`workflow`}),`. A body that puts `,_jsx(_components.code,{children:`http`}),`,\n`,_jsx(_components.code,{children:`app`}),` or `,_jsx(_components.code,{children:`transfer`}),` at the top level is refused with `,_jsx(_components.code,{children:`/workflow`}),` and told to\nmove it, rather than being read as the legacy `,_jsx(_components.code,{children:`type`}),`/`,_jsx(_components.code,{children:`config`}),` schema.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`workflow.input_schema`}),` must declare `,_jsx(_components.code,{children:`\"type\": \"object\"`}),` at its root, as this\nreference has always described it. A schema carrying only `,_jsx(_components.code,{children:`properties`}),` is now\nrefused here, by name, instead of being accepted and failing later while the\ntool is built.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`201`}),` means the tool was built while the request waited and has a current revision: bind it now. Every create the build service takes answers `,_jsx(_components.code,{children:`201`}),`, after waiting a few seconds at most for its build, so identical creates answer the same status. `,_jsx(_components.code,{children:`202`}),` means the create is queued and not built yet — the build service could not take it right now, or the build was still running when that wait ended. Poll `,_jsx(_components.code,{children:`GET /tools/{id}`}),` with the returned id until `,_jsx(_components.code,{children:`workflow.status`}),` is `,_jsx(_components.code,{children:`current`}),` (or `,_jsx(_components.code,{children:`failed`}),`). After a lost response, resend the identical body and key: Yappr returns the original identity, never a second tool. Changed content with the same key returns `,_jsx(_components.code,{children:`409`}),`; invalid contracts may return `,_jsx(_components.code,{children:`422`}),` with a durable failed state. The accepted request is limited to 256 KiB.`]}),`\n`,_jsx(_components.p,{children:`Schemas preserve nested types, required fields, defaults, combinators and exact JSON numbers. Use a lossless JSON client for integers outside JavaScript’s safe range. Saving does not make an HTTP/provider request.`}),`\n`,_jsxs(Heading,{level:`2`,id:`the-legacy-type/config-body`,children:[`The legacy `,_jsx(_components.code,{children:`type`}),`/`,_jsx(_components.code,{children:`config`}),` body`]}),`\n`,_jsxs(_components.p,{children:[`Supported during migration only — see the table at the top of this page for\nwhat you give up by sending it. Do not combine it with `,_jsx(_components.code,{children:`workflow`}),`, and do not\nuse it to mutate or execute workflow-owned tools. Legacy webhook rules:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`For webhook tools, `,_jsx(_components.code,{children:`description`}),` is required because it tells the model when the tool is appropriate.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`config.url`}),` must be a final public HTTP(S) endpoint. Local and non-public targets are rejected at save time with `,_jsx(_components.code,{children:`400`}),`, including a hostname whose DNS answers include one (`,_jsx(_components.code,{children:`127.0.0.1.nip.io`}),`); dispatch reads the DNS answers again and rejects non-public or mixed ones. Redirects are not followed.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`config.method`}),` supports `,_jsx(_components.code,{children:`GET`}),`, `,_jsx(_components.code,{children:`POST`}),`, `,_jsx(_components.code,{children:`PUT`}),`, `,_jsx(_components.code,{children:`PATCH`}),`, and `,_jsx(_components.code,{children:`DELETE`}),`; `,_jsx(_components.code,{children:`timeout_seconds`}),` is 1–60 seconds and defaults to 30. On a live call the agent waits that long for the answer before the call treats the tool as failed.`]}),`\n`,_jsxs(_components.li,{children:[`Request headers must have non-empty names and string values, and a `,_jsx(_components.code,{children:`null`}),` value is refused here: nothing is stored yet for it to keep. The response never carries the values back — `,_jsx(_components.code,{children:`config.configured_header_names`}),` names them instead. Routing/framing headers such as `,_jsx(_components.code,{children:`Host`}),`, `,_jsx(_components.code,{children:`Content-Length`}),`, `,_jsx(_components.code,{children:`Transfer-Encoding`}),`, `,_jsx(_components.code,{children:`Connection`}),`, `,_jsx(_components.code,{children:`Expect`}),`, `,_jsx(_components.code,{children:`Keep-Alive`}),`, `,_jsx(_components.code,{children:`Proxy-*`}),`, `,_jsx(_components.code,{children:`TE`}),`, `,_jsx(_components.code,{children:`Trailer`}),`, and `,_jsx(_components.code,{children:`Upgrade`}),` are rejected. Authorization and custom content types remain supported.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The tool name is normalized to camelCase and stored that way.`}),` `,_jsx(_components.code,{children:`critic-ron-notify-noshow`}),` is created as `,_jsx(_components.code,{children:`criticRonNotifyNoshow`}),`, and a legacy body that renames a tool with `,_jsx(_components.code,{children:`PATCH /tools/{id}`}),` does the same. The response carries the stored name — read it back and use that, not the string you sent, when you look the tool up later or name it in a prompt. A name sent with the `,_jsx(_components.code,{children:`workflow`}),` variant is stored exactly as given, trimmed only.`]}),`\n`,_jsxs(_components.li,{children:[`Payload parameter names are normalized to camelCase. Extraction descriptions are required, and `,_jsx(_components.code,{children:`required`}),` defaults to `,_jsx(_components.code,{children:`true`}),` when omitted.`]}),`\n`,_jsxs(_components.li,{children:[`Webhook tools are dispatched once. `,_jsx(_components.code,{children:`retry_count`}),` is unsupported because automatically replaying an action could duplicate a non-idempotent operation.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Tool","openapi":"POST /tools","description":"Requires tools:create. Supply workflow for the canonical HTTP/app/transfer tool variant and an Idempotency-Key header. Identity and revision numbers are server-owned. Creates never execute the action. A 202 response is durable acceptance: poll GET /tools/{id} until current or a terminal failure. Retrying the unchanged body/key never creates a second tool; changing the accepted body conflicts. Legacy type/config bodies and their camelCase normalization - of the tool name as well as its payload parameter names - remain a temporary migration boundary only; a body without `type` is read as the workflow variant, so what a tool does always belongs under `workflow`.\n","href":"/api-reference/tools/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Two bodies, one endpoint — send workflow","slug":"two-bodies-one-endpoint-—-send-workflow","depth":2,"children":[]},{"title":"Tool names are not unique","slug":"tool-names-are-not-unique","depth":2,"children":[]},{"title":"The workflow body","slug":"the-workflow-body","depth":2,"children":[{"title":"A transfer tool with its own transfer code","slug":"a-transfer-tool-with-its-own-transfer-code","depth":3,"children":[]},{"title":"Google Calendar and Gmail actions","slug":"google-calendar-and-gmail-actions","depth":3,"children":[]},{"title":"When the body is wrong","slug":"when-the-body-is-wrong","depth":3,"children":[]}]},{"title":"The legacy type/config body","slug":"the-legacy-type/config-body","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create tool","description":"Requires tools:create. Supply workflow for the canonical HTTP/app/transfer tool variant and an Idempotency-Key header. Identity and revision numbers are server-owned. Creates never execute the action. A 202 response is durable acceptance: poll GET /tools/{id} until current or a terminal failure. Retrying the unchanged body/key never creates a second tool; changing the accepted body conflicts. Legacy type/config bodies and their camelCase normalization - of the tool name as well as its payload parameter names - remain a temporary migration boundary only; a body without `type` is read as the workflow variant, so what a tool does always belongs under `workflow`.\n","operationId":"createTool","tags":["Tools"],"parameters":["761c9e0e-ad5e-4a88-b452-7d68004ef1eb","8e63f78b-bfdc-48de-98f4-02b38ed65061"],"requestBody":"a403cdf4-07eb-4c82-8678-ee6c7b55bb7c","responses":{"200":"757d391c-f6c8-4621-9818-3f8a452511a4","201":"706c3526-d385-44d7-9dd9-c089927cad4f","202":"e3723f07-be82-400d-aeff-8a7f5899fc4f","400":"27ccecb9-d59b-42da-9454-f8d76e21bbd6","403":"9778aa2f-4cca-4725-a7f1-d89eadb3f866","409":"6bdc4d0e-a2a9-4574-8fb2-44e92d05e61e","422":"3cf410dd-fe1b-4e32-adeb-6496ac3afeb7","503":"29a41e70-b4f7-425a-bf77-fc5fbd3b577d"},"method":"post","type":"path","servers":["dc0c5f7d-c0c3-40b9-9c53-ce2239f5b67d"],"security":["2767439e-f0c6-4cd4-a450-ba11a6ab8311"],"path":"/tools","baseUrlOptions":["https://api.goyappr.com"],"title":"Create tool","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"761c9e0e-ad5e-4a88-b452-7d68004ef1eb":{"in":"header","name":"Idempotency-Key","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,128}$","description":"Required for the workflow variant. Preserve the same key and accepted body after a lost response.","uniqueKey":"","typeLabel":"string"},"description":"Required for the workflow variant. Preserve the same key and accepted body after a lost response."},"8e63f78b-bfdc-48de-98f4-02b38ed65061":{"in":"header","name":"x-company-id","schema":{"type":"string","format":"uuid","description":"Explicit active workspace. Optional; when sent it must be the API key's own workspace — any other value is refused with 403 WORKSPACE_MISMATCH.","uniqueKey":"","typeLabel":"string\u003cuuid>"},"description":"Explicit active workspace. Optional; when sent it must be the API key's own workspace — any other value is refused with 403 WORKSPACE_MISMATCH."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["name","workflow"],"conditionallyRequiredProperties":{"description":[{"when":[[{"property":"type","values":["webhook"]}]]}]},"properties":{"name":{"type":"string","description":"Stored verbatim for the workflow variant. A legacy type/config body has its name normalized to camelCase before it is stored - \"critic-ron-notify-noshow\" is created as \"criticRonNotifyNoshow\" - so read the stored name back from the response rather than assuming the one you sent.","maxLength":200,"minLength":1,"example":"capture_lead","isRequired":true,"uniqueKey":"oneOf.0.name","typeLabel":"string"},"workflow":{"oneOf":[{"type":"object","required":["kind","input_schema","output_schema","configuration"],"properties":{"kind":{"const":"http","isRequired":true,"uniqueKey":"oneOf.0.workflow.oneOf.0.kind","typeLabel":"any"},"input_schema":{"type":"object","additionalProperties":true,"description":"Full JSON Schema with an object root. Preserve exact JSON numbers.","isRequired":true,"uniqueKey":"oneOf.0.workflow.oneOf.0.input_schema","typeLabel":"object"},"output_schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.workflow.oneOf.0.output_schema","typeLabel":"object"},"configuration":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri","description":"Fixed final public HTTP(S) URL. Required on create; omission on update preserves the private accepted URL. Never submit url_display here.","uniqueKey":"oneOf.0.workflow.oneOf.0.configuration.url","typeLabel":"string\u003curi>"},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"],"description":"Omitted on create: POST. Omitted on update: keeps the stored value.","uniqueKey":"oneOf.0.workflow.oneOf.0.configuration.method","typeLabel":"enum\u003cstring>"},"headers":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.workflow.oneOf.0.configuration.headers.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.0.workflow.oneOf.0.configuration.headers.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.workflow.oneOf.0.configuration.headers.additionalProperties","typeLabel":"string | null"},"description":"Private fixed headers, updated per header. Omitting the whole object on update preserves every stored header; an explicit empty object clears them all. Inside the object, a string sets that header and null keeps the value already stored under that exact name. null is refused outright on create; on update a null under a name with no stored value fails while the revision is built, returning 422 with workflow.status failed and error_code tool_contract_invalid rather than an issues array. A stored header whose name you leave out is removed. Routing and framing headers are rejected.","uniqueKey":"oneOf.0.workflow.oneOf.0.configuration.headers","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.0.workflow.oneOf.0.configuration","typeLabel":"object"},"effect":{"type":"string","enum":["read","write"],"description":"read for a lookup that changes nothing, write for one that does. Omitted on create: write. Omitted on update: keeps the stored value.","uniqueKey":"oneOf.0.workflow.oneOf.0.effect","typeLabel":"enum\u003cstring>"},"timeout_ms":{"type":"integer","minimum":1,"maximum":60000,"description":"Omitted on create: 30000. Omitted on update: keeps the stored value.","uniqueKey":"oneOf.0.workflow.oneOf.0.timeout_ms","typeLabel":"integer"},"include_call_context":{"type":"boolean","description":"Whether every request this tool makes carries the call under `call` (see CallPackage). Send false for an endpoint that wants nothing but the arguments you mapped; the arguments themselves still read the call through {{call.field}} either way. Omitted on create: true. Omitted on update: keeps the stored value, so a tool that was switched off stays off until a change sends true.\n","uniqueKey":"oneOf.0.workflow.oneOf.0.include_call_context","typeLabel":"boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.workflow.oneOf.0","typeLabel":"object"},{"type":"object","required":["kind","metadata_id","connection_id"],"properties":{"kind":{"const":"app","isRequired":true,"uniqueKey":"oneOf.0.workflow.oneOf.1.kind","typeLabel":"any"},"metadata_id":{"type":"string","format":"uuid","description":"Local identity returned by the exact dated action-detail endpoint.","isRequired":true,"uniqueKey":"oneOf.0.workflow.oneOf.1.metadata_id","typeLabel":"string\u003cuuid>"},"connection_id":{"type":"string","format":"uuid","description":"Exact ready labeled account in the current workspace and environment. Never a provider account ID.","isRequired":true,"uniqueKey":"oneOf.0.workflow.oneOf.1.connection_id","typeLabel":"string\u003cuuid>"},"fixed_inputs":{"type":"object","maxProperties":128,"additionalProperties":true,"description":"Typed values for the action's reviewed fixed_fields only. These fields are removed from the model input schema and cannot be overridden at execution. Omitted on create: {}. Omitted on update: keeps the stored value.","uniqueKey":"oneOf.0.workflow.oneOf.1.fixed_inputs","typeLabel":"object"},"timeout_ms":{"type":"integer","minimum":1,"maximum":60000,"description":"Omitted on create: 30000. Omitted on update: keeps the stored value.","uniqueKey":"oneOf.0.workflow.oneOf.1.timeout_ms","typeLabel":"integer"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.workflow.oneOf.1","typeLabel":"object"},{"type":"object","required":["kind","destination"],"properties":{"kind":{"const":"transfer","isRequired":true,"uniqueKey":"oneOf.0.workflow.oneOf.2.kind","typeLabel":"any"},"destination":{"type":"string","maxLength":256,"pattern":"^(\\+[1-9][0-9]{6,14}|[Ss][Ii][Pp][Ss]?:[^\\s?\u003c>\",\\\\:;@]+@[^\\s?\u003c>\",\\\\@]+)$","description":"Either a phone number in international form (`+972501234567`), or a SIP address\nof the caller's own phone system, `sip:extension@pbx.example.com` (`sips:` and a\nport, `sip:101@pbx.example.com:5061`, are accepted). A number is dialled by the\ncarrier as before. A SIP address hands the caller back to their phone system,\nwhich places the new call itself: it works only on calls that arrive through your\n[SIP trunk](/concepts/sip-trunks#transfers). Your phone system has about nine\nseconds to have the new call answered, and if the transfer fails the call\nends (Yappr cannot take the caller back). The address needs the extension\nbefore the `@`; a password (`sip:101:secret@...`) and `?headers` are refused, as\nis any value that is neither a number nor a well-formed SIP address (`422`\n`WORKFLOW_TOOL_REQUEST_INVALID`, at `/workflow/destination`). The `pattern` is the coarse\nshape; the full rule is checked when the tool is saved. On a call that arrived through\nan [extension endpoint](/concepts/sip-trunks#transfers-on-extension-calls) the same\nSIP address works differently: Yappr hands the caller to the extension before the `@`\nwith your phone system's transfer code when the endpoint has one, and otherwise places\na new call to it through the extension.\n","isRequired":true,"uniqueKey":"oneOf.0.workflow.oneOf.2.destination","typeLabel":"string"},"announce_transfer":{"type":"boolean","description":"Omitted on create: false. Omitted on update: keeps the stored value.","uniqueKey":"oneOf.0.workflow.oneOf.2.announce_transfer","typeLabel":"boolean"},"announce_message":{"type":"string","maxLength":2000,"description":"The short holding line the agent may say before a transfer. Omitted on create: empty. Omitted on update: keeps the stored value. Random variations: {{Hi|Hello|Hey}} (two or more options separated by |) says one option, picked once per call; see [Random variations](/api-reference/agents/create#random-variations).","uniqueKey":"oneOf.0.workflow.oneOf.2.announce_message","typeLabel":"string"},"transfer_method":{"type":"string","enum":["auto","pbx_feature_code"],"description":"Only for a transfer that needs a transfer code of its own. Leave it out and, on a call\nthat arrived through an extension endpoint, this tool uses the\n[transfer code set on the endpoint](/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code)\n(`register.pbx_feature_code`), which covers every transfer on its calls.\n`pbx_feature_code` makes the tool use its own `pbx_feature_code` and\n`pbx_feature_code_hangup_after_secs` instead, as a pair: nothing from the endpoint is\nmixed in. `auto` removes the tool's own code and hang-up time, so the endpoint's apply\nagain. With `pbx_feature_code`, `destination` must be a SIP address whose extension a\nkeypad can dial (up to 32 digits, `*` or `#` before the `@`, such as\n`sip:400@pbx.example.com`), or the save is refused with\n`transfer_extension_not_dialable` at `/workflow/destination`; any other value is\n`transfer_method_invalid`. Ignored on calls that didn't arrive through an extension\nendpoint. Omitted on create: none, so the endpoint's code applies. Omitted on update:\nkeeps the stored value, and a kept code lapses when the new `destination` no longer\nnames such an extension.\n","uniqueKey":"oneOf.0.workflow.oneOf.2.transfer_method","typeLabel":"enum\u003cstring>"},"pbx_feature_code":{"type":"string","examples":["##","*2","*2{extension}#"],"description":"The tool's own transfer code, sent as key presses, with `transfer_method`\n`pbx_feature_code` (`pbx_feature_code_missing` without one). The same rule as the\nendpoint's `register.pbx_feature_code`: 1 to 32 characters of `0`-`9`, `*`, `#`,\n`A`-`D` and the pauses `w` (half a second) and `W` (one second), with at least one\nkey. `{extension}` may appear once and is replaced by the extension; without it the\nextension is sent right after the code (`##` and `sip:400@pbx.example.com` send\n`##400`). Surrounding spaces are trimmed before these checks, and the code is stored\ntrimmed. Anything else is `pbx_feature_code_invalid`. Omitted on create: none.\nOmitted on update: keeps the stored value.\n","uniqueKey":"oneOf.0.workflow.oneOf.2.pbx_feature_code","typeLabel":"string"},"pbx_feature_code_hangup_after_secs":{"oneOf":[{"type":"integer","minimum":1,"maximum":10,"examples":[4],"description":"Set it when the tool's own code starts an attended transfer that your phone system\ncompletes when the extension that typed it hangs up: Yappr hangs up this many seconds\nafter the code (counted once its key presses have played), and until then the agent\nis off the line. That hang-up is the hand-off, so there is no fallback dial-back:\ntest it once. 4 is a good start. A whole number from 1 to 10\n(`pbx_feature_code_hangup_after_secs_invalid`), only with `transfer_method`\n`pbx_feature_code` and a code (`pbx_feature_code_hangup_after_secs_without_code`).\nOmitted on create: none, so Yappr waits for your phone system to take the call, with\nthe dial-back as the fallback. Omitted on update: keeps the stored value; `null`\nremoves it.\n","uniqueKey":"oneOf.0.workflow.oneOf.2.pbx_feature_code_hangup_after_secs.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"maximum":10,"examples":[4],"description":"Set it when the tool's own code starts an attended transfer that your phone system\ncompletes when the extension that typed it hangs up: Yappr hangs up this many seconds\nafter the code (counted once its key presses have played), and until then the agent\nis off the line. That hang-up is the hand-off, so there is no fallback dial-back:\ntest it once. 4 is a good start. A whole number from 1 to 10\n(`pbx_feature_code_hangup_after_secs_invalid`), only with `transfer_method`\n`pbx_feature_code` and a code (`pbx_feature_code_hangup_after_secs_without_code`).\nOmitted on create: none, so Yappr waits for your phone system to take the call, with\nthe dial-back as the fallback. Omitted on update: keeps the stored value; `null`\nremoves it.\n","uniqueKey":"oneOf.0.workflow.oneOf.2.pbx_feature_code_hangup_after_secs.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.workflow.oneOf.2.pbx_feature_code_hangup_after_secs","typeLabel":"integer | null"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.workflow.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"oneOf.0.workflow","typeLabel":"object"},"description":{"type":"string","description":"Required and non-empty when type is webhook; optional for function tools.","maxLength":10000,"conditionalRequirements":[{"when":[[{"property":"type","values":["webhook"]}]]}],"uniqueKey":"oneOf.0.description","typeLabel":"string"},"expected_head_revision_id":{"type":"string","format":"uuid","uniqueKey":"oneOf.0.expected_head_revision_id","typeLabel":"string\u003cuuid>"},"expected_head_generation":{"type":"integer","minimum":1,"uniqueKey":"oneOf.0.expected_head_generation","typeLabel":"integer"},"type":{"type":"string","enum":["webhook","function"],"uniqueKey":"oneOf.0.type","typeLabel":"enum\u003cstring>"},"idempotency_key":{"type":"string","uniqueKey":"oneOf.0.idempotency_key","typeLabel":"string"},"config":{"type":"object","description":"Webhook configuration is validated as described below; function-tool configuration is stored as an arbitrary JSON object.","uniqueKey":"oneOf.0.config","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["name","type","config"],"conditionallyRequiredProperties":{"description":[{"when":[[{"property":"type","values":["webhook"]}]]}]},"properties":{"name":{"type":"string","example":"capture_lead","description":"Stored verbatim for the workflow variant. A legacy type/config body has its name normalized to camelCase before it is stored - \"critic-ron-notify-noshow\" is created as \"criticRonNotifyNoshow\" - so read the stored name back from the response rather than assuming the one you sent.","isRequired":true,"uniqueKey":"oneOf.1.name","typeLabel":"string"},"type":{"type":"string","enum":["webhook","function"],"isRequired":true,"uniqueKey":"oneOf.1.type","typeLabel":"enum\u003cstring>"},"config":{"type":"object","description":"Webhook configuration is validated as described below; function-tool configuration is stored as an arbitrary JSON object.","isRequired":true,"uniqueKey":"oneOf.1.config","typeLabel":"object"},"description":{"type":"string","description":"Required and non-empty when type is webhook; optional for function tools.","conditionalRequirements":[{"when":[[{"property":"type","values":["webhook"]}]]}],"uniqueKey":"oneOf.1.description","typeLabel":"string"},"idempotency_key":{"type":"string","uniqueKey":"oneOf.1.idempotency_key","typeLabel":"string"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"capture_lead","workflow":{"kind":"http","input_schema":{},"output_schema":{},"configuration":{"url":"\u003cstring>","headers":{}},"timeout_ms":30000,"include_call_context":true},"description":"\u003cstring>","expected_head_revision_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","expected_head_generation":2,"idempotency_key":"\u003cstring>","config":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"757d391c-f6c8-4621-9818-3f8a452511a4":{"description":"Idempotent replay of an already-materialized tool.","content":{"application/json":{"schema":{"type":"object","required":["id","name","workflow_version","workflow"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"workflow_version":{"const":"workflow_v1","readOnly":true,"isRequired":true,"uniqueKey":"workflow_version","typeLabel":"any"},"workflow":{"type":"object","required":["kind","status","request_id","current"],"properties":{"kind":{"type":"string","enum":["http","app","transfer"],"isRequired":true,"uniqueKey":"workflow.kind","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["accepted","claimed","current","queued","compiling","ready","promoted","failed","conflict"],"isRequired":true,"uniqueKey":"workflow.status","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"workflow.request_id","typeLabel":"string\u003cuuid>"},"current":{"oneOf":[{"type":"object","description":"Safe authoring projection. Raw execution contracts, provider IDs, URL queries, and header values are never included.","required":["revision_id","revision","kind","name","description","input_schema","output_schema","allowed_phases","allowed_channels"],"properties":{"revision_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"workflow.current.oneOf.0.revision_id","typeLabel":"string\u003cuuid>"},"revision":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"workflow.current.oneOf.0.revision","typeLabel":"integer"},"kind":{"type":"string","enum":["http","app","transfer"],"isRequired":true,"uniqueKey":"workflow.current.oneOf.0.kind","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"workflow.current.oneOf.0.name","typeLabel":"string"},"description":{"type":"string","isRequired":true,"uniqueKey":"workflow.current.oneOf.0.description","typeLabel":"string"},"input_schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"workflow.current.oneOf.0.input_schema","typeLabel":"object"},"output_schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"workflow.current.oneOf.0.output_schema","typeLabel":"object"},"allowed_phases":{"type":"array","items":{"type":"string","enum":["before","during","after"],"uniqueKey":"workflow.current.oneOf.0.allowed_phases.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"workflow.current.oneOf.0.allowed_phases","typeLabel":"enum\u003cstring>[]"},"allowed_channels":{"type":"array","items":{"enum":["phone","web"],"type":"string","uniqueKey":"workflow.current.oneOf.0.allowed_channels.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"workflow.current.oneOf.0.allowed_channels","typeLabel":"enum\u003cstring>[]"},"timeout_ms":{"type":"integer","uniqueKey":"workflow.current.oneOf.0.timeout_ms","typeLabel":"integer"},"effect":{"type":"string","enum":["read","write","terminal"],"uniqueKey":"workflow.current.oneOf.0.effect","typeLabel":"enum\u003cstring>"},"configuration":{"type":"object","description":"HTTP display only. Never use this projection as the replacement execution configuration.","properties":{"method":{"type":"string","uniqueKey":"workflow.current.oneOf.0.configuration.method","typeLabel":"string"},"url_display":{"type":"string","description":"Non-executable URL display label without userinfo, query, or fragment.","uniqueKey":"workflow.current.oneOf.0.configuration.url_display","typeLabel":"string"},"url_redacted":{"type":"boolean","description":"True when the saved URL carries a query string that this projection strips.","uniqueKey":"workflow.current.oneOf.0.configuration.url_redacted","typeLabel":"boolean"},"url_replacement_required":{"const":true,"description":"Always true, for every HTTP tool, on every read. It states a rule rather than a condition - because this projection is lossy, a revision that changes the URL must send the whole URL again, query string included; omit the field to keep the saved one. Never send url_display back as the replacement URL.\n","uniqueKey":"workflow.current.oneOf.0.configuration.url_replacement_required","typeLabel":"any"},"configured_query_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.current.oneOf.0.configuration.configured_query_names.items.[INDEX]","typeLabel":"string"},"description":"Names of the query parameters configured on the saved URL. Values are never returned.","uniqueKey":"workflow.current.oneOf.0.configuration.configured_query_names","typeLabel":"string[]"},"configured_header_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.current.oneOf.0.configuration.configured_header_names.items.[INDEX]","typeLabel":"string"},"uniqueKey":"workflow.current.oneOf.0.configuration.configured_header_names","typeLabel":"string[]"},"empty_header_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.current.oneOf.0.configuration.empty_header_names.items.[INDEX]","typeLabel":"string"},"description":"Present only when some are - the headers whose saved value is empty. A tool a Duplicate with fork_tools made for the copy has every header this way until the values are sent with PATCH /tools/{id}. Values are never returned.","uniqueKey":"workflow.current.oneOf.0.configuration.empty_header_names","typeLabel":"string[]"},"empty_query_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.current.oneOf.0.configuration.empty_query_names.items.[INDEX]","typeLabel":"string"},"description":"Present only when some are - the query parameters on the saved URL written name= with nothing after the =. A forked tool keeps the source's query names this way. Send the whole URL with PATCH /tools/{id} to fill them.","uniqueKey":"workflow.current.oneOf.0.configuration.empty_query_names","typeLabel":"string[]"}},"uniqueKey":"workflow.current.oneOf.0.configuration","typeLabel":"object"},"metadata_id":{"type":"string","format":"uuid","uniqueKey":"workflow.current.oneOf.0.metadata_id","typeLabel":"string\u003cuuid>"},"connection_id":{"type":"string","format":"uuid","uniqueKey":"workflow.current.oneOf.0.connection_id","typeLabel":"string\u003cuuid>"},"connection_label":{"type":"string","uniqueKey":"workflow.current.oneOf.0.connection_label","typeLabel":"string"},"connection_ready":{"type":"boolean","uniqueKey":"workflow.current.oneOf.0.connection_ready","typeLabel":"boolean"},"toolkit":{"type":"string","uniqueKey":"workflow.current.oneOf.0.toolkit","typeLabel":"string"},"action":{"type":"string","uniqueKey":"workflow.current.oneOf.0.action","typeLabel":"string"},"version":{"type":"string","pattern":"^\\d{8}_\\d{2}$","uniqueKey":"workflow.current.oneOf.0.version","typeLabel":"string"},"fixed_inputs":{"type":"object","additionalProperties":true,"uniqueKey":"workflow.current.oneOf.0.fixed_inputs","typeLabel":"object"},"destination":{"type":"string","uniqueKey":"workflow.current.oneOf.0.destination","typeLabel":"string"},"announce_transfer":{"type":"boolean","uniqueKey":"workflow.current.oneOf.0.announce_transfer","typeLabel":"boolean"},"announce_message":{"type":"string","uniqueKey":"workflow.current.oneOf.0.announce_message","typeLabel":"string"},"transfer_method":{"type":"string","enum":["pbx_feature_code"],"description":"A transfer tool only, and present only when it carries a [transfer code](/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code) of its own, which it uses instead of the one set on the extension endpoint: one set with workflow.transfer_method on a create or an update, or one a transfer tool brought with it when its agent moved to a workflow. Comes with pbx_feature_code. Absent when the tool uses the endpoint's code.","uniqueKey":"workflow.current.oneOf.0.transfer_method","typeLabel":"enum\u003cstring>"},"pbx_feature_code":{"type":"string","description":"Present with transfer_method: the tool's own in-call transfer code, for example ## or *2, sent as key presses before the extension.","uniqueKey":"workflow.current.oneOf.0.pbx_feature_code","typeLabel":"string"},"pbx_feature_code_hangup_after_secs":{"type":"integer","minimum":1,"maximum":10,"description":"Present only with transfer_method and pbx_feature_code, when the tool's own code starts an attended transfer: Yappr hangs up this many seconds after the code.","uniqueKey":"workflow.current.oneOf.0.pbx_feature_code_hangup_after_secs","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"workflow.current.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"workflow.current.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"workflow.current","typeLabel":"object | null"},"error_code":{"oneOf":[{"type":"string","uniqueKey":"workflow.error_code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"workflow.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"workflow.error_code","typeLabel":"string | null"},"head_revision_id":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"workflow.head_revision_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"workflow.head_revision_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"workflow.head_revision_id","typeLabel":"string\u003cuuid> | null"},"head_generation":{"oneOf":[{"type":"integer","uniqueKey":"workflow.head_generation.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"workflow.head_generation.oneOf.1","typeLabel":"null"}],"uniqueKey":"workflow.head_generation","typeLabel":"integer | null"},"candidate":{"oneOf":[{"type":"object","description":"Safe authoring projection. Raw execution contracts, provider IDs, URL queries, and header values are never included.","required":["revision_id","revision","kind","name","description","input_schema","output_schema","allowed_phases","allowed_channels"],"properties":{"revision_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.revision_id","typeLabel":"string\u003cuuid>"},"revision":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.revision","typeLabel":"integer"},"kind":{"type":"string","enum":["http","app","transfer"],"isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.kind","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.name","typeLabel":"string"},"description":{"type":"string","isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.description","typeLabel":"string"},"input_schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.input_schema","typeLabel":"object"},"output_schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.output_schema","typeLabel":"object"},"allowed_phases":{"type":"array","items":{"type":"string","enum":["before","during","after"],"uniqueKey":"workflow.candidate.oneOf.0.allowed_phases.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.allowed_phases","typeLabel":"enum\u003cstring>[]"},"allowed_channels":{"type":"array","items":{"enum":["phone","web"],"type":"string","uniqueKey":"workflow.candidate.oneOf.0.allowed_channels.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.allowed_channels","typeLabel":"enum\u003cstring>[]"},"timeout_ms":{"type":"integer","uniqueKey":"workflow.candidate.oneOf.0.timeout_ms","typeLabel":"integer"},"effect":{"type":"string","enum":["read","write","terminal"],"uniqueKey":"workflow.candidate.oneOf.0.effect","typeLabel":"enum\u003cstring>"},"configuration":{"type":"object","description":"HTTP display only. Never use this projection as the replacement execution configuration.","properties":{"method":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.configuration.method","typeLabel":"string"},"url_display":{"type":"string","description":"Non-executable URL display label without userinfo, query, or fragment.","uniqueKey":"workflow.candidate.oneOf.0.configuration.url_display","typeLabel":"string"},"url_redacted":{"type":"boolean","description":"True when the saved URL carries a query string that this projection strips.","uniqueKey":"workflow.candidate.oneOf.0.configuration.url_redacted","typeLabel":"boolean"},"url_replacement_required":{"const":true,"description":"Always true, for every HTTP tool, on every read. It states a rule rather than a condition - because this projection is lossy, a revision that changes the URL must send the whole URL again, query string included; omit the field to keep the saved one. Never send url_display back as the replacement URL.\n","uniqueKey":"workflow.candidate.oneOf.0.configuration.url_replacement_required","typeLabel":"any"},"configured_query_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.configuration.configured_query_names.items.[INDEX]","typeLabel":"string"},"description":"Names of the query parameters configured on the saved URL. Values are never returned.","uniqueKey":"workflow.candidate.oneOf.0.configuration.configured_query_names","typeLabel":"string[]"},"configured_header_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.configuration.configured_header_names.items.[INDEX]","typeLabel":"string"},"uniqueKey":"workflow.candidate.oneOf.0.configuration.configured_header_names","typeLabel":"string[]"},"empty_header_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.configuration.empty_header_names.items.[INDEX]","typeLabel":"string"},"description":"Present only when some are - the headers whose saved value is empty. A tool a Duplicate with fork_tools made for the copy has every header this way until the values are sent with PATCH /tools/{id}. Values are never returned.","uniqueKey":"workflow.candidate.oneOf.0.configuration.empty_header_names","typeLabel":"string[]"},"empty_query_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.configuration.empty_query_names.items.[INDEX]","typeLabel":"string"},"description":"Present only when some are - the query parameters on the saved URL written name= with nothing after the =. A forked tool keeps the source's query names this way. Send the whole URL with PATCH /tools/{id} to fill them.","uniqueKey":"workflow.candidate.oneOf.0.configuration.empty_query_names","typeLabel":"string[]"}},"uniqueKey":"workflow.candidate.oneOf.0.configuration","typeLabel":"object"},"metadata_id":{"type":"string","format":"uuid","uniqueKey":"workflow.candidate.oneOf.0.metadata_id","typeLabel":"string\u003cuuid>"},"connection_id":{"type":"string","format":"uuid","uniqueKey":"workflow.candidate.oneOf.0.connection_id","typeLabel":"string\u003cuuid>"},"connection_label":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.connection_label","typeLabel":"string"},"connection_ready":{"type":"boolean","uniqueKey":"workflow.candidate.oneOf.0.connection_ready","typeLabel":"boolean"},"toolkit":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.toolkit","typeLabel":"string"},"action":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.action","typeLabel":"string"},"version":{"type":"string","pattern":"^\\d{8}_\\d{2}$","uniqueKey":"workflow.candidate.oneOf.0.version","typeLabel":"string"},"fixed_inputs":{"type":"object","additionalProperties":true,"uniqueKey":"workflow.candidate.oneOf.0.fixed_inputs","typeLabel":"object"},"destination":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.destination","typeLabel":"string"},"announce_transfer":{"type":"boolean","uniqueKey":"workflow.candidate.oneOf.0.announce_transfer","typeLabel":"boolean"},"announce_message":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.announce_message","typeLabel":"string"},"transfer_method":{"type":"string","enum":["pbx_feature_code"],"description":"A transfer tool only, and present only when it carries a [transfer code](/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code) of its own, which it uses instead of the one set on the extension endpoint: one set with workflow.transfer_method on a create or an update, or one a transfer tool brought with it when its agent moved to a workflow. Comes with pbx_feature_code. Absent when the tool uses the endpoint's code.","uniqueKey":"workflow.candidate.oneOf.0.transfer_method","typeLabel":"enum\u003cstring>"},"pbx_feature_code":{"type":"string","description":"Present with transfer_method: the tool's own in-call transfer code, for example ## or *2, sent as key presses before the extension.","uniqueKey":"workflow.candidate.oneOf.0.pbx_feature_code","typeLabel":"string"},"pbx_feature_code_hangup_after_secs":{"type":"integer","minimum":1,"maximum":10,"description":"Present only with transfer_method and pbx_feature_code, when the tool's own code starts an attended transfer: Yappr hangs up this many seconds after the code.","uniqueKey":"workflow.candidate.oneOf.0.pbx_feature_code_hangup_after_secs","typeLabel":"integer"}},"uniqueKey":"workflow.candidate.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"workflow.candidate.oneOf.1","typeLabel":"null"}],"uniqueKey":"workflow.candidate","typeLabel":"object | null"},"requested":{"oneOf":[{"type":"object","description":"Only on a creation that has not built (current is null and there is no head_revision_id): what it asked for, so it can be sent again with PATCH /tools/{id}. An app tool carries metadata_id, connection_id, toolkit, action, version, fixed_inputs and timeout_ms; a transfer tool carries destination, announce_transfer and announce_message. An http tool carries everything but its credentials: url_display (the address without its query, fragment or user:password), url_redacted (true when one of those was taken off, so the full address has to be sent again), method, effect, timeout_ms, include_call_context, input_schema, output_schema and configured_header_names (names only). Header values are never echoed; send them again with the retry.","uniqueKey":"workflow.requested.oneOf.0","typeLabel":"object"},{"type":"null","description":"Only on a creation that has not built (current is null and there is no head_revision_id): what it asked for, so it can be sent again with PATCH /tools/{id}. An app tool carries metadata_id, connection_id, toolkit, action, version, fixed_inputs and timeout_ms; a transfer tool carries destination, announce_transfer and announce_message. An http tool carries everything but its credentials: url_display (the address without its query, fragment or user:password), url_redacted (true when one of those was taken off, so the full address has to be sent again), method, effect, timeout_ms, include_call_context, input_schema, output_schema and configured_header_names (names only). Header values are never echoed; send them again with the retry.","uniqueKey":"workflow.requested.oneOf.1","typeLabel":"null"}],"uniqueKey":"workflow.requested","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"workflow","typeLabel":"object"},"description":{"oneOf":[{"type":"string","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"is_active":{"type":"boolean","uniqueKey":"is_active","typeLabel":"boolean"},"created_at":{"type":"string","format":"date-time","description":"When the tool was made. On a creation that has not built, when it was first asked for; a retry does not move it.","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"integration":{"type":"object","readOnly":true,"required":["connection_id","action"],"description":"Present only on a tool an integration runs one of its actions through: the tool made for a connected account's action when that account is given to an agent (POST /agents/{id}/integrations). It names the account and the action. Such a tool belongs to the integration and is shared by every agent the account is given to: PATCH /tools/{id} answers 409 INTEGRATION_ACTION_MANAGED, DELETE /tools/{id} does too while any agent still uses it, and GET /tools leaves it out. Change which actions an agent uses with PATCH /agents/{id}/integrations/{integration_id}.","properties":{"connection_id":{"type":"string","format":"uuid","description":"The connected account (GET /tool-connections/{id}).","isRequired":true,"uniqueKey":"integration.connection_id","typeLabel":"string\u003cuuid>"},"action":{"type":"string","description":"The action the tool runs, as GET /tool-connections/{id}/actions lists it.","example":"GOOGLECALENDAR_FIND_FREE_SLOTS","isRequired":true,"uniqueKey":"integration.action","typeLabel":"string"}},"uniqueKey":"integration","typeLabel":"object"},"warnings":{"type":"array","description":"Present only on a create that went through with something worth saying about it - today, only that another tool in this workspace already carries the same name. Never a refusal: the tool in the same response exists. Absent when there is nothing to say.","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["tool_name_in_use"],"isRequired":true,"uniqueKey":"warnings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].message","typeLabel":"string"},"tools":{"type":"array","description":"The tools already holding the name, at most twenty.","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"warnings.items.[INDEX].tools.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","uniqueKey":"warnings.items.[INDEX].tools.items.[INDEX].name","typeLabel":"string"}},"uniqueKey":"warnings.items.[INDEX].tools.items.[INDEX]","typeLabel":"object"},"uniqueKey":"warnings.items.[INDEX].tools","typeLabel":"object[]"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"warnings","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","workflow_version":"workflow_v1","workflow":{"kind":"http","status":"accepted","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","current":{"revision_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","revision":2,"kind":"http","name":"\u003cstring>","description":"\u003cstring>","input_schema":{},"output_schema":{},"allowed_phases":["before"],"allowed_channels":["phone"],"timeout_ms":123,"effect":"read","configuration":{"method":"\u003cstring>","url_display":"\u003cstring>","url_redacted":true,"url_replacement_required":true,"configured_query_names":["\u003cstring>"],"configured_header_names":["\u003cstring>"],"empty_header_names":["\u003cstring>"],"empty_query_names":["\u003cstring>"]},"metadata_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","connection_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","connection_label":"\u003cstring>","connection_ready":true,"toolkit":"\u003cstring>","action":"\u003cstring>","version":"\u003cstring>","fixed_inputs":{},"destination":"\u003cstring>","announce_transfer":true,"announce_message":"\u003cstring>","transfer_method":"pbx_feature_code","pbx_feature_code":"\u003cstring>","pbx_feature_code_hangup_after_secs":5},"error_code":"\u003cstring>","head_revision_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","head_generation":123,"candidate":{"revision_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","revision":2,"kind":"http","name":"\u003cstring>","description":"\u003cstring>","input_schema":{},"output_schema":{},"allowed_phases":["before"],"allowed_channels":["phone"],"timeout_ms":123,"effect":"read","configuration":{"method":"\u003cstring>","url_display":"\u003cstring>","url_redacted":true,"url_replacement_required":true,"configured_query_names":["\u003cstring>"],"configured_header_names":["\u003cstring>"],"empty_header_names":["\u003cstring>"],"empty_query_names":["\u003cstring>"]},"metadata_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","connection_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","connection_label":"\u003cstring>","connection_ready":true,"toolkit":"\u003cstring>","action":"\u003cstring>","version":"\u003cstring>","fixed_inputs":{},"destination":"\u003cstring>","announce_transfer":true,"announce_message":"\u003cstring>","transfer_method":"pbx_feature_code","pbx_feature_code":"\u003cstring>","pbx_feature_code_hangup_after_secs":5},"requested":{}},"description":"\u003cstring>","is_active":true,"created_at":"2023-11-07T05:31:56Z","integration":{"connection_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","action":"GOOGLECALENDAR_FIND_FREE_SLOTS"},"warnings":[{"code":"tool_name_in_use","message":"\u003cstring>","tools":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>"}]}]}}},"exampleType":"generated"}},"exampleType":"generated"},"706c3526-d385-44d7-9dd9-c089927cad4f":{"description":"Tool created and built: it has a current revision and can be bound now. Every create the build service takes answers this, after waiting a few seconds at most for the build. Names are not unique here: when another tool in this workspace already carries the same name the tool is still created, and the response carries a warnings[] entry naming it.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Temporary legacy webhook/function migration boundary. New tools use the workflow variant.","required":["id","type"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"oneOf.0.id","typeLabel":"string\u003cuuid>"},"type":{"type":"string","enum":["webhook","function"],"isRequired":true,"uniqueKey":"oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Normalized to camelCase (e.g. 'capture_lead' → 'captureLead')","uniqueKey":"oneOf.0.name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.description","typeLabel":"string | null"},"config":{"type":"object","additionalProperties":true,"description":"Webhook configuration. Request header values are never returned: a read omits `config.headers` entirely and reports the names in `config.configured_header_names`. Writes are per header, the same rule a workflow tool follows — omitting `headers` keeps every stored header, an explicit empty object clears them all, a string sets one, `null` keeps the value already stored under that exact name, and a stored name you leave out of a `headers` you did send is removed. On `POST /tools` nothing is stored yet, so `null` is refused with `400`.\nA legacy transfer tool (made in the dashboard) carries `destination`, `announce_transfer` and `announce_message`, and may carry `transfer_method`, `pbx_feature_code` and `pbx_feature_code_hangup_after_secs`: the same keys, values and rules as on a flow's TransferNode, with `destination` in place of `transfer_to`.\n","properties":{"configured_header_names":{"type":"array","readOnly":true,"items":{"type":"string","uniqueKey":"oneOf.0.config.configured_header_names.items.[INDEX]","typeLabel":"string"},"description":"Names of the request headers this tool sends, sorted. Values are never returned.","uniqueKey":"oneOf.0.config.configured_header_names","typeLabel":"string[]"}},"uniqueKey":"oneOf.0.config","typeLabel":"object"},"is_active":{"type":"boolean","uniqueKey":"oneOf.0.is_active","typeLabel":"boolean"},"created_at":{"type":"string","format":"date-time","uniqueKey":"oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"oneOf.0.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["id","name","workflow_version","workflow"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"oneOf.1.id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.name","typeLabel":"string"},"workflow_version":{"const":"workflow_v1","readOnly":true,"isRequired":true,"uniqueKey":"oneOf.1.workflow_version","typeLabel":"any"},"workflow":{"type":"object","required":["kind","status","request_id","current"],"properties":{"kind":{"type":"string","enum":["http","app","transfer"],"isRequired":true,"uniqueKey":"oneOf.1.workflow.kind","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["accepted","claimed","current","queued","compiling","ready","promoted","failed","conflict"],"isRequired":true,"uniqueKey":"oneOf.1.workflow.status","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"oneOf.1.workflow.request_id","typeLabel":"string\u003cuuid>"},"current":{"oneOf":[{"type":"object","description":"Safe authoring projection. Raw execution contracts, provider IDs, URL queries, and header values are never included.","required":["revision_id","revision","kind","name","description","input_schema","output_schema","allowed_phases","allowed_channels"],"properties":{"revision_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"oneOf.1.workflow.current.oneOf.0.revision_id","typeLabel":"string\u003cuuid>"},"revision":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"oneOf.1.workflow.current.oneOf.0.revision","typeLabel":"integer"},"kind":{"type":"string","enum":["http","app","transfer"],"isRequired":true,"uniqueKey":"oneOf.1.workflow.current.oneOf.0.kind","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.workflow.current.oneOf.0.name","typeLabel":"string"},"description":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.workflow.current.oneOf.0.description","typeLabel":"string"},"input_schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.1.workflow.current.oneOf.0.input_schema","typeLabel":"object"},"output_schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.1.workflow.current.oneOf.0.output_schema","typeLabel":"object"},"allowed_phases":{"type":"array","items":{"type":"string","enum":["before","during","after"],"uniqueKey":"oneOf.1.workflow.current.oneOf.0.allowed_phases.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"oneOf.1.workflow.current.oneOf.0.allowed_phases","typeLabel":"enum\u003cstring>[]"},"allowed_channels":{"type":"array","items":{"enum":["phone","web"],"type":"string","uniqueKey":"oneOf.1.workflow.current.oneOf.0.allowed_channels.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"oneOf.1.workflow.current.oneOf.0.allowed_channels","typeLabel":"enum\u003cstring>[]"},"timeout_ms":{"type":"integer","uniqueKey":"oneOf.1.workflow.current.oneOf.0.timeout_ms","typeLabel":"integer"},"effect":{"type":"string","enum":["read","write","terminal"],"uniqueKey":"oneOf.1.workflow.current.oneOf.0.effect","typeLabel":"enum\u003cstring>"},"configuration":{"type":"object","description":"HTTP display only. Never use this projection as the replacement execution configuration.","properties":{"method":{"type":"string","uniqueKey":"oneOf.1.workflow.current.oneOf.0.configuration.method","typeLabel":"string"},"url_display":{"type":"string","description":"Non-executable URL display label without userinfo, query, or fragment.","uniqueKey":"oneOf.1.workflow.current.oneOf.0.configuration.url_display","typeLabel":"string"},"url_redacted":{"type":"boolean","description":"True when the saved URL carries a query string that this projection strips.","uniqueKey":"oneOf.1.workflow.current.oneOf.0.configuration.url_redacted","typeLabel":"boolean"},"url_replacement_required":{"const":true,"description":"Always true, for every HTTP tool, on every read. It states a rule rather than a condition - because this projection is lossy, a revision that changes the URL must send the whole URL again, query string included; omit the field to keep the saved one. Never send url_display back as the replacement URL.\n","uniqueKey":"oneOf.1.workflow.current.oneOf.0.configuration.url_replacement_required","typeLabel":"any"},"configured_query_names":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.workflow.current.oneOf.0.configuration.configured_query_names.items.[INDEX]","typeLabel":"string"},"description":"Names of the query parameters configured on the saved URL. Values are never returned.","uniqueKey":"oneOf.1.workflow.current.oneOf.0.configuration.configured_query_names","typeLabel":"string[]"},"configured_header_names":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.workflow.current.oneOf.0.configuration.configured_header_names.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.workflow.current.oneOf.0.configuration.configured_header_names","typeLabel":"string[]"},"empty_header_names":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.workflow.current.oneOf.0.configuration.empty_header_names.items.[INDEX]","typeLabel":"string"},"description":"Present only when some are - the headers whose saved value is empty. A tool a Duplicate with fork_tools made for the copy has every header this way until the values are sent with PATCH /tools/{id}. Values are never returned.","uniqueKey":"oneOf.1.workflow.current.oneOf.0.configuration.empty_header_names","typeLabel":"string[]"},"empty_query_names":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.workflow.current.oneOf.0.configuration.empty_query_names.items.[INDEX]","typeLabel":"string"},"description":"Present only when some are - the query parameters on the saved URL written name= with nothing after the =. A forked tool keeps the source's query names this way. Send the whole URL with PATCH /tools/{id} to fill them.","uniqueKey":"oneOf.1.workflow.current.oneOf.0.configuration.empty_query_names","typeLabel":"string[]"}},"uniqueKey":"oneOf.1.workflow.current.oneOf.0.configuration","typeLabel":"object"},"metadata_id":{"type":"string","format":"uuid","uniqueKey":"oneOf.1.workflow.current.oneOf.0.metadata_id","typeLabel":"string\u003cuuid>"},"connection_id":{"type":"string","format":"uuid","uniqueKey":"oneOf.1.workflow.current.oneOf.0.connection_id","typeLabel":"string\u003cuuid>"},"connection_label":{"type":"string","uniqueKey":"oneOf.1.workflow.current.oneOf.0.connection_label","typeLabel":"string"},"connection_ready":{"type":"boolean","uniqueKey":"oneOf.1.workflow.current.oneOf.0.connection_ready","typeLabel":"boolean"},"toolkit":{"type":"string","uniqueKey":"oneOf.1.workflow.current.oneOf.0.toolkit","typeLabel":"string"},"action":{"type":"string","uniqueKey":"oneOf.1.workflow.current.oneOf.0.action","typeLabel":"string"},"version":{"type":"string","pattern":"^\\d{8}_\\d{2}$","uniqueKey":"oneOf.1.workflow.current.oneOf.0.version","typeLabel":"string"},"fixed_inputs":{"type":"object","additionalProperties":true,"uniqueKey":"oneOf.1.workflow.current.oneOf.0.fixed_inputs","typeLabel":"object"},"destination":{"type":"string","uniqueKey":"oneOf.1.workflow.current.oneOf.0.destination","typeLabel":"string"},"announce_transfer":{"type":"boolean","uniqueKey":"oneOf.1.workflow.current.oneOf.0.announce_transfer","typeLabel":"boolean"},"announce_message":{"type":"string","uniqueKey":"oneOf.1.workflow.current.oneOf.0.announce_message","typeLabel":"string"},"transfer_method":{"type":"string","enum":["pbx_feature_code"],"description":"A transfer tool only, and present only when it carries a [transfer code](/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code) of its own, which it uses instead of the one set on the extension endpoint: one set with workflow.transfer_method on a create or an update, or one a transfer tool brought with it when its agent moved to a workflow. Comes with pbx_feature_code. Absent when the tool uses the endpoint's code.","uniqueKey":"oneOf.1.workflow.current.oneOf.0.transfer_method","typeLabel":"enum\u003cstring>"},"pbx_feature_code":{"type":"string","description":"Present with transfer_method: the tool's own in-call transfer code, for example ## or *2, sent as key presses before the extension.","uniqueKey":"oneOf.1.workflow.current.oneOf.0.pbx_feature_code","typeLabel":"string"},"pbx_feature_code_hangup_after_secs":{"type":"integer","minimum":1,"maximum":10,"description":"Present only with transfer_method and pbx_feature_code, when the tool's own code starts an attended transfer: Yappr hangs up this many seconds after the code.","uniqueKey":"oneOf.1.workflow.current.oneOf.0.pbx_feature_code_hangup_after_secs","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"oneOf.1.workflow.current.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.1.workflow.current.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.workflow.current","typeLabel":"object | null"},"error_code":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.workflow.error_code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.1.workflow.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.workflow.error_code","typeLabel":"string | null"},"head_revision_id":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"oneOf.1.workflow.head_revision_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"oneOf.1.workflow.head_revision_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.workflow.head_revision_id","typeLabel":"string\u003cuuid> | null"},"head_generation":{"oneOf":[{"type":"integer","uniqueKey":"oneOf.1.workflow.head_generation.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"oneOf.1.workflow.head_generation.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.workflow.head_generation","typeLabel":"integer | null"},"candidate":{"oneOf":[{"type":"object","description":"Safe authoring projection. Raw execution contracts, provider IDs, URL queries, and header values are never included.","required":["revision_id","revision","kind","name","description","input_schema","output_schema","allowed_phases","allowed_channels"],"properties":{"revision_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.revision_id","typeLabel":"string\u003cuuid>"},"revision":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.revision","typeLabel":"integer"},"kind":{"type":"string","enum":["http","app","transfer"],"isRequired":true,"uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.kind","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.name","typeLabel":"string"},"description":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.description","typeLabel":"string"},"input_schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.input_schema","typeLabel":"object"},"output_schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.output_schema","typeLabel":"object"},"allowed_phases":{"type":"array","items":{"type":"string","enum":["before","during","after"],"uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.allowed_phases.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.allowed_phases","typeLabel":"enum\u003cstring>[]"},"allowed_channels":{"type":"array","items":{"enum":["phone","web"],"type":"string","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.allowed_channels.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.allowed_channels","typeLabel":"enum\u003cstring>[]"},"timeout_ms":{"type":"integer","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.timeout_ms","typeLabel":"integer"},"effect":{"type":"string","enum":["read","write","terminal"],"uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.effect","typeLabel":"enum\u003cstring>"},"configuration":{"type":"object","description":"HTTP display only. Never use this projection as the replacement execution configuration.","properties":{"method":{"type":"string","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.configuration.method","typeLabel":"string"},"url_display":{"type":"string","description":"Non-executable URL display label without userinfo, query, or fragment.","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.configuration.url_display","typeLabel":"string"},"url_redacted":{"type":"boolean","description":"True when the saved URL carries a query string that this projection strips.","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.configuration.url_redacted","typeLabel":"boolean"},"url_replacement_required":{"const":true,"description":"Always true, for every HTTP tool, on every read. It states a rule rather than a condition - because this projection is lossy, a revision that changes the URL must send the whole URL again, query string included; omit the field to keep the saved one. Never send url_display back as the replacement URL.\n","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.configuration.url_replacement_required","typeLabel":"any"},"configured_query_names":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.configuration.configured_query_names.items.[INDEX]","typeLabel":"string"},"description":"Names of the query parameters configured on the saved URL. Values are never returned.","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.configuration.configured_query_names","typeLabel":"string[]"},"configured_header_names":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.configuration.configured_header_names.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.configuration.configured_header_names","typeLabel":"string[]"},"empty_header_names":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.configuration.empty_header_names.items.[INDEX]","typeLabel":"string"},"description":"Present only when some are - the headers whose saved value is empty. A tool a Duplicate with fork_tools made for the copy has every header this way until the values are sent with PATCH /tools/{id}. Values are never returned.","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.configuration.empty_header_names","typeLabel":"string[]"},"empty_query_names":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.configuration.empty_query_names.items.[INDEX]","typeLabel":"string"},"description":"Present only when some are - the query parameters on the saved URL written name= with nothing after the =. A forked tool keeps the source's query names this way. Send the whole URL with PATCH /tools/{id} to fill them.","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.configuration.empty_query_names","typeLabel":"string[]"}},"uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.configuration","typeLabel":"object"},"metadata_id":{"type":"string","format":"uuid","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.metadata_id","typeLabel":"string\u003cuuid>"},"connection_id":{"type":"string","format":"uuid","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.connection_id","typeLabel":"string\u003cuuid>"},"connection_label":{"type":"string","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.connection_label","typeLabel":"string"},"connection_ready":{"type":"boolean","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.connection_ready","typeLabel":"boolean"},"toolkit":{"type":"string","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.toolkit","typeLabel":"string"},"action":{"type":"string","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.action","typeLabel":"string"},"version":{"type":"string","pattern":"^\\d{8}_\\d{2}$","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.version","typeLabel":"string"},"fixed_inputs":{"type":"object","additionalProperties":true,"uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.fixed_inputs","typeLabel":"object"},"destination":{"type":"string","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.destination","typeLabel":"string"},"announce_transfer":{"type":"boolean","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.announce_transfer","typeLabel":"boolean"},"announce_message":{"type":"string","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.announce_message","typeLabel":"string"},"transfer_method":{"type":"string","enum":["pbx_feature_code"],"description":"A transfer tool only, and present only when it carries a [transfer code](/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code) of its own, which it uses instead of the one set on the extension endpoint: one set with workflow.transfer_method on a create or an update, or one a transfer tool brought with it when its agent moved to a workflow. Comes with pbx_feature_code. Absent when the tool uses the endpoint's code.","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.transfer_method","typeLabel":"enum\u003cstring>"},"pbx_feature_code":{"type":"string","description":"Present with transfer_method: the tool's own in-call transfer code, for example ## or *2, sent as key presses before the extension.","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.pbx_feature_code","typeLabel":"string"},"pbx_feature_code_hangup_after_secs":{"type":"integer","minimum":1,"maximum":10,"description":"Present only with transfer_method and pbx_feature_code, when the tool's own code starts an attended transfer: Yappr hangs up this many seconds after the code.","uniqueKey":"oneOf.1.workflow.candidate.oneOf.0.pbx_feature_code_hangup_after_secs","typeLabel":"integer"}},"uniqueKey":"oneOf.1.workflow.candidate.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"oneOf.1.workflow.candidate.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.workflow.candidate","typeLabel":"object | null"},"requested":{"oneOf":[{"type":"object","description":"Only on a creation that has not built (current is null and there is no head_revision_id): what it asked for, so it can be sent again with PATCH /tools/{id}. An app tool carries metadata_id, connection_id, toolkit, action, version, fixed_inputs and timeout_ms; a transfer tool carries destination, announce_transfer and announce_message. An http tool carries everything but its credentials: url_display (the address without its query, fragment or user:password), url_redacted (true when one of those was taken off, so the full address has to be sent again), method, effect, timeout_ms, include_call_context, input_schema, output_schema and configured_header_names (names only). Header values are never echoed; send them again with the retry.","uniqueKey":"oneOf.1.workflow.requested.oneOf.0","typeLabel":"object"},{"type":"null","description":"Only on a creation that has not built (current is null and there is no head_revision_id): what it asked for, so it can be sent again with PATCH /tools/{id}. An app tool carries metadata_id, connection_id, toolkit, action, version, fixed_inputs and timeout_ms; a transfer tool carries destination, announce_transfer and announce_message. An http tool carries everything but its credentials: url_display (the address without its query, fragment or user:password), url_redacted (true when one of those was taken off, so the full address has to be sent again), method, effect, timeout_ms, include_call_context, input_schema, output_schema and configured_header_names (names only). Header values are never echoed; send them again with the retry.","uniqueKey":"oneOf.1.workflow.requested.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.workflow.requested","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"oneOf.1.workflow","typeLabel":"object"},"description":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.1.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.description","typeLabel":"string | null"},"is_active":{"type":"boolean","uniqueKey":"oneOf.1.is_active","typeLabel":"boolean"},"created_at":{"type":"string","format":"date-time","description":"When the tool was made. On a creation that has not built, when it was first asked for; a retry does not move it.","uniqueKey":"oneOf.1.created_at","typeLabel":"string\u003cdate-time>"},"integration":{"type":"object","readOnly":true,"required":["connection_id","action"],"description":"Present only on a tool an integration runs one of its actions through: the tool made for a connected account's action when that account is given to an agent (POST /agents/{id}/integrations). It names the account and the action. Such a tool belongs to the integration and is shared by every agent the account is given to: PATCH /tools/{id} answers 409 INTEGRATION_ACTION_MANAGED, DELETE /tools/{id} does too while any agent still uses it, and GET /tools leaves it out. Change which actions an agent uses with PATCH /agents/{id}/integrations/{integration_id}.","properties":{"connection_id":{"type":"string","format":"uuid","description":"The connected account (GET /tool-connections/{id}).","isRequired":true,"uniqueKey":"oneOf.1.integration.connection_id","typeLabel":"string\u003cuuid>"},"action":{"type":"string","description":"The action the tool runs, as GET /tool-connections/{id}/actions lists it.","example":"GOOGLECALENDAR_FIND_FREE_SLOTS","isRequired":true,"uniqueKey":"oneOf.1.integration.action","typeLabel":"string"}},"uniqueKey":"oneOf.1.integration","typeLabel":"object"},"warnings":{"type":"array","description":"Present only on a create that went through with something worth saying about it - today, only that another tool in this workspace already carries the same name. Never a refusal: the tool in the same response exists. Absent when there is nothing to say.","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["tool_name_in_use"],"isRequired":true,"uniqueKey":"oneOf.1.warnings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.warnings.items.[INDEX].message","typeLabel":"string"},"tools":{"type":"array","description":"The tools already holding the name, at most twenty.","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"oneOf.1.warnings.items.[INDEX].tools.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","uniqueKey":"oneOf.1.warnings.items.[INDEX].tools.items.[INDEX].name","typeLabel":"string"}},"uniqueKey":"oneOf.1.warnings.items.[INDEX].tools.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.warnings.items.[INDEX].tools","typeLabel":"object[]"}},"uniqueKey":"oneOf.1.warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.warnings","typeLabel":"object[]"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","type":"webhook","name":"\u003cstring>","description":"\u003cstring>","config":{"configured_header_names":["\u003cstring>"]},"is_active":true,"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"e3723f07-be82-400d-aeff-8a7f5899fc4f":{"description":"Queued, not built yet - the build service could not take the create right now, or it was still building after the few seconds the request waits for it. Poll GET /tools/{id} until workflow.status is current (or failed). A create that is built while the request waits is 201, never 202. Carries warnings[] when the name is already in use by another tool here.","content":{"application/json":{"schema":{"type":"object","required":["id","name","workflow_version","workflow"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"workflow_version":{"const":"workflow_v1","readOnly":true,"isRequired":true,"uniqueKey":"workflow_version","typeLabel":"any"},"workflow":{"type":"object","required":["kind","status","request_id","current"],"properties":{"kind":{"type":"string","enum":["http","app","transfer"],"isRequired":true,"uniqueKey":"workflow.kind","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["accepted","claimed","current","queued","compiling","ready","promoted","failed","conflict"],"isRequired":true,"uniqueKey":"workflow.status","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"workflow.request_id","typeLabel":"string\u003cuuid>"},"current":{"oneOf":[{"type":"object","description":"Safe authoring projection. Raw execution contracts, provider IDs, URL queries, and header values are never included.","required":["revision_id","revision","kind","name","description","input_schema","output_schema","allowed_phases","allowed_channels"],"properties":{"revision_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"workflow.current.oneOf.0.revision_id","typeLabel":"string\u003cuuid>"},"revision":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"workflow.current.oneOf.0.revision","typeLabel":"integer"},"kind":{"type":"string","enum":["http","app","transfer"],"isRequired":true,"uniqueKey":"workflow.current.oneOf.0.kind","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"workflow.current.oneOf.0.name","typeLabel":"string"},"description":{"type":"string","isRequired":true,"uniqueKey":"workflow.current.oneOf.0.description","typeLabel":"string"},"input_schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"workflow.current.oneOf.0.input_schema","typeLabel":"object"},"output_schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"workflow.current.oneOf.0.output_schema","typeLabel":"object"},"allowed_phases":{"type":"array","items":{"type":"string","enum":["before","during","after"],"uniqueKey":"workflow.current.oneOf.0.allowed_phases.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"workflow.current.oneOf.0.allowed_phases","typeLabel":"enum\u003cstring>[]"},"allowed_channels":{"type":"array","items":{"enum":["phone","web"],"type":"string","uniqueKey":"workflow.current.oneOf.0.allowed_channels.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"workflow.current.oneOf.0.allowed_channels","typeLabel":"enum\u003cstring>[]"},"timeout_ms":{"type":"integer","uniqueKey":"workflow.current.oneOf.0.timeout_ms","typeLabel":"integer"},"effect":{"type":"string","enum":["read","write","terminal"],"uniqueKey":"workflow.current.oneOf.0.effect","typeLabel":"enum\u003cstring>"},"configuration":{"type":"object","description":"HTTP display only. Never use this projection as the replacement execution configuration.","properties":{"method":{"type":"string","uniqueKey":"workflow.current.oneOf.0.configuration.method","typeLabel":"string"},"url_display":{"type":"string","description":"Non-executable URL display label without userinfo, query, or fragment.","uniqueKey":"workflow.current.oneOf.0.configuration.url_display","typeLabel":"string"},"url_redacted":{"type":"boolean","description":"True when the saved URL carries a query string that this projection strips.","uniqueKey":"workflow.current.oneOf.0.configuration.url_redacted","typeLabel":"boolean"},"url_replacement_required":{"const":true,"description":"Always true, for every HTTP tool, on every read. It states a rule rather than a condition - because this projection is lossy, a revision that changes the URL must send the whole URL again, query string included; omit the field to keep the saved one. Never send url_display back as the replacement URL.\n","uniqueKey":"workflow.current.oneOf.0.configuration.url_replacement_required","typeLabel":"any"},"configured_query_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.current.oneOf.0.configuration.configured_query_names.items.[INDEX]","typeLabel":"string"},"description":"Names of the query parameters configured on the saved URL. Values are never returned.","uniqueKey":"workflow.current.oneOf.0.configuration.configured_query_names","typeLabel":"string[]"},"configured_header_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.current.oneOf.0.configuration.configured_header_names.items.[INDEX]","typeLabel":"string"},"uniqueKey":"workflow.current.oneOf.0.configuration.configured_header_names","typeLabel":"string[]"},"empty_header_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.current.oneOf.0.configuration.empty_header_names.items.[INDEX]","typeLabel":"string"},"description":"Present only when some are - the headers whose saved value is empty. A tool a Duplicate with fork_tools made for the copy has every header this way until the values are sent with PATCH /tools/{id}. Values are never returned.","uniqueKey":"workflow.current.oneOf.0.configuration.empty_header_names","typeLabel":"string[]"},"empty_query_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.current.oneOf.0.configuration.empty_query_names.items.[INDEX]","typeLabel":"string"},"description":"Present only when some are - the query parameters on the saved URL written name= with nothing after the =. A forked tool keeps the source's query names this way. Send the whole URL with PATCH /tools/{id} to fill them.","uniqueKey":"workflow.current.oneOf.0.configuration.empty_query_names","typeLabel":"string[]"}},"uniqueKey":"workflow.current.oneOf.0.configuration","typeLabel":"object"},"metadata_id":{"type":"string","format":"uuid","uniqueKey":"workflow.current.oneOf.0.metadata_id","typeLabel":"string\u003cuuid>"},"connection_id":{"type":"string","format":"uuid","uniqueKey":"workflow.current.oneOf.0.connection_id","typeLabel":"string\u003cuuid>"},"connection_label":{"type":"string","uniqueKey":"workflow.current.oneOf.0.connection_label","typeLabel":"string"},"connection_ready":{"type":"boolean","uniqueKey":"workflow.current.oneOf.0.connection_ready","typeLabel":"boolean"},"toolkit":{"type":"string","uniqueKey":"workflow.current.oneOf.0.toolkit","typeLabel":"string"},"action":{"type":"string","uniqueKey":"workflow.current.oneOf.0.action","typeLabel":"string"},"version":{"type":"string","pattern":"^\\d{8}_\\d{2}$","uniqueKey":"workflow.current.oneOf.0.version","typeLabel":"string"},"fixed_inputs":{"type":"object","additionalProperties":true,"uniqueKey":"workflow.current.oneOf.0.fixed_inputs","typeLabel":"object"},"destination":{"type":"string","uniqueKey":"workflow.current.oneOf.0.destination","typeLabel":"string"},"announce_transfer":{"type":"boolean","uniqueKey":"workflow.current.oneOf.0.announce_transfer","typeLabel":"boolean"},"announce_message":{"type":"string","uniqueKey":"workflow.current.oneOf.0.announce_message","typeLabel":"string"},"transfer_method":{"type":"string","enum":["pbx_feature_code"],"description":"A transfer tool only, and present only when it carries a [transfer code](/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code) of its own, which it uses instead of the one set on the extension endpoint: one set with workflow.transfer_method on a create or an update, or one a transfer tool brought with it when its agent moved to a workflow. Comes with pbx_feature_code. Absent when the tool uses the endpoint's code.","uniqueKey":"workflow.current.oneOf.0.transfer_method","typeLabel":"enum\u003cstring>"},"pbx_feature_code":{"type":"string","description":"Present with transfer_method: the tool's own in-call transfer code, for example ## or *2, sent as key presses before the extension.","uniqueKey":"workflow.current.oneOf.0.pbx_feature_code","typeLabel":"string"},"pbx_feature_code_hangup_after_secs":{"type":"integer","minimum":1,"maximum":10,"description":"Present only with transfer_method and pbx_feature_code, when the tool's own code starts an attended transfer: Yappr hangs up this many seconds after the code.","uniqueKey":"workflow.current.oneOf.0.pbx_feature_code_hangup_after_secs","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"workflow.current.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"workflow.current.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"workflow.current","typeLabel":"object | null"},"error_code":{"oneOf":[{"type":"string","uniqueKey":"workflow.error_code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"workflow.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"workflow.error_code","typeLabel":"string | null"},"head_revision_id":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"workflow.head_revision_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"workflow.head_revision_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"workflow.head_revision_id","typeLabel":"string\u003cuuid> | null"},"head_generation":{"oneOf":[{"type":"integer","uniqueKey":"workflow.head_generation.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"workflow.head_generation.oneOf.1","typeLabel":"null"}],"uniqueKey":"workflow.head_generation","typeLabel":"integer | null"},"candidate":{"oneOf":[{"type":"object","description":"Safe authoring projection. Raw execution contracts, provider IDs, URL queries, and header values are never included.","required":["revision_id","revision","kind","name","description","input_schema","output_schema","allowed_phases","allowed_channels"],"properties":{"revision_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.revision_id","typeLabel":"string\u003cuuid>"},"revision":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.revision","typeLabel":"integer"},"kind":{"type":"string","enum":["http","app","transfer"],"isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.kind","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.name","typeLabel":"string"},"description":{"type":"string","isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.description","typeLabel":"string"},"input_schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.input_schema","typeLabel":"object"},"output_schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.output_schema","typeLabel":"object"},"allowed_phases":{"type":"array","items":{"type":"string","enum":["before","during","after"],"uniqueKey":"workflow.candidate.oneOf.0.allowed_phases.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.allowed_phases","typeLabel":"enum\u003cstring>[]"},"allowed_channels":{"type":"array","items":{"enum":["phone","web"],"type":"string","uniqueKey":"workflow.candidate.oneOf.0.allowed_channels.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"workflow.candidate.oneOf.0.allowed_channels","typeLabel":"enum\u003cstring>[]"},"timeout_ms":{"type":"integer","uniqueKey":"workflow.candidate.oneOf.0.timeout_ms","typeLabel":"integer"},"effect":{"type":"string","enum":["read","write","terminal"],"uniqueKey":"workflow.candidate.oneOf.0.effect","typeLabel":"enum\u003cstring>"},"configuration":{"type":"object","description":"HTTP display only. Never use this projection as the replacement execution configuration.","properties":{"method":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.configuration.method","typeLabel":"string"},"url_display":{"type":"string","description":"Non-executable URL display label without userinfo, query, or fragment.","uniqueKey":"workflow.candidate.oneOf.0.configuration.url_display","typeLabel":"string"},"url_redacted":{"type":"boolean","description":"True when the saved URL carries a query string that this projection strips.","uniqueKey":"workflow.candidate.oneOf.0.configuration.url_redacted","typeLabel":"boolean"},"url_replacement_required":{"const":true,"description":"Always true, for every HTTP tool, on every read. It states a rule rather than a condition - because this projection is lossy, a revision that changes the URL must send the whole URL again, query string included; omit the field to keep the saved one. Never send url_display back as the replacement URL.\n","uniqueKey":"workflow.candidate.oneOf.0.configuration.url_replacement_required","typeLabel":"any"},"configured_query_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.configuration.configured_query_names.items.[INDEX]","typeLabel":"string"},"description":"Names of the query parameters configured on the saved URL. Values are never returned.","uniqueKey":"workflow.candidate.oneOf.0.configuration.configured_query_names","typeLabel":"string[]"},"configured_header_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.configuration.configured_header_names.items.[INDEX]","typeLabel":"string"},"uniqueKey":"workflow.candidate.oneOf.0.configuration.configured_header_names","typeLabel":"string[]"},"empty_header_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.configuration.empty_header_names.items.[INDEX]","typeLabel":"string"},"description":"Present only when some are - the headers whose saved value is empty. A tool a Duplicate with fork_tools made for the copy has every header this way until the values are sent with PATCH /tools/{id}. Values are never returned.","uniqueKey":"workflow.candidate.oneOf.0.configuration.empty_header_names","typeLabel":"string[]"},"empty_query_names":{"type":"array","items":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.configuration.empty_query_names.items.[INDEX]","typeLabel":"string"},"description":"Present only when some are - the query parameters on the saved URL written name= with nothing after the =. A forked tool keeps the source's query names this way. Send the whole URL with PATCH /tools/{id} to fill them.","uniqueKey":"workflow.candidate.oneOf.0.configuration.empty_query_names","typeLabel":"string[]"}},"uniqueKey":"workflow.candidate.oneOf.0.configuration","typeLabel":"object"},"metadata_id":{"type":"string","format":"uuid","uniqueKey":"workflow.candidate.oneOf.0.metadata_id","typeLabel":"string\u003cuuid>"},"connection_id":{"type":"string","format":"uuid","uniqueKey":"workflow.candidate.oneOf.0.connection_id","typeLabel":"string\u003cuuid>"},"connection_label":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.connection_label","typeLabel":"string"},"connection_ready":{"type":"boolean","uniqueKey":"workflow.candidate.oneOf.0.connection_ready","typeLabel":"boolean"},"toolkit":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.toolkit","typeLabel":"string"},"action":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.action","typeLabel":"string"},"version":{"type":"string","pattern":"^\\d{8}_\\d{2}$","uniqueKey":"workflow.candidate.oneOf.0.version","typeLabel":"string"},"fixed_inputs":{"type":"object","additionalProperties":true,"uniqueKey":"workflow.candidate.oneOf.0.fixed_inputs","typeLabel":"object"},"destination":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.destination","typeLabel":"string"},"announce_transfer":{"type":"boolean","uniqueKey":"workflow.candidate.oneOf.0.announce_transfer","typeLabel":"boolean"},"announce_message":{"type":"string","uniqueKey":"workflow.candidate.oneOf.0.announce_message","typeLabel":"string"},"transfer_method":{"type":"string","enum":["pbx_feature_code"],"description":"A transfer tool only, and present only when it carries a [transfer code](/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code) of its own, which it uses instead of the one set on the extension endpoint: one set with workflow.transfer_method on a create or an update, or one a transfer tool brought with it when its agent moved to a workflow. Comes with pbx_feature_code. Absent when the tool uses the endpoint's code.","uniqueKey":"workflow.candidate.oneOf.0.transfer_method","typeLabel":"enum\u003cstring>"},"pbx_feature_code":{"type":"string","description":"Present with transfer_method: the tool's own in-call transfer code, for example ## or *2, sent as key presses before the extension.","uniqueKey":"workflow.candidate.oneOf.0.pbx_feature_code","typeLabel":"string"},"pbx_feature_code_hangup_after_secs":{"type":"integer","minimum":1,"maximum":10,"description":"Present only with transfer_method and pbx_feature_code, when the tool's own code starts an attended transfer: Yappr hangs up this many seconds after the code.","uniqueKey":"workflow.candidate.oneOf.0.pbx_feature_code_hangup_after_secs","typeLabel":"integer"}},"uniqueKey":"workflow.candidate.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"workflow.candidate.oneOf.1","typeLabel":"null"}],"uniqueKey":"workflow.candidate","typeLabel":"object | null"},"requested":{"oneOf":[{"type":"object","description":"Only on a creation that has not built (current is null and there is no head_revision_id): what it asked for, so it can be sent again with PATCH /tools/{id}. An app tool carries metadata_id, connection_id, toolkit, action, version, fixed_inputs and timeout_ms; a transfer tool carries destination, announce_transfer and announce_message. An http tool carries everything but its credentials: url_display (the address without its query, fragment or user:password), url_redacted (true when one of those was taken off, so the full address has to be sent again), method, effect, timeout_ms, include_call_context, input_schema, output_schema and configured_header_names (names only). Header values are never echoed; send them again with the retry.","uniqueKey":"workflow.requested.oneOf.0","typeLabel":"object"},{"type":"null","description":"Only on a creation that has not built (current is null and there is no head_revision_id): what it asked for, so it can be sent again with PATCH /tools/{id}. An app tool carries metadata_id, connection_id, toolkit, action, version, fixed_inputs and timeout_ms; a transfer tool carries destination, announce_transfer and announce_message. An http tool carries everything but its credentials: url_display (the address without its query, fragment or user:password), url_redacted (true when one of those was taken off, so the full address has to be sent again), method, effect, timeout_ms, include_call_context, input_schema, output_schema and configured_header_names (names only). Header values are never echoed; send them again with the retry.","uniqueKey":"workflow.requested.oneOf.1","typeLabel":"null"}],"uniqueKey":"workflow.requested","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"workflow","typeLabel":"object"},"description":{"oneOf":[{"type":"string","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"is_active":{"type":"boolean","uniqueKey":"is_active","typeLabel":"boolean"},"created_at":{"type":"string","format":"date-time","description":"When the tool was made. On a creation that has not built, when it was first asked for; a retry does not move it.","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"integration":{"type":"object","readOnly":true,"required":["connection_id","action"],"description":"Present only on a tool an integration runs one of its actions through: the tool made for a connected account's action when that account is given to an agent (POST /agents/{id}/integrations). It names the account and the action. Such a tool belongs to the integration and is shared by every agent the account is given to: PATCH /tools/{id} answers 409 INTEGRATION_ACTION_MANAGED, DELETE /tools/{id} does too while any agent still uses it, and GET /tools leaves it out. Change which actions an agent uses with PATCH /agents/{id}/integrations/{integration_id}.","properties":{"connection_id":{"type":"string","format":"uuid","description":"The connected account (GET /tool-connections/{id}).","isRequired":true,"uniqueKey":"integration.connection_id","typeLabel":"string\u003cuuid>"},"action":{"type":"string","description":"The action the tool runs, as GET /tool-connections/{id}/actions lists it.","example":"GOOGLECALENDAR_FIND_FREE_SLOTS","isRequired":true,"uniqueKey":"integration.action","typeLabel":"string"}},"uniqueKey":"integration","typeLabel":"object"},"warnings":{"type":"array","description":"Present only on a create that went through with something worth saying about it - today, only that another tool in this workspace already carries the same name. Never a refusal: the tool in the same response exists. Absent when there is nothing to say.","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["tool_name_in_use"],"isRequired":true,"uniqueKey":"warnings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].message","typeLabel":"string"},"tools":{"type":"array","description":"The tools already holding the name, at most twenty.","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"warnings.items.[INDEX].tools.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","uniqueKey":"warnings.items.[INDEX].tools.items.[INDEX].name","typeLabel":"string"}},"uniqueKey":"warnings.items.[INDEX].tools.items.[INDEX]","typeLabel":"object"},"uniqueKey":"warnings.items.[INDEX].tools","typeLabel":"object[]"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"warnings","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","workflow_version":"workflow_v1","workflow":{"kind":"http","status":"accepted","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","current":{"revision_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","revision":2,"kind":"http","name":"\u003cstring>","description":"\u003cstring>","input_schema":{},"output_schema":{},"allowed_phases":["before"],"allowed_channels":["phone"],"timeout_ms":123,"effect":"read","configuration":{"method":"\u003cstring>","url_display":"\u003cstring>","url_redacted":true,"url_replacement_required":true,"configured_query_names":["\u003cstring>"],"configured_header_names":["\u003cstring>"],"empty_header_names":["\u003cstring>"],"empty_query_names":["\u003cstring>"]},"metadata_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","connection_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","connection_label":"\u003cstring>","connection_ready":true,"toolkit":"\u003cstring>","action":"\u003cstring>","version":"\u003cstring>","fixed_inputs":{},"destination":"\u003cstring>","announce_transfer":true,"announce_message":"\u003cstring>","transfer_method":"pbx_feature_code","pbx_feature_code":"\u003cstring>","pbx_feature_code_hangup_after_secs":5},"error_code":"\u003cstring>","head_revision_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","head_generation":123,"candidate":{"revision_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","revision":2,"kind":"http","name":"\u003cstring>","description":"\u003cstring>","input_schema":{},"output_schema":{},"allowed_phases":["before"],"allowed_channels":["phone"],"timeout_ms":123,"effect":"read","configuration":{"method":"\u003cstring>","url_display":"\u003cstring>","url_redacted":true,"url_replacement_required":true,"configured_query_names":["\u003cstring>"],"configured_header_names":["\u003cstring>"],"empty_header_names":["\u003cstring>"],"empty_query_names":["\u003cstring>"]},"metadata_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","connection_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","connection_label":"\u003cstring>","connection_ready":true,"toolkit":"\u003cstring>","action":"\u003cstring>","version":"\u003cstring>","fixed_inputs":{},"destination":"\u003cstring>","announce_transfer":true,"announce_message":"\u003cstring>","transfer_method":"pbx_feature_code","pbx_feature_code":"\u003cstring>","pbx_feature_code_hangup_after_secs":5},"requested":{}},"description":"\u003cstring>","is_active":true,"created_at":"2023-11-07T05:31:56Z","integration":{"connection_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","action":"GOOGLECALENDAR_FIND_FREE_SLOTS"},"warnings":[{"code":"tool_name_in_use","message":"\u003cstring>","tools":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>"}]}]}}},"exampleType":"generated"}},"exampleType":"generated"},"27ccecb9-d59b-42da-9454-f8d76e21bbd6":{"description":"WORKFLOW_TOOL_IDEMPOTENCY_REQUIRED - a missing or invalid Idempotency-Key. Or WORKFLOW_TOOL_REFERENCE_INVALID - an app tool whose metadata_id names no action, or whose connection_id names no account in this workspace; issues[] carries one entry per field at fault (/workflow/metadata_id, /workflow/connection_id) and nothing is written.","content":{"application/json":{"schema":{"type":"object","description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","required":["code","error"],"properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","items":{"type":"object","required":["code","path","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","maxLength":100,"isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"path":{"type":"string","maxLength":1000,"isRequired":true,"uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"},"message":{"type":"string","maxLength":2000,"isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"node_id":{"type":"string","maxLength":64,"description":"The step the issue belongs to - a conversation step, a before-call step, a follow-up or a step inside a sequence, by its `id`. An issue about a binding names the first step that runs or offers it; absent only when no single step is concerned (a binding no step uses, a schema).","uniqueKey":"issues.items.[INDEX].node_id","typeLabel":"string"},"label":{"type":"string","maxLength":200,"description":"That step's label, as the workflow document spells it - on every code. Present only with `node_id`.","uniqueKey":"issues.items.[INDEX].label","typeLabel":"string"},"tool_name":{"type":"string","maxLength":200,"description":"On an issue about a binding, the name of the tool it runs. `label` is never the tool's name.","uniqueKey":"issues.items.[INDEX].tool_name","typeLabel":"string"},"field":{"type":"string","maxLength":200,"description":"On an issue about one input of a binding (`/bindings/{n}/inputs/{field}`), that input's name.","uniqueKey":"issues.items.[INDEX].field","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","maxItems":100,"uniqueKey":"issues","typeLabel":"object[]"},"warnings":{"type":"array","description":"On WORKFLOW_VALIDATION_FAILED from Check or publish, the advisories beside the issues, in the shape of WorkflowValidation's warnings - strict_off_guidance when strict_mode is off, and every advisory about a binding or an input. The compiler's own graph advisories (during_output_advisory, sequence_branch_advisory, before_reference_missing_fallback, override_needs_strict, after_ending_coverage, after_any_end_waits, before_budget_inbound) arrive once the document compiles.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","maxLength":1000,"uniqueKey":"warnings.items.[INDEX].path","typeLabel":"string"},"node_id":{"type":"string","maxLength":64,"uniqueKey":"warnings.items.[INDEX].node_id","typeLabel":"string"},"label":{"type":"string","maxLength":200,"description":"The step's label. Present only with node_id.","uniqueKey":"warnings.items.[INDEX].label","typeLabel":"string"},"tool_name":{"type":"string","maxLength":200,"uniqueKey":"warnings.items.[INDEX].tool_name","typeLabel":"string"},"field":{"type":"string","maxLength":200,"uniqueKey":"warnings.items.[INDEX].field","typeLabel":"string"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"warnings","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","path":"\u003cstring>","message":"\u003cstring>","node_id":"\u003cstring>","label":"\u003cstring>","tool_name":"\u003cstring>","field":"\u003cstring>"}],"warnings":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>","node_id":"\u003cstring>","label":"\u003cstring>","tool_name":"\u003cstring>","field":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"9778aa2f-4cca-4725-a7f1-d89eadb3f866":{"description":"Original author is no longer authorized, or WORKSPACE_MISMATCH — `x-company-id` named a workspace other than the one this API key belongs to.","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"6bdc4d0e-a2a9-4574-8fb2-44e92d05e61e":{"description":"The accepted key belongs to a different body. Deliberately start a new change; do not retry modified content with this key.","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"3cf410dd-fe1b-4e32-adeb-6496ac3afeb7":{"description":"Invalid request or durable materialization failure. A body Yappr can read but not accept is WORKFLOW_TOOL_REQUEST_INVALID with an issues[] entry per field at fault, each carrying a JSON pointer such as /workflow/configuration/url or /workflow/effect, and no tool is created. Every field at fault is named in one answer, and an HTTP configuration.url on localhost, a private network, a link-local, a cloud-metadata or another reserved address is refused the same way with issues[].code url_not_public (so is a hostname whose DNS answers include one, such as 127.0.0.1.nip.io), and a host written as a shortened, octal or hexadecimal number (1.2.3) with url_host_form. What can only be found while materializing - an ineligible action, an account that exists but is not connected, a schema the builder rejects - answers WORKFLOW_TOOL_NOT_BUILT: the safe WorkflowTool at workflow.status=failed with its workflow.error_code, plus error (what to do) and issues[0] naming the field (/workflow/connection_id, /workflow/fixed_inputs, /workflow/metadata_id or /workflow), whose code is that same error_code. Such a tool is fixed with PATCH /tools/{id} (send the whole tool again, no expected head) or removed with DELETE /tools/{id}.","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"29a41e70-b4f7-425a-bf77-fc5fbd3b577d":{"description":"Storage or control unavailable. Preserve the same key and unchanged body when retrying.","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"2767439e-f0c6-4cd4-a450-ba11a6ab8311":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"Your Yappr API key (e.g. `ypr_live_...`). Generate one in the dashboard under **Settings → API Keys**. No key is `401 MISSING_KEY`; a key that is not one of ours, or is revoked, is `401 INVALID_KEY`; an expired one is `401 EXPIRED_KEY`. A valid key without the scope an operation needs is `403 INSUFFICIENT_SCOPE` on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's `RATE_LIMIT` asks for what is left of the minute, a route's daily cap (`RATE_LIMITED`) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is `404 ROUTE_NOT_FOUND`, and a method a served path does not take is `405 METHOD_NOT_ALLOWED` with an `Allow` header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (`POST /calls/` is `POST /calls`) and refused where it can (`GET /calls/`). A doubled slash inside a path is merged into one before the request reaches the API (`GET //calls` is `GET /calls`).","scopes":[],"schemeName":"apiKey"}}},"servers":{"dc0c5f7d-c0c3-40b9-9c53-ce2239f5b67d":{"url":"https://api.goyappr.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"Your Yappr API key (e.g. `ypr_live_...`). Generate one in the dashboard under **Settings → API Keys**. No key is `401 MISSING_KEY`; a key that is not one of ours, or is revoked, is `401 INVALID_KEY`; an expired one is `401 EXPIRED_KEY`. A valid key without the scope an operation needs is `403 INSUFFICIENT_SCOPE` on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's `RATE_LIMIT` asks for what is left of the minute, a route's daily cap (`RATE_LIMITED`) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is `404 ROUTE_NOT_FOUND`, and a method a served path does not take is `405 METHOD_NOT_ALLOWED` with an `Allow` header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (`POST /calls/` is `POST /calls`) and refused where it can (`GET /calls/`). A doubled slash inside a path is merged into one before the request reaches the API (`GET //calls` is `GET /calls`).","scopes":[],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your Yappr API key (e.g. `ypr_live_...`). Generate one in the dashboard under **Settings → API Keys**. No key is `401 MISSING_KEY`; a key that is not one of ours, or is revoked, is `401 INVALID_KEY`; an expired one is `401 EXPIRED_KEY`. A valid key without the scope an operation needs is `403 INSUFFICIENT_SCOPE` on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's `RATE_LIMIT` asks for what is left of the minute, a route's daily cap (`RATE_LIMITED`) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is `404 ROUTE_NOT_FOUND`, and a method a served path does not take is `405 METHOD_NOT_ALLOWED` with an `Allow` header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (`POST /calls/` is `POST /calls`) and refused where it can (`GET /calls/`). A doubled slash inside a path is merged into one before the request reaches the API (`GET //calls` is `GET /calls`).","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"yappr","siteName":"Yappr","title":"Create Tool - Yappr","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T15:44:18.531Z","originalFileLocation":"api-reference/tools/create.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Requires tools:create. Supply workflow for the canonical HTTP/app/transfer tool variant and an Idempotency-Key header. Identity and revision numbers are server-owned. Creates never execute the action. A 202 response is durable acceptance: poll GET /tools/{id} until current or a terminal failure. Retrying the unchanged body/key never creates a second tool; changing the accepted body conflicts. Legacy type/config bodies and their camelCase normalization - of the tool name as well as its payload parameter names - remain a temporary migration boundary only; a body without type is read as the workflow variant, so what a tool does always belongs under workflow.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Yappr\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Tool - Yappr\">\u003cmeta data-mint-head property=\"og:description\" content=\"Requires tools:create. Supply workflow for the canonical HTTP/app/transfer tool variant and an Idempotency-Key header. Identity and revision numbers are server-owned. Creates never execute the action. A 202 response is durable acceptance: poll GET /tools/{id} until current or a terminal failure. Retrying the unchanged body/key never creates a second tool; changing the accepted body conflicts. Legacy type/config bodies and their camelCase normalization - of the tool name as well as its payload parameter names - remain a temporary migration boundary only; a body without type is read as the workflow variant, so what a tool does always belongs under workflow.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Yappr\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.goyappr.com/api-reference/tools/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://yappr.mintlify.site/_mintlify/api/og/v2?division=Tools\u0026amp;title=Create+Tool\u0026amp;description=Requires+tools%3Acreate.+Supply+workflow+for+the+canonical+HTTP%2Fapp%2Ftransfer+tool+variant+and+an+Idempotency-Key+header.+Identity+and+revision+numbers+are+server-\u0026amp;theme=1423bf5e3b005ceb227321bc\u0026amp;signature=fab570b7e0012fbce353b32145a5e02a58878409dcf7f8dd70c907f1e89cc5df\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Tool - Yappr\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Requires tools:create. Supply workflow for the canonical HTTP/app/transfer tool variant and an Idempotency-Key header. Identity and revision numbers are server-owned. Creates never execute the action. A 202 response is durable acceptance: poll GET /tools/{id} until current or a terminal failure. Retrying the unchanged body/key never creates a second tool; changing the accepted body conflicts. Legacy type/config bodies and their camelCase normalization - of the tool name as well as its payload parameter names - remain a temporary migration boundary only; a body without type is read as the workflow variant, so what a tool does always belongs under workflow.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://yappr.mintlify.site/_mintlify/api/og/v2?division=Tools\u0026amp;title=Create+Tool\u0026amp;description=Requires+tools%3Acreate.+Supply+workflow+for+the+canonical+HTTP%2Fapp%2Ftransfer+tool+variant+and+an+Idempotency-Key+header.+Identity+and+revision+numbers+are+server-\u0026amp;theme=1423bf5e3b005ceb227321bc\u0026amp;signature=fab570b7e0012fbce353b32145a5e02a58878409dcf7f8dd70c907f1e89cc5df\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Yappr\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.goyappr.com/api-reference/tools/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/tools/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.goyappr.com/#organization\",\"name\":\"Yappr\",\"url\":\"https://docs.goyappr.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/yappr/E1AQ46GZ-5iPcyPp/logo/light.svg?fit=max\u0026auto=format\u0026n=E1AQ46GZ-5iPcyPp\u0026q=85\u0026s=a117ff3aa08c2017e8d58b0da5be882f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.goyappr.com#website\",\"name\":\"Yappr\",\"url\":\"https://docs.goyappr.com\",\"publisher\":{\"@id\":\"https://docs.goyappr.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.goyappr.com/api-reference/tools/create#webpage\",\"url\":\"https://docs.goyappr.com/api-reference/tools/create\",\"name\":\"Create Tool\",\"description\":\"Requires tools:create. Supply workflow for the canonical HTTP/app/transfer tool variant and an Idempotency-Key header. Identity and revision numbers are server-owned. Creates never execute the action. A 202 response is durable acceptance: poll GET /tools/{id} until current or a terminal failure. Retrying the unchanged body/key never creates a second tool; changing the accepted body conflicts. Legacy type/config bodies and their camelCase normalization - of the tool name as well as its payload parameter names - remain a temporary migration boundary only; a body without type is read as the workflow variant, so what a tool does always belongs under workflow.\",\"dateModified\":\"2026-11-12T15:44:18.531Z\",\"isPartOf\":{\"@id\":\"https://docs.goyappr.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.goyappr.com/api-reference/tools/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.goyappr.com/api-reference/tools/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tools \u0026 integrations\",\"item\":\"https://docs.goyappr.com/api-reference/tool-connections/apps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tools\",\"item\":\"https://docs.goyappr.com/api-reference/tools/list\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create Tool\",\"item\":\"https://docs.goyappr.com/api-reference/tools/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.goyappr.com/api-reference/tools/create#apireference\",\"headline\":\"Create Tool\",\"name\":\"Create Tool\",\"description\":\"Requires tools:create. Supply workflow for the canonical HTTP/app/transfer tool variant and an Idempotency-Key header. Identity and revision numbers are server-owned. Creates never execute the action. A 202 response is durable acceptance: poll GET /tools/{id} until current or a terminal failure. Retrying the unchanged body/key never creates a second tool; changing the accepted body conflicts. Legacy type/config bodies and their camelCase normalization - of the tool name as well as its payload parameter names - remain a temporary migration boundary only; a body without type is read as the workflow variant, so what a tool does always belongs under workflow.\",\"url\":\"https://docs.goyappr.com/api-reference/tools/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.goyappr.com/api-reference/tools/create#webpage\"},\"dateModified\":\"2026-11-12T15:44:18.531Z\",\"publisher\":{\"@id\":\"https://docs.goyappr.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.goyappr.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Yappr\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Yappr\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/tools/create.md","siteName":"Yappr","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"},{"title":"Connect through MCP","href":"/api-reference/mcp/connect"},{"title":"Error Codes","href":"/api-reference/errors"},{"title":"Report an issue","openapi":"POST /report-issue","href":"/api-reference/report-issue"}]},{"group":"Billing","pages":[{"title":"Get Billing Status","openapi":"GET /billing","href":"/api-reference/billing/get-status"},{"title":"Get Billing Rates","openapi":"GET /billing/rates","href":"/api-reference/billing/rates"},{"title":"Set Spending Limit","openapi":"PATCH /billing","href":"/api-reference/billing/spending-limit"},{"title":"Setup Payment Method","openapi":"POST /billing/setup","href":"/api-reference/billing/setup-payment"},{"title":"Top Up Credits","openapi":"POST /billing/topup","href":"/api-reference/billing/topup"},{"title":"Billing Consumption","openapi":"GET /billing/consumption","href":"/api-reference/billing/consumption"},{"title":"Billing Transactions","openapi":"GET /billing/transactions","href":"/api-reference/billing/transactions"},{"title":"Get Billing Transaction","openapi":"GET /billing/transactions/{id}","href":"/api-reference/billing/transaction"},{"title":"Get Billing Details","openapi":"GET /billing/details","href":"/api-reference/billing/details"},{"title":"Update Billing Details","openapi":"PATCH /billing/details","href":"/api-reference/billing/update-details"},{"title":"List Invoices","openapi":"GET /billing/invoices","href":"/api-reference/billing/invoices"}]},{"group":"Agents","pages":[{"title":"List Agents","openapi":"GET /agents","href":"/api-reference/agents/list"},{"title":"Create Agent","openapi":"POST /agents","href":"/api-reference/agents/create"},{"title":"Duplicate Agent","openapi":"POST /agents/{id}/duplicate","href":"/api-reference/agents/duplicate"},{"title":"Test an Agent by Phone","openapi":"POST /agents/{id}/test-call","href":"/api-reference/agents/test-call"},{"title":"Which Line Rings a Test Call","openapi":"GET /agents/{id}/test-call","href":"/api-reference/agents/test-call-caller"},{"title":"Get Agent","openapi":"GET /agents/{id}","href":"/api-reference/agents/get"},{"title":"Update Agent","openapi":"PATCH /agents/{id}","href":"/api-reference/agents/update"},{"title":"Read workflow agent settings","openapi":"GET /agents/{id}/settings","href":"/api-reference/agents/settings"},{"title":"Idle reminders","href":"/api-reference/agents/idle-reminders"},{"title":"List an agent's tools \u0026 integrations","openapi":"GET /agents/{id}/tools-and-integrations","href":"/api-reference/agents/tools-and-integrations"},{"title":"List an agent's integrations","openapi":"GET /agents/{id}/integrations","href":"/api-reference/agents/integrations-list"},{"title":"Give an agent a connected app","openapi":"POST /agents/{id}/integrations","href":"/api-reference/agents/integrations-add"},{"title":"Change an integration's actions","openapi":"PATCH /agents/{id}/integrations/{integration_id}","href":"/api-reference/agents/integrations-update"},{"title":"Stop an agent using an app","openapi":"DELETE /agents/{id}/integrations/{integration_id}","href":"/api-reference/agents/integrations-remove"},{"title":"Dry-run Extraction","openapi":"POST /agents/{id}/extraction/dry-run","href":"/api-reference/agents/extraction-dry-run"},{"title":"Remove Agent","openapi":"DELETE /agents/{id}","href":"/api-reference/agents/delete"},{"title":"Models","href":"/api-reference/agents/models"},{"title":"Languages","href":"/api-reference/agents/languages"},{"title":"Voices","href":"/api-reference/agents/voices"},{"title":"Flow Config Schema","href":"/api-reference/agents/flow-config-schema"}]},{"group":"Flow Agents","pages":[{"title":"List Flow Versions","openapi":"GET /agents/{id}/flow/versions","href":"/api-reference/flows/list-versions"},{"title":"Restore Flow Version","openapi":"POST /agents/{id}/flow/restore","href":"/api-reference/flows/restore-version"},{"title":"Test a Flow","openapi":"POST /agents/{id}/flow/test","href":"/api-reference/flows/test"}]},{"group":"Workflows","pages":[{"title":"Read workflow","openapi":"GET /agents/{id}/workflow","href":"/api-reference/workflows/get"},{"title":"Save workflow draft","openapi":"PUT /agents/{id}/workflow","href":"/api-reference/workflows/save"},{"title":"Point bindings at other tools","openapi":"POST /agents/{id}/workflow/rebind","href":"/api-reference/workflows/rebind"},{"title":"Check workflow","openapi":"POST /agents/{id}/workflow/validate","href":"/api-reference/workflows/validate"},{"title":"Publish workflow","openapi":"POST /agents/{id}/workflow/publish","href":"/api-reference/workflows/publish"},{"title":"List workflow versions","openapi":"GET /agents/{id}/workflow/versions","href":"/api-reference/workflows/versions"},{"title":"Get workflow version","openapi":"GET /agents/{id}/workflow/versions/{version_id}","href":"/api-reference/workflows/version"},{"title":"Restore workflow version","openapi":"POST /agents/{id}/workflow/restore","href":"/api-reference/workflows/restore"},{"title":"Teach an agent from a test call","openapi":"POST /agents/{id}/workflow/train","href":"/api-reference/workflows/train"},{"title":"Read workflow tool catalog","openapi":"GET /tools/workflow-catalog","href":"/api-reference/workflows/catalog"},{"title":"Trigger events","href":"/api-reference/workflows/events"},{"title":"Opening line from a Before step","href":"/api-reference/workflows/greeting-from-before"}]},{"group":"Webhooks","pages":[{"title":"Webhooks","href":"/api-reference/webhooks"},{"title":"List Deliveries","openapi":"GET /deliveries","href":"/api-reference/deliveries/list"},{"title":"Get Delivery","openapi":"GET /deliveries/{id}","href":"/api-reference/deliveries/get"},{"title":"Retry Delivery","openapi":"POST /deliveries/{id}/retry","href":"/api-reference/deliveries/retry"}]},{"group":"Tools \u0026 integrations","pages":[{"group":"Connected accounts","pages":[{"title":"List account connection options","openapi":"GET /tool-apps/connection-options","href":"/api-reference/tool-connections/apps"},{"title":"List connected accounts","openapi":"GET /tool-connections","href":"/api-reference/tool-connections/list"},{"title":"Get connection readiness","openapi":"GET /tool-connections/{id}","href":"/api-reference/tool-connections/get"},{"title":"Connect a workspace account","openapi":"POST /tool-connections","href":"/api-reference/tool-connections/connect"},{"title":"Read authorization status","openapi":"GET /tool-connection-auth-attempts/{id}","href":"/api-reference/tool-connections/auth-attempt"},{"title":"Cancel an authorization attempt","openapi":"POST /tool-connections/attempts/{id}/cancel","href":"/api-reference/tool-connections/cancel-attempt"},{"title":"Connect a replacement account","openapi":"POST /tool-connections/{id}/reconnect","href":"/api-reference/tool-connections/reconnect"},{"title":"Disconnect an account","openapi":"DELETE /tool-connections/{id}","href":"/api-reference/tool-connections/disconnect"},{"title":"Rename an account","openapi":"PATCH /tool-connections/{id}","href":"/api-reference/tool-connections/rename"},{"title":"What a connected app can do","openapi":"GET /tool-connections/{id}/actions","href":"/api-reference/tool-connections/actions"},{"title":"Make an app's actions ready","openapi":"POST /tool-connections/{id}/actions/prepare","href":"/api-reference/tool-connections/prepare-actions"},{"title":"List an account's choices for an input","openapi":"GET /tool-connections/{id}/options/{resource}","href":"/api-reference/tool-connections/options"},{"title":"Check that an account works","openapi":"POST /tool-connections/{id}/check","href":"/api-reference/tool-connections/check"},{"title":"The agents using an app","openapi":"GET /tool-connections/{id}/agents","href":"/api-reference/tool-connections/agents"},{"title":"Take an account off the list","openapi":"POST /tool-connections/{id}/remove","href":"/api-reference/tool-connections/remove"},{"title":"Clear the attempts nobody finished","openapi":"POST /tool-connections/cleanup","href":"/api-reference/tool-connections/cleanup"}]},{"group":"Tools","pages":[{"title":"List Tools","openapi":"GET /tools","description":"Requires tools:read. Every row, on both lists, is the same object that tool's own GET /tools/{id} answers with - a workflow-owned tool carries workflow_version and its workflow object, a legacy row carries type and config. Use workflow=true for the canonical revision catalog; its cursor is opaque, signed, and bound to the list it was cut for - workspace, environment, limit, status and name - so a cursor from any other list is refused with 422 WORKFLOW_TOOL_CURSOR_INVALID. Archived workflow tools are omitted from both lists unless status=archived asks for exactly them, each in the short form GET /tools/{id} gives an archived tool (with archived_at). The default mixed list remains a temporary legacy migration boundary.","href":"/api-reference/tools/list"},{"title":"Create Tool","openapi":"POST /tools","href":"/api-reference/tools/create"},{"title":"Discover Apps","openapi":"GET /tool-apps","description":"Requires tools:read. Curated read-only discovery metadata, not account-connection readiness. A toolkit the publisher has not dated is listed with version null instead of failing the page; read toolkit detail before selecting a dated action. Discovery never authenticates accounts or executes actions.","href":"/api-reference/tools/apps"},{"title":"Get App Versions","openapi":"GET /tool-apps/{slug}","href":"/api-reference/tools/app"},{"title":"Discover Versioned Actions","openapi":"GET /tool-apps/{slug}/actions","href":"/api-reference/tools/actions"},{"title":"Get Full Action Schemas","openapi":"GET /tool-apps/{slug}/actions/{action}","href":"/api-reference/tools/action"},{"title":"Get Tool","openapi":"GET /tools/{id}","href":"/api-reference/tools/get"},{"title":"Get Current Tool Schemas","openapi":"GET /tools/{id}/schema","href":"/api-reference/tools/schema"},{"title":"List Tool Bindings","openapi":"GET /tools/{id}/bindings","href":"/api-reference/tools/bindings"},{"title":"List Tool Contract Revisions","openapi":"GET /tools/{id}/workflow-revisions","href":"/api-reference/tools/revisions"},{"title":"Add a Tool Contract Revision","openapi":"POST /tools/{id}/workflow-revisions","href":"/api-reference/tools/create-revision"},{"title":"Update Tool","openapi":"PATCH /tools/{id}","href":"/api-reference/tools/update"},{"title":"Archive Tool","openapi":"DELETE /tools/{id}","href":"/api-reference/tools/delete"},{"title":"Restore Tool","openapi":"POST /tools/{id}/restore","href":"/api-reference/tools/restore"},{"title":"Attach Tool to Agent","openapi":"POST /tools/attach","href":"/api-reference/tools/attach"},{"title":"Detach Tool from Agent","openapi":"POST /tools/detach","href":"/api-reference/tools/detach"},{"title":"Test Saved Tool","openapi":"POST /tools/{id}/test","href":"/api-reference/tools/test"},{"title":"Get Saved Tool Test","openapi":"GET /tools/{id}/tests/{test_id}","href":"/api-reference/tools/test-get"},{"title":"Cancel Tool Test","openapi":"POST /tools/{id}/tests/{test_id}/cancel","href":"/api-reference/tools/test-cancel"}]}]},{"group":"Phone Numbers","pages":[{"title":"List Owned Numbers","openapi":"GET /phone-numbers","href":"/api-reference/phone-numbers/list"},{"title":"Search Available Numbers","openapi":"POST /phone-numbers/search","href":"/api-reference/phone-numbers/search"},{"title":"Purchase Number","openapi":"POST /phone-numbers/purchase","href":"/api-reference/phone-numbers/purchase"},{"title":"Update Number","openapi":"PATCH /phone-numbers/{id}","href":"/api-reference/phone-numbers/update"},{"title":"Configure Number","openapi":"POST /phone-numbers/configure","href":"/api-reference/phone-numbers/configure"},{"title":"Release Number","openapi":"POST /phone-numbers/{id}/release","href":"/api-reference/phone-numbers/release"},{"title":"Keep Number","openapi":"POST /phone-numbers/{id}/keep","href":"/api-reference/phone-numbers/keep"}]},{"group":"SIP Endpoints","pages":[{"title":"SIP Endpoints Status","openapi":"GET /sip-endpoints/status","href":"/api-reference/sip-endpoints/status"},{"title":"List SIP Endpoints","openapi":"GET /sip-endpoints","href":"/api-reference/sip-endpoints/list"},{"title":"Create SIP Endpoint","openapi":"POST /sip-endpoints","href":"/api-reference/sip-endpoints/create"},{"title":"Get SIP Endpoint","openapi":"GET /sip-endpoints/{id}","href":"/api-reference/sip-endpoints/get"},{"title":"Update SIP Endpoint","openapi":"PATCH /sip-endpoints/{id}","href":"/api-reference/sip-endpoints/update"},{"title":"Delete SIP Endpoint","openapi":"DELETE /sip-endpoints/{id}","href":"/api-reference/sip-endpoints/delete"},{"title":"Rotate SIP Endpoint Password","openapi":"POST /sip-endpoints/{id}/rotate-password","href":"/api-reference/sip-endpoints/rotate-password"}]},{"group":"Carrier accounts","pages":[{"title":"Carrier Accounts Status","openapi":"GET /carrier-accounts/status","href":"/api-reference/carrier-accounts/status"},{"title":"List Carrier Accounts","openapi":"GET /carrier-accounts","href":"/api-reference/carrier-accounts/list"},{"title":"Connect a Telnyx Account","openapi":"POST /carrier-accounts","href":"/api-reference/carrier-accounts/create"},{"title":"Get Carrier Account","openapi":"GET /carrier-accounts/{id}","href":"/api-reference/carrier-accounts/get"},{"title":"Update Carrier Account","openapi":"PATCH /carrier-accounts/{id}","href":"/api-reference/carrier-accounts/update"},{"title":"Disconnect Carrier Account","openapi":"DELETE /carrier-accounts/{id}","href":"/api-reference/carrier-accounts/delete"},{"title":"Choose the Call Control App","openapi":"POST /carrier-accounts/{id}/connection","href":"/api-reference/carrier-accounts/connection"},{"title":"Test Carrier Account","openapi":"POST /carrier-accounts/{id}/test","href":"/api-reference/carrier-accounts/test"},{"title":"Turn a Paused Account Back On","openapi":"POST /carrier-accounts/{id}/reactivate","href":"/api-reference/carrier-accounts/reactivate"},{"title":"Sync Numbers","openapi":"POST /carrier-accounts/{id}/sync","href":"/api-reference/carrier-accounts/sync"},{"title":"Add Number to Carrier Account","openapi":"POST /carrier-accounts/{id}/numbers","href":"/api-reference/carrier-accounts/add-number"},{"title":"Answer a Number's Calls in Yappr","openapi":"POST /carrier-accounts/{id}/numbers/{phone_number_id}/configure","href":"/api-reference/carrier-accounts/configure-number"},{"title":"Stop Answering a Number's Calls in Yappr","openapi":"DELETE /carrier-accounts/{id}/numbers/{phone_number_id}/configure","href":"/api-reference/carrier-accounts/restore-number"},{"title":"Remove Number from This Workspace","openapi":"DELETE /carrier-accounts/{id}/numbers/{phone_number_id}","href":"/api-reference/carrier-accounts/remove-number"}]},{"group":"Calls","pages":[{"title":"Create Outbound Call","openapi":"POST /calls","href":"/api-reference/calls/create"},{"title":"List Calls","openapi":"GET /calls","href":"/api-reference/calls/list"},{"title":"Export Calls","openapi":"GET /calls/export","href":"/api-reference/calls/export"},{"title":"Get Call","openapi":"GET /calls/{id}","href":"/api-reference/calls/get"},{"title":"End an Unopened Browser Session","openapi":"POST /calls/{id}/end","href":"/api-reference/calls/end"},{"title":"Get Call Recording","openapi":"GET /calls/{id}/recording","href":"/api-reference/calls/recording"},{"title":"Revoke Recording Links","openapi":"POST /calls/{id}/recording/revoke","href":"/api-reference/calls/recording-revoke"},{"title":"Create Web Call Request","openapi":"POST /call-requests","href":"/api-reference/calls/request-create"},{"title":"Get Call Request","openapi":"GET /call-requests/{id}","href":"/api-reference/calls/request-get"},{"title":"Start Web Call Request","openapi":"POST /call-requests/{id}/start","href":"/api-reference/calls/request-start"},{"title":"Cancel Call Request","openapi":"POST /call-requests/{id}/cancel","href":"/api-reference/calls/request-cancel"}]},{"group":"Browser calls","pages":[{"title":"TURN Credentials","openapi":"POST /turn-credentials","href":"/api-reference/web-call/turn-credentials"},{"title":"Connect a Browser Call","openapi":"POST /web-call","href":"/api-reference/web-call/offer"},{"title":"Cancel a Browser Session","openapi":"POST /web-call/cancel","href":"/api-reference/web-call/cancel"},{"title":"Create Browser Call Request","openapi":"POST /web-call/call-requests","href":"/api-reference/web-call/request-create"},{"title":"Poll Browser Call Request","openapi":"GET /web-call/call-requests/{id}","href":"/api-reference/web-call/request-get"},{"title":"Start Browser Call Request","openapi":"POST /web-call/call-requests/{id}/start","href":"/api-reference/web-call/request-start"},{"title":"Cancel Browser Call Request","openapi":"POST /web-call/call-requests/{id}/cancel","href":"/api-reference/web-call/request-cancel"}]},{"group":"Do Not Call","pages":[{"title":"List DNC entries","openapi":"GET /do-not-call","href":"/api-reference/do-not-call/list"},{"title":"Add to DNC list","openapi":"POST /do-not-call","href":"/api-reference/do-not-call/add"},{"title":"Get DNC entry","openapi":"GET /do-not-call/{id}","href":"/api-reference/do-not-call/get"},{"title":"Update DNC entry","openapi":"PATCH /do-not-call/{id}","href":"/api-reference/do-not-call/update"},{"title":"Remove from DNC list","openapi":"DELETE /do-not-call/{id}","href":"/api-reference/do-not-call/delete"}]},{"group":"API Keys","pages":[{"title":"List API keys","openapi":"GET /api-keys","href":"/api-reference/api-keys/list"},{"title":"Issue an API key","openapi":"POST /api-keys","href":"/api-reference/api-keys/create"},{"title":"Get an API key","openapi":"GET /api-keys/{id}","href":"/api-reference/api-keys/get"},{"title":"Revoke an API key","openapi":"DELETE /api-keys/{id}","href":"/api-reference/api-keys/delete"}]},{"group":"Call Windows","pages":[{"title":"Get call time windows","openapi":"GET /call-windows","href":"/api-reference/call-windows/get"},{"title":"Update call time windows","openapi":"PUT /call-windows","href":"/api-reference/call-windows/update"}]},{"group":"Dispositions","pages":[{"title":"List Dispositions","openapi":"GET /dispositions","href":"/api-reference/dispositions/list"},{"title":"Create Disposition","openapi":"POST /dispositions","href":"/api-reference/dispositions/create"},{"title":"Get Disposition","openapi":"GET /dispositions/{id}","href":"/api-reference/dispositions/get"},{"title":"Update Disposition","openapi":"PATCH /dispositions/{id}","href":"/api-reference/dispositions/update"},{"title":"Delete Disposition","openapi":"DELETE /dispositions/{id}","href":"/api-reference/dispositions/delete"}]},{"group":"Leads","pages":[{"title":"List Leads","openapi":"GET /leads","href":"/api-reference/leads/list"},{"title":"Create Lead","openapi":"POST /leads","href":"/api-reference/leads/create"},{"title":"Get Lead","openapi":"GET /leads/{id}","href":"/api-reference/leads/get"},{"title":"Update Lead","openapi":"PATCH /leads/{id}","href":"/api-reference/leads/update"},{"title":"Delete Lead","openapi":"DELETE /leads/{id}","href":"/api-reference/leads/delete"}]},{"group":"Lead Tags","pages":[{"title":"List Lead Tags","openapi":"GET /lead-tags","href":"/api-reference/lead-tags/list"},{"title":"Create Lead Tag","openapi":"POST /lead-tags","href":"/api-reference/lead-tags/create"},{"title":"Get Lead Tag","openapi":"GET /lead-tags/{id}","href":"/api-reference/lead-tags/get"},{"title":"Update Lead Tag","openapi":"PATCH /lead-tags/{id}","href":"/api-reference/lead-tags/update"},{"title":"Delete Lead Tag","openapi":"DELETE /lead-tags/{id}","href":"/api-reference/lead-tags/delete"}]},{"group":"Campaigns","pages":[{"title":"List campaigns","openapi":"GET /campaigns","href":"/api-reference/campaigns/list"},{"title":"Suggested campaign settings","openapi":"GET /campaigns/defaults","href":"/api-reference/campaigns/defaults"},{"title":"Create a campaign","openapi":"POST /campaigns","href":"/api-reference/campaigns/create"},{"title":"Get a campaign","openapi":"GET /campaigns/{id}","href":"/api-reference/campaigns/get"},{"title":"Update a campaign","openapi":"PATCH /campaigns/{id}","href":"/api-reference/campaigns/update"},{"title":"Archive a campaign","openapi":"DELETE /campaigns/{id}","href":"/api-reference/campaigns/archive"},{"title":"Restore a campaign","openapi":"POST /campaigns/{id}/restore","href":"/api-reference/campaigns/restore"},{"title":"Launch a campaign","openapi":"POST /campaigns/{id}/launch","href":"/api-reference/campaigns/launch"},{"title":"Pause a campaign","openapi":"POST /campaigns/{id}/pause","href":"/api-reference/campaigns/pause"},{"title":"Resume a campaign","openapi":"POST /campaigns/{id}/resume","href":"/api-reference/campaigns/resume"},{"title":"Stop a campaign","openapi":"POST /campaigns/{id}/stop","href":"/api-reference/campaigns/stop"},{"title":"Campaign stats","openapi":"GET /campaigns/{id}/stats","href":"/api-reference/campaigns/stats"},{"group":"Contacts","pages":[{"title":"Enroll contacts","openapi":"POST /campaigns/{id}/leads","href":"/api-reference/campaigns/enroll"},{"title":"List enrolled contacts","openapi":"GET /campaigns/{id}/leads","href":"/api-reference/campaigns/list-leads"},{"title":"Exclude a contact","openapi":"DELETE /campaigns/{id}/leads/{lead_id}","href":"/api-reference/campaigns/exclude"}]}]},{"group":"Shared Links","pages":[{"title":"List Shared Links","openapi":"GET /shared-links","href":"/api-reference/shared-links/list"},{"title":"Create Shared Link","openapi":"POST /shared-links","href":"/api-reference/shared-links/create"},{"title":"Get Shared Link","openapi":"GET /shared-links/{id}","href":"/api-reference/shared-links/get"},{"title":"Revoke Shared Link","openapi":"PATCH /shared-links/{id}","href":"/api-reference/shared-links/update"}]},{"group":"Affiliates","pages":[{"title":"Affiliate stats","openapi":"GET /affiliates/stats","href":"/api-reference/affiliates/stats"},{"title":"List sub-affiliates","openapi":"GET /affiliates/downline","href":"/api-reference/affiliates/downline"}]},{"group":"Agent Eval","pages":[{"group":"Personas","pages":[{"title":"List Personas","openapi":"GET /agent-eval/personas","href":"/api-reference/agent-eval/personas/list"},{"title":"Create Persona","openapi":"POST /agent-eval/personas","href":"/api-reference/agent-eval/personas/create"},{"title":"Get Persona","openapi":"GET /agent-eval/personas/{id}","href":"/api-reference/agent-eval/personas/get"},{"title":"Update Persona","openapi":"PATCH /agent-eval/personas/{id}","href":"/api-reference/agent-eval/personas/update"},{"title":"Delete Persona","openapi":"DELETE /agent-eval/personas/{id}","href":"/api-reference/agent-eval/personas/delete"}]},{"group":"Cases","pages":[{"title":"List Cases","openapi":"GET /agent-eval/cases","href":"/api-reference/agent-eval/cases/list"},{"title":"Create Case","openapi":"POST /agent-eval/cases","href":"/api-reference/agent-eval/cases/create"},{"title":"Get Case","openapi":"GET /agent-eval/cases/{id}","href":"/api-reference/agent-eval/cases/get"},{"title":"Update Case","openapi":"PATCH /agent-eval/cases/{id}","href":"/api-reference/agent-eval/cases/update"},{"title":"Delete Case","openapi":"DELETE /agent-eval/cases/{id}","href":"/api-reference/agent-eval/cases/delete"},{"title":"Run a Case","openapi":"POST /agent-eval/cases/{case_id}/run","href":"/api-reference/agent-eval/cases/run"}]},{"group":"Suites","pages":[{"title":"List Suites","openapi":"GET /agent-eval/suites","href":"/api-reference/agent-eval/suites/list"},{"title":"Create Suite","openapi":"POST /agent-eval/suites","href":"/api-reference/agent-eval/suites/create"},{"title":"Get Suite","openapi":"GET /agent-eval/suites/{id}","href":"/api-reference/agent-eval/suites/get"},{"title":"Update Suite","openapi":"PATCH /agent-eval/suites/{id}","href":"/api-reference/agent-eval/suites/update"},{"title":"Delete Suite","openapi":"DELETE /agent-eval/suites/{id}","href":"/api-reference/agent-eval/suites/delete"},{"title":"Run a Suite","openapi":"POST /agent-eval/suites/{id}/run","href":"/api-reference/agent-eval/suites/run"},{"title":"List Suite Executions","openapi":"GET /agent-eval/suites/{id}/runs","href":"/api-reference/agent-eval/suites/runs/list"},{"title":"Get Suite Execution","openapi":"GET /agent-eval/suites/{id}/runs/{suite_run_id}","href":"/api-reference/agent-eval/suites/runs/get"}]},{"group":"Runs","pages":[{"title":"List Runs","openapi":"GET /agent-eval/runs","href":"/api-reference/agent-eval/runs/list"},{"title":"Get Run","openapi":"GET /agent-eval/runs/{id}","href":"/api-reference/agent-eval/runs/get"},{"title":"Get Run Turns","openapi":"GET /agent-eval/runs/{id}/turns","href":"/api-reference/agent-eval/runs/turns"},{"title":"Get Run Evaluation","openapi":"GET /agent-eval/runs/{id}/evaluation","href":"/api-reference/agent-eval/runs/evaluation"},{"title":"Cancel a Run","openapi":"POST /agent-eval/runs/{id}/cancel","href":"/api-reference/agent-eval/runs/cancel"}]}]}]}]},"basePath":"","title":"Create Tool - Yappr","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","SectionHeading-B08KBUKT.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}