> For the complete documentation index, see [llms.txt](https://docs.concurrence.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.concurrence.com/api-reference/readme/platform/integrations.md).

# Integrations

## List integrations

> List every integration for a workspace. Optionally filter by \`enabled\` or \`search\` (name/display\_name/id ilike). Sort via repeated \`sort\_by\` query params; each entry is \`+field\` or \`-field\` (allowed fields: name, created\_at, updated\_at). Default: \`-created\_at\`. Cursor opaque — round-trip \`continuation\_token\` unchanged with the same \`sort\_by\`. Requires \`Integration.view\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Integrations"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"SearchString":{"type":"string","maxLength":200,"minLength":1},"src__routes__integrations__list_integrations__Response":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RestIntegrationResponse"},"type":"array","title":"Items","description":"The integrations matching the request filters."},"has_more":{"type":"boolean","title":"Has More","description":"Whether there are more integrations to retrieve."},"continuation_token":{"title":"Continuation Token","description":"Opaque token for the next page. Null when there are no more results."}},"type":"object","required":["items","has_more"],"title":"Response"},"RestIntegrationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Integration ID."},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id","description":"Workspace ID."},"name":{"type":"string","title":"Name","description":"Slug-like identifier, immutable post-create."},"display_name":{"type":"string","title":"Display Name","description":"Human-readable name."},"enabled":{"type":"boolean","title":"Enabled","description":"Whether the integration is active."},"managed":{"type":"boolean","title":"Managed","description":"Whether the integration is system-managed and protected from workspace CRUD.","default":false},"approval_policy":{"type":"string","enum":["none","writes","all"],"title":"Approval Policy","description":"Human-in-the-loop approval gate. ``none`` = no approval required;\n``writes`` = approval required for an endpoint that may write: one that uses\nPOST, PUT, PATCH or DELETE, or declares ``declarations.writes`` of any kind but\n``none``, whatever its method; ``all`` = approval required for every endpoint.","default":"none"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the integration was created."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"When the integration was last updated."},"kind":{"type":"string","const":"rest","title":"Kind","description":"Discriminator.","default":"rest"},"base_url":{"type":"string","title":"Base Url","description":"Base URL for REST integrations."},"auth":{"anyOf":[{"$ref":"#/components/schemas/StaticHeaderAuthDict"},{"$ref":"#/components/schemas/OAuth2ClientCredentialsAuthDict"},{"$ref":"#/components/schemas/OAuth2JwtBearerAuthDict"},{"$ref":"#/components/schemas/CustomTokenExchangeAuthDict"},{"type":"null"}],"title":"Auth","description":"Authentication configuration (lib TypedDict union)."},"endpoint_count":{"type":"integer","title":"Endpoint Count","description":"Number of configured endpoints. Fetch the full list via GET /endpoints."}},"type":"object","required":["id","workspace_id","name","display_name","enabled","created_at","updated_at","base_url","endpoint_count"],"title":"RestIntegrationResponse","description":"REST variant — base URL, auth config, endpoint count."},"StaticHeaderAuthDict":{"properties":{"type":{"type":"string","const":"static_header","title":"Type"},"header_name":{"type":"string","title":"Header Name"}},"type":"object","required":["type","header_name"],"title":"StaticHeaderAuthDict","description":"Static workspace-level secret used verbatim as a single header value.\n\nBearer is just ``header_name=\"Authorization\"`` with the SSM secret holding\n``\"Bearer <token>\"``."},"OAuth2ClientCredentialsAuthDict":{"properties":{"type":{"type":"string","const":"oauth2_client_credentials","title":"Type"},"token_url":{"type":"string","title":"Token Url"},"client_id":{"type":"string","title":"Client Id"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"client_auth_method":{"type":"string","enum":["basic","body"],"title":"Client Auth Method"}},"type":"object","required":["type","token_url","client_id","scopes","client_auth_method"],"title":"OAuth2ClientCredentialsAuthDict","description":"OAuth 2.0 Client Credentials Grant — RFC 6749 § 4.4."},"OAuth2JwtBearerAuthDict":{"properties":{"type":{"type":"string","const":"oauth2_jwt_bearer","title":"Type"},"token_url":{"type":"string","title":"Token Url"},"assertion_issuer":{"type":"string","title":"Assertion Issuer"},"assertion_audience":{"type":"string","title":"Assertion Audience"},"assertion_subject":{"type":"string","title":"Assertion Subject"},"assertion_lifetime_seconds":{"type":"integer","title":"Assertion Lifetime Seconds"},"include_iat":{"type":"boolean","title":"Include Iat"},"include_jti":{"type":"boolean","title":"Include Jti"},"assertion_algorithm":{"type":"string","enum":["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],"title":"Assertion Algorithm"},"assertion_usage":{"type":"string","enum":["authorization_grant","client_authentication"],"title":"Assertion Usage"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"extra_claims":{"additionalProperties":true,"type":"object","title":"Extra Claims"}},"type":"object","required":["type","token_url","assertion_issuer","assertion_audience","assertion_subject","assertion_lifetime_seconds","include_iat","include_jti","assertion_algorithm","assertion_usage","scopes","extra_claims"],"title":"OAuth2JwtBearerAuthDict","description":"OAuth 2.0 JWT Bearer Token — RFC 7523.\n\n``assertion_usage`` selects the flow: § 2.1 (JWT as authorization grant) or\n§ 2.2 (JWT as client authentication / private_key_jwt)."},"CustomTokenExchangeAuthDict":{"properties":{"type":{"type":"string","const":"custom_token_exchange","title":"Type"},"exchange_url":{"type":"string","title":"Exchange Url"},"body_encoding":{"type":"string","enum":["json","form"],"title":"Body Encoding"},"static_headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Headers"},"static_body_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Body Fields"},"param_headers":{"additionalProperties":{"$ref":"#/components/schemas/ParamValueDict"},"type":"object","title":"Param Headers"},"param_body_fields":{"additionalProperties":{"$ref":"#/components/schemas/ParamValueDict"},"type":"object","title":"Param Body Fields"},"response_token_path":{"type":"string","title":"Response Token Path"},"identity_bindings":{"additionalProperties":{"type":"string"},"type":"object","title":"Identity Bindings"},"identity_binding_test_values":{"additionalProperties":{"type":"string"},"type":"object","title":"Identity Binding Test Values"}},"type":"object","required":["type","exchange_url","body_encoding","static_headers","static_body_fields","param_headers","param_body_fields","response_token_path","identity_bindings"],"title":"CustomTokenExchangeAuthDict","description":"Pre-flight exchange that mints a downstream bearer.\n\nDownstream call always receives ``Authorization: Bearer {token}``. No\nin-process caching — every call mints fresh."},"ParamValueDict":{"properties":{"param_name":{"type":"string","title":"Param Name"},"description":{"type":"string","title":"Description"}},"type":"object","required":["param_name","description"],"title":"ParamValueDict","description":"Routing target for one per-request parameter on the exchange call.\n\nPaired with a wire-name (header / body-field key) on\n``CustomTokenExchangeAuthDict.param_headers`` / ``param_body_fields``."}}},"paths":{"/v1/{workspace_id}/integrations":{"get":{"tags":["Integrations"],"summary":"List integrations","description":"List every integration for a workspace. Optionally filter by `enabled` or `search` (name/display_name/id ilike). Sort via repeated `sort_by` query params; each entry is `+field` or `-field` (allowed fields: name, created_at, updated_at). Default: `-created_at`. Cursor opaque — round-trip `continuation_token` unchanged with the same `sort_by`. Requires `Integration.view` permission.","operationId":"list-integrations","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"enabled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter to integrations with this enabled flag. None matches both.","title":"Enabled"},"description":"Filter to integrations with this enabled flag. None matches both."},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SearchString"},{"type":"null"}],"description":"Substring match against name, display_name, or id (case-insensitive).","title":"Search"},"description":"Substring match against name, display_name, or id (case-insensitive)."},{"name":"sort_by","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Sort axes. Repeated query param stacks left-to-right. Each entry is `+field` or `-field`\n(direction prefix REQUIRED). Allowed fields: ``name``, ``created_at``, ``updated_at``.\nDefault: ``-created_at``. ``id`` is always appended as the final tiebreaker.","default":[],"title":"Sort By"},"description":"Sort axes. Repeated query param stacks left-to-right. Each entry is `+field` or `-field`\n(direction prefix REQUIRED). Allowed fields: ``name``, ``created_at``, ``updated_at``.\nDefault: ``-created_at``. ``id`` is always appended as the final tiebreaker."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"exclusiveMinimum":0,"description":"The maximum number of integrations to return.","default":50,"title":"Limit"},"description":"The maximum number of integrations to return."},{"name":"continuation_token","in":"query","required":false,"schema":{"description":"Opaque token from a prior response. Pass back unchanged with the same `sort_by` to advance.","title":"Continuation Token"},"description":"Opaque token from a prior response. Pass back unchanged with the same `sort_by` to advance."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/src__routes__integrations__list_integrations__Response"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"422":{"description":"Query parameter failed validation or continuation_token is unparseable."}}}}}}
```

## Create a REST integration

> Create a new REST integration in a workspace. Endpoints are added separately via \`POST /integrations/{integration\_id}/endpoints\`. Requires \`Integration.create\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Integrations"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"src__routes__integrations__create_integration__Request":{"properties":{"name":{"type":"string","maxLength":128,"minLength":2,"pattern":"^[a-z0-9][a-z0-9_-]*[a-z0-9]$","title":"Name","description":"Slug-like identifier, lowercase alphanumeric + hyphens/underscores. Immutable post-create."},"display_name":{"$ref":"#/components/schemas/NameString","description":"Human-readable name."},"base_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Base Url","description":"Base URL for the upstream REST API."},"auth":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/StaticHeaderAuthRequest"},{"$ref":"#/components/schemas/OAuth2ClientCredentialsAuthRequest"},{"$ref":"#/components/schemas/OAuth2JwtBearerAuthRequest"},{"$ref":"#/components/schemas/CustomTokenExchangeAuthRequest"}],"discriminator":{"propertyName":"type","mapping":{"custom_token_exchange":"#/components/schemas/CustomTokenExchangeAuthRequest","oauth2_client_credentials":"#/components/schemas/OAuth2ClientCredentialsAuthRequest","oauth2_jwt_bearer":"#/components/schemas/OAuth2JwtBearerAuthRequest","static_header":"#/components/schemas/StaticHeaderAuthRequest"}}},{"type":"null"}],"title":"Auth","description":"Auth configuration. When set, ``secret_value`` is required."},"secret_value":{"anyOf":[{"type":"string","maxLength":8192,"minLength":1},{"type":"null"}],"title":"Secret Value","description":"Inline secret literal — auto-provisioned to the per-integration SSM path.\nRequired when ``auth`` is set. Bounded to fit a PEM RSA-4096 key + cert chain."},"enabled":{"type":"boolean","title":"Enabled","description":"Whether the integration is active on create.","default":true},"managed":{"type":"boolean","title":"Managed","description":"Whether this is a system-managed integration protected from workspace CRUD.","default":false},"approval_policy":{"type":"string","enum":["none","writes","all"],"title":"Approval Policy","description":"Human-in-the-loop approval gate. ``none`` (default) = no approval\nrequired; ``writes`` = approval required for an endpoint that may write: one\nthat uses POST, PUT, PATCH or DELETE, or declares ``declarations.writes`` of any\nkind but ``none``, whatever its method; ``all`` = approval required for every\nendpoint.","default":"none"}},"type":"object","required":["name","display_name","base_url"],"title":"Request","description":"Create body — REST only."},"NameString":{"maxLength":256,"minLength":1,"type":"string"},"StaticHeaderAuthRequest":{"properties":{"type":{"type":"string","const":"static_header","title":"Type","default":"static_header"},"header_name":{"type":"string","maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9!#$%&'*+\\-.^_`|~]+$","title":"Header Name","description":"Outbound header name (RFC 7230 tchar)."}},"type":"object","required":["header_name"],"title":"StaticHeaderAuthRequest","description":"Static workspace-level secret used verbatim as a single header value."},"OAuth2ClientCredentialsAuthRequest":{"properties":{"type":{"type":"string","const":"oauth2_client_credentials","title":"Type","default":"oauth2_client_credentials"},"token_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Token Url"},"client_id":{"type":"string","title":"Client Id"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"client_auth_method":{"type":"string","enum":["basic","body"],"title":"Client Auth Method","description":"RFC 6749 § 2.3.1: ``basic`` sends client_id+secret as HTTP Basic auth; ``body`` sends them in the form body.","default":"basic"}},"type":"object","required":["token_url","client_id"],"title":"OAuth2ClientCredentialsAuthRequest","description":"OAuth 2.0 Client Credentials Grant — RFC 6749 § 4.4.\n\nStrict RFC 6749 § 4.4.2 access token request: ``grant_type`` + optional\n``scope``. Client authentication (RFC 6749 § 2.3.1) is orthogonal —\n``client_auth_method`` picks between HTTP Basic auth and form-body\ncredentials. RFC 8707 ``resource`` and non-standard ``audience`` extensions\nare NOT supported here — add them back when a vendor needs one."},"OAuth2JwtBearerAuthRequest":{"properties":{"type":{"type":"string","const":"oauth2_jwt_bearer","title":"Type","default":"oauth2_jwt_bearer"},"token_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Token Url"},"assertion_issuer":{"type":"string","title":"Assertion Issuer","description":"RFC 7523 ``iss`` claim — typically the service-account email or client_id."},"assertion_audience":{"type":"string","title":"Assertion Audience","description":"RFC 7523 ``aud`` claim — typically the token_url."},"assertion_subject":{"type":"string","title":"Assertion Subject","description":"RFC 7523 § 3 ``sub`` claim — MUST be present. For service-account flows\nwhere the client is its own subject, set to the same value as ``assertion_issuer``.\nUse a different value only for delegation / impersonation grants."},"assertion_lifetime_seconds":{"type":"integer","title":"Assertion Lifetime Seconds","default":3600},"include_iat":{"type":"boolean","title":"Include Iat","description":"RFC 7523 § 3 item 6 — ``iat`` claim set to mint time. Most IdPs (Google, Azure)\nrequire it for anti-replay; leave True unless a specific vendor rejects it.","default":true},"include_jti":{"type":"boolean","title":"Include Jti","description":"When True, generate a fresh ``jti`` (anti-replay) on every mint.","default":true},"assertion_algorithm":{"type":"string","enum":["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],"title":"Assertion Algorithm","default":"RS256"},"assertion_usage":{"type":"string","enum":["authorization_grant","client_authentication"],"title":"Assertion Usage","description":"RFC 7523 flow selector — required; the caller must pick a flow.\n``authorization_grant`` (§ 2.1) sends the JWT as ``assertion`` under\n``grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer``.\n``client_authentication`` (§ 2.2, the ``private_key_jwt`` method) sends it as\n``client_assertion`` + ``client_assertion_type`` under ``grant_type=client_credentials``\n— required by Epic / SMART Backend Services."},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes","description":"RFC 7523 § 2.1 ``scope`` form-body parameter. Vendors that put scopes inside\nthe JWT instead (Google service accounts) use ``extra_claims = {\"scope\": \"...\"}``\nand leave this empty."},"extra_claims":{"additionalProperties":true,"type":"object","title":"Extra Claims","description":"RFC 7523 § 3 item 8 — arbitrary additional JWT claims (e.g. Google's\n``scope`` claim, Azure's tenant claim). Merged BEFORE the required claims so\nIdP-specific extensions can't override ``iss`` / ``sub`` / ``aud`` / ``exp`` /\n``iat`` / ``nbf`` / ``jti``.","default":{}}},"type":"object","required":["token_url","assertion_issuer","assertion_audience","assertion_subject","assertion_usage"],"title":"OAuth2JwtBearerAuthRequest","description":"OAuth 2.0 JWT Bearer Token — RFC 7523.\n\n``assertion_usage`` (required) selects the flow: § 2.1 (JWT as authorization\ngrant) or § 2.2 (JWT as client authentication / private_key_jwt)."},"CustomTokenExchangeAuthRequest":{"properties":{"type":{"type":"string","const":"custom_token_exchange","title":"Type","default":"custom_token_exchange"},"exchange_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Exchange Url"},"body_encoding":{"type":"string","enum":["json","form"],"title":"Body Encoding","description":"``json`` (default) sends static_body_fields + param_body_fields as JSON; ``form`` sends as application/x-www-form-urlencoded.","default":"json"},"static_headers":{"patternProperties":{"^[A-Za-z0-9!#$%&'*+\\-.^_`|~]+$":{"type":"string"}},"propertyNames":{"maxLength":256,"minLength":1},"type":"object","title":"Static Headers","description":"Workspace-level headers on the exchange request (keys are RFC 7230 tchar). Values may contain ``{secret}`` placeholder.","default":{}},"static_body_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Body Fields","description":"Workspace-level body fields keyed by RFC 6901 JSON Pointer (e.g. ``/meta/tool_name``\nfor nested fields, or ``/foo`` for a root-level field). Values may contain ``{secret}``\nplaceholder.","default":{}},"param_headers":{"patternProperties":{"^[A-Za-z0-9!#$%&'*+\\-.^_`|~]+$":{"$ref":"#/components/schemas/ParamValueRequest"}},"propertyNames":{"maxLength":256,"minLength":1},"type":"object","title":"Param Headers","description":"Per-request params routed to headers on the exchange request, keyed by wire-name.","default":{}},"param_body_fields":{"additionalProperties":{"$ref":"#/components/schemas/ParamValueRequest"},"type":"object","title":"Param Body Fields","description":"Per-request params routed to body fields on the exchange request, keyed by RFC 6901 JSON Pointer.","default":{}},"identity_bindings":{"additionalProperties":{"type":"string","enum":["principal.subject_key","principal.subject_id","external_user.subject_key"]},"type":"object","maxProperties":50,"title":"Identity Bindings","description":"Maps a declared ``param_name`` to the verified identity attribute that supplies it\nat dispatch. A bound param is dropped from the LLM-facing tool schema and injected from the\nverified session context (never model-supplied), closing the per-user-identity impersonation hole.\nKeys MUST reference a ``param_name`` declared on ``param_headers`` / ``param_body_fields``.","default":{}},"identity_binding_test_values":{"additionalProperties":{"type":"string"},"type":"object","title":"Identity Binding Test Values","description":"Author-configured test values for identity-bound params.\n\nOnly ``external_user.subject_key`` bindings may carry test values. Runtime\ndispatch uses them only when a backend execution path explicitly opts in.","default":{}},"response_token_path":{"type":"string","title":"Response Token Path","description":"RFC 6901 JSON Pointer into the exchange response body that extracts the bearer token\n(e.g. ``/access_token`` or ``/data/bearer``). NO default — every config commits explicitly."}},"type":"object","required":["exchange_url","response_token_path"],"title":"CustomTokenExchangeAuthRequest","description":"Pre-flight exchange that mints a downstream bearer.\n\nReplaces legacy ``json_token_exchange`` AND ``bearer_token_exchange``.\nPath-shaped fields (``response_token_path``, ``static_body_fields`` keys,\n``param_body_fields`` keys) MUST be valid RFC 6901 JSON Pointer — one\nsyntax throughout."},"ParamValueRequest":{"properties":{"param_name":{"type":"string","title":"Param Name"},"description":{"type":"string","title":"Description"}},"type":"object","required":["param_name","description"],"title":"ParamValueRequest","description":"Routing target for a single per-request parameter on the exchange call.\n\nPaired with a wire-name (header / body-field key) on\n``CustomTokenExchangeAuthRequest.param_headers`` / ``param_body_fields``."},"RestIntegrationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Integration ID."},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id","description":"Workspace ID."},"name":{"type":"string","title":"Name","description":"Slug-like identifier, immutable post-create."},"display_name":{"type":"string","title":"Display Name","description":"Human-readable name."},"enabled":{"type":"boolean","title":"Enabled","description":"Whether the integration is active."},"managed":{"type":"boolean","title":"Managed","description":"Whether the integration is system-managed and protected from workspace CRUD.","default":false},"approval_policy":{"type":"string","enum":["none","writes","all"],"title":"Approval Policy","description":"Human-in-the-loop approval gate. ``none`` = no approval required;\n``writes`` = approval required for an endpoint that may write: one that uses\nPOST, PUT, PATCH or DELETE, or declares ``declarations.writes`` of any kind but\n``none``, whatever its method; ``all`` = approval required for every endpoint.","default":"none"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the integration was created."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"When the integration was last updated."},"kind":{"type":"string","const":"rest","title":"Kind","description":"Discriminator.","default":"rest"},"base_url":{"type":"string","title":"Base Url","description":"Base URL for REST integrations."},"auth":{"anyOf":[{"$ref":"#/components/schemas/StaticHeaderAuthDict"},{"$ref":"#/components/schemas/OAuth2ClientCredentialsAuthDict"},{"$ref":"#/components/schemas/OAuth2JwtBearerAuthDict"},{"$ref":"#/components/schemas/CustomTokenExchangeAuthDict"},{"type":"null"}],"title":"Auth","description":"Authentication configuration (lib TypedDict union)."},"endpoint_count":{"type":"integer","title":"Endpoint Count","description":"Number of configured endpoints. Fetch the full list via GET /endpoints."}},"type":"object","required":["id","workspace_id","name","display_name","enabled","created_at","updated_at","base_url","endpoint_count"],"title":"RestIntegrationResponse","description":"REST variant — base URL, auth config, endpoint count."},"StaticHeaderAuthDict":{"properties":{"type":{"type":"string","const":"static_header","title":"Type"},"header_name":{"type":"string","title":"Header Name"}},"type":"object","required":["type","header_name"],"title":"StaticHeaderAuthDict","description":"Static workspace-level secret used verbatim as a single header value.\n\nBearer is just ``header_name=\"Authorization\"`` with the SSM secret holding\n``\"Bearer <token>\"``."},"OAuth2ClientCredentialsAuthDict":{"properties":{"type":{"type":"string","const":"oauth2_client_credentials","title":"Type"},"token_url":{"type":"string","title":"Token Url"},"client_id":{"type":"string","title":"Client Id"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"client_auth_method":{"type":"string","enum":["basic","body"],"title":"Client Auth Method"}},"type":"object","required":["type","token_url","client_id","scopes","client_auth_method"],"title":"OAuth2ClientCredentialsAuthDict","description":"OAuth 2.0 Client Credentials Grant — RFC 6749 § 4.4."},"OAuth2JwtBearerAuthDict":{"properties":{"type":{"type":"string","const":"oauth2_jwt_bearer","title":"Type"},"token_url":{"type":"string","title":"Token Url"},"assertion_issuer":{"type":"string","title":"Assertion Issuer"},"assertion_audience":{"type":"string","title":"Assertion Audience"},"assertion_subject":{"type":"string","title":"Assertion Subject"},"assertion_lifetime_seconds":{"type":"integer","title":"Assertion Lifetime Seconds"},"include_iat":{"type":"boolean","title":"Include Iat"},"include_jti":{"type":"boolean","title":"Include Jti"},"assertion_algorithm":{"type":"string","enum":["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],"title":"Assertion Algorithm"},"assertion_usage":{"type":"string","enum":["authorization_grant","client_authentication"],"title":"Assertion Usage"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"extra_claims":{"additionalProperties":true,"type":"object","title":"Extra Claims"}},"type":"object","required":["type","token_url","assertion_issuer","assertion_audience","assertion_subject","assertion_lifetime_seconds","include_iat","include_jti","assertion_algorithm","assertion_usage","scopes","extra_claims"],"title":"OAuth2JwtBearerAuthDict","description":"OAuth 2.0 JWT Bearer Token — RFC 7523.\n\n``assertion_usage`` selects the flow: § 2.1 (JWT as authorization grant) or\n§ 2.2 (JWT as client authentication / private_key_jwt)."},"CustomTokenExchangeAuthDict":{"properties":{"type":{"type":"string","const":"custom_token_exchange","title":"Type"},"exchange_url":{"type":"string","title":"Exchange Url"},"body_encoding":{"type":"string","enum":["json","form"],"title":"Body Encoding"},"static_headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Headers"},"static_body_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Body Fields"},"param_headers":{"additionalProperties":{"$ref":"#/components/schemas/ParamValueDict"},"type":"object","title":"Param Headers"},"param_body_fields":{"additionalProperties":{"$ref":"#/components/schemas/ParamValueDict"},"type":"object","title":"Param Body Fields"},"response_token_path":{"type":"string","title":"Response Token Path"},"identity_bindings":{"additionalProperties":{"type":"string"},"type":"object","title":"Identity Bindings"},"identity_binding_test_values":{"additionalProperties":{"type":"string"},"type":"object","title":"Identity Binding Test Values"}},"type":"object","required":["type","exchange_url","body_encoding","static_headers","static_body_fields","param_headers","param_body_fields","response_token_path","identity_bindings"],"title":"CustomTokenExchangeAuthDict","description":"Pre-flight exchange that mints a downstream bearer.\n\nDownstream call always receives ``Authorization: Bearer {token}``. No\nin-process caching — every call mints fresh."},"ParamValueDict":{"properties":{"param_name":{"type":"string","title":"Param Name"},"description":{"type":"string","title":"Description"}},"type":"object","required":["param_name","description"],"title":"ParamValueDict","description":"Routing target for one per-request parameter on the exchange call.\n\nPaired with a wire-name (header / body-field key) on\n``CustomTokenExchangeAuthDict.param_headers`` / ``param_body_fields``."}}},"paths":{"/v1/{workspace_id}/integrations":{"post":{"tags":["Integrations"],"summary":"Create a REST integration","description":"Create a new REST integration in a workspace. Endpoints are added separately via `POST /integrations/{integration_id}/endpoints`. Requires `Integration.create` permission.","operationId":"create-integration","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/src__routes__integrations__create_integration__Request"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestIntegrationResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Workspace not found."},"409":{"description":"Integration name already taken in this workspace."},"422":{"description":"Invalid request body."}},"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}]}}}}
```

## Approve a pending integration-write approval

> Approve a pending human-in-the-loop integration-write approval for a conversation. Publishes \`integration.approval\_granted\` to the workspace event channel; the subscribed text session fires the gated write. Requires \`ReviewQueue.review\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Integrations"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"IntegrationApprovalResponse":{"properties":{"status":{"type":"string","enum":["granted","rejected"],"title":"Status"},"conversation_id":{"type":"string","maxLength":256,"minLength":1,"title":"Conversation Id"}},"type":"object","required":["status","conversation_id"],"title":"IntegrationApprovalResponse","description":"Resolution outcome for a pending integration-write approval."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/integrations/approvals/{conversation_id}/approve":{"post":{"tags":["Integrations"],"summary":"Approve a pending integration-write approval","description":"Approve a pending human-in-the-loop integration-write approval for a conversation. Publishes `integration.approval_granted` to the workspace event channel; the subscribed text session fires the gated write. Requires `ReviewQueue.review` permission.","operationId":"approve-integration-write","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"const":"playground","type":"string"},{"type":"null"}],"description":"Set to ``playground`` when the developer console Playground decides the approval. Refused with 403 on a real conversation, one no Playground session or test credential started.","title":"Source"},"description":"Set to ``playground`` when the developer console Playground decides the approval. Refused with 403 on a real conversation, one no Playground session or test credential started."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationApprovalResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions, or a Playground or test-credential session on a real conversation."},"404":{"description":"Conversation not found in this workspace."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Rate limited."}}}}}}
```

## Reject a pending integration-write approval

> Reject a pending human-in-the-loop integration-write approval for a conversation. Publishes \`integration.approval\_rejected\` to the workspace event channel; the subscribed text session declines the gated write. Requires \`ReviewQueue.review\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Integrations"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"IntegrationRejectRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Reason"},"source":{"anyOf":[{"type":"string","const":"playground"},{"type":"null"}],"title":"Source","description":"Set to ``playground`` when the developer console Playground decides the approval. Refused with 403 on a real conversation, one no Playground session or test credential started."}},"type":"object","title":"IntegrationRejectRequest","description":"Reject body — optional free-text reason surfaced to the agent."},"IntegrationApprovalResponse":{"properties":{"status":{"type":"string","enum":["granted","rejected"],"title":"Status"},"conversation_id":{"type":"string","maxLength":256,"minLength":1,"title":"Conversation Id"}},"type":"object","required":["status","conversation_id"],"title":"IntegrationApprovalResponse","description":"Resolution outcome for a pending integration-write approval."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/integrations/approvals/{conversation_id}/reject":{"post":{"tags":["Integrations"],"summary":"Reject a pending integration-write approval","description":"Reject a pending human-in-the-loop integration-write approval for a conversation. Publishes `integration.approval_rejected` to the workspace event channel; the subscribed text session declines the gated write. Requires `ReviewQueue.review` permission.","operationId":"reject-integration-write","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationRejectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationApprovalResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions, or a Playground or test-credential session on a real conversation."},"404":{"description":"Conversation not found in this workspace."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Rate limited."}}}}}}
```

## Get an integration

> Retrieve an integration by ID. Requires \`Integration.view\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Integrations"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"RestIntegrationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Integration ID."},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id","description":"Workspace ID."},"name":{"type":"string","title":"Name","description":"Slug-like identifier, immutable post-create."},"display_name":{"type":"string","title":"Display Name","description":"Human-readable name."},"enabled":{"type":"boolean","title":"Enabled","description":"Whether the integration is active."},"managed":{"type":"boolean","title":"Managed","description":"Whether the integration is system-managed and protected from workspace CRUD.","default":false},"approval_policy":{"type":"string","enum":["none","writes","all"],"title":"Approval Policy","description":"Human-in-the-loop approval gate. ``none`` = no approval required;\n``writes`` = approval required for an endpoint that may write: one that uses\nPOST, PUT, PATCH or DELETE, or declares ``declarations.writes`` of any kind but\n``none``, whatever its method; ``all`` = approval required for every endpoint.","default":"none"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the integration was created."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"When the integration was last updated."},"kind":{"type":"string","const":"rest","title":"Kind","description":"Discriminator.","default":"rest"},"base_url":{"type":"string","title":"Base Url","description":"Base URL for REST integrations."},"auth":{"anyOf":[{"$ref":"#/components/schemas/StaticHeaderAuthDict"},{"$ref":"#/components/schemas/OAuth2ClientCredentialsAuthDict"},{"$ref":"#/components/schemas/OAuth2JwtBearerAuthDict"},{"$ref":"#/components/schemas/CustomTokenExchangeAuthDict"},{"type":"null"}],"title":"Auth","description":"Authentication configuration (lib TypedDict union)."},"endpoint_count":{"type":"integer","title":"Endpoint Count","description":"Number of configured endpoints. Fetch the full list via GET /endpoints."}},"type":"object","required":["id","workspace_id","name","display_name","enabled","created_at","updated_at","base_url","endpoint_count"],"title":"RestIntegrationResponse","description":"REST variant — base URL, auth config, endpoint count."},"StaticHeaderAuthDict":{"properties":{"type":{"type":"string","const":"static_header","title":"Type"},"header_name":{"type":"string","title":"Header Name"}},"type":"object","required":["type","header_name"],"title":"StaticHeaderAuthDict","description":"Static workspace-level secret used verbatim as a single header value.\n\nBearer is just ``header_name=\"Authorization\"`` with the SSM secret holding\n``\"Bearer <token>\"``."},"OAuth2ClientCredentialsAuthDict":{"properties":{"type":{"type":"string","const":"oauth2_client_credentials","title":"Type"},"token_url":{"type":"string","title":"Token Url"},"client_id":{"type":"string","title":"Client Id"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"client_auth_method":{"type":"string","enum":["basic","body"],"title":"Client Auth Method"}},"type":"object","required":["type","token_url","client_id","scopes","client_auth_method"],"title":"OAuth2ClientCredentialsAuthDict","description":"OAuth 2.0 Client Credentials Grant — RFC 6749 § 4.4."},"OAuth2JwtBearerAuthDict":{"properties":{"type":{"type":"string","const":"oauth2_jwt_bearer","title":"Type"},"token_url":{"type":"string","title":"Token Url"},"assertion_issuer":{"type":"string","title":"Assertion Issuer"},"assertion_audience":{"type":"string","title":"Assertion Audience"},"assertion_subject":{"type":"string","title":"Assertion Subject"},"assertion_lifetime_seconds":{"type":"integer","title":"Assertion Lifetime Seconds"},"include_iat":{"type":"boolean","title":"Include Iat"},"include_jti":{"type":"boolean","title":"Include Jti"},"assertion_algorithm":{"type":"string","enum":["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],"title":"Assertion Algorithm"},"assertion_usage":{"type":"string","enum":["authorization_grant","client_authentication"],"title":"Assertion Usage"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"extra_claims":{"additionalProperties":true,"type":"object","title":"Extra Claims"}},"type":"object","required":["type","token_url","assertion_issuer","assertion_audience","assertion_subject","assertion_lifetime_seconds","include_iat","include_jti","assertion_algorithm","assertion_usage","scopes","extra_claims"],"title":"OAuth2JwtBearerAuthDict","description":"OAuth 2.0 JWT Bearer Token — RFC 7523.\n\n``assertion_usage`` selects the flow: § 2.1 (JWT as authorization grant) or\n§ 2.2 (JWT as client authentication / private_key_jwt)."},"CustomTokenExchangeAuthDict":{"properties":{"type":{"type":"string","const":"custom_token_exchange","title":"Type"},"exchange_url":{"type":"string","title":"Exchange Url"},"body_encoding":{"type":"string","enum":["json","form"],"title":"Body Encoding"},"static_headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Headers"},"static_body_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Body Fields"},"param_headers":{"additionalProperties":{"$ref":"#/components/schemas/ParamValueDict"},"type":"object","title":"Param Headers"},"param_body_fields":{"additionalProperties":{"$ref":"#/components/schemas/ParamValueDict"},"type":"object","title":"Param Body Fields"},"response_token_path":{"type":"string","title":"Response Token Path"},"identity_bindings":{"additionalProperties":{"type":"string"},"type":"object","title":"Identity Bindings"},"identity_binding_test_values":{"additionalProperties":{"type":"string"},"type":"object","title":"Identity Binding Test Values"}},"type":"object","required":["type","exchange_url","body_encoding","static_headers","static_body_fields","param_headers","param_body_fields","response_token_path","identity_bindings"],"title":"CustomTokenExchangeAuthDict","description":"Pre-flight exchange that mints a downstream bearer.\n\nDownstream call always receives ``Authorization: Bearer {token}``. No\nin-process caching — every call mints fresh."},"ParamValueDict":{"properties":{"param_name":{"type":"string","title":"Param Name"},"description":{"type":"string","title":"Description"}},"type":"object","required":["param_name","description"],"title":"ParamValueDict","description":"Routing target for one per-request parameter on the exchange call.\n\nPaired with a wire-name (header / body-field key) on\n``CustomTokenExchangeAuthDict.param_headers`` / ``param_body_fields``."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/integrations/{integration_id}":{"get":{"tags":["Integrations"],"summary":"Get an integration","description":"Retrieve an integration by ID. Requires `Integration.view` permission.","operationId":"get-integration","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestIntegrationResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Integration not found."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Delete a REST integration

> Delete a REST integration. Requires \`Integration.delete\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Integrations"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/integrations/{integration_id}":{"delete":{"tags":["Integrations"],"summary":"Delete a REST integration","description":"Delete a REST integration. Requires `Integration.delete` permission.","operationId":"delete-integration","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Integration not found."},"409":{"description":"Integration is managed or referenced by one or more skills."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Update a REST integration

> Patch a REST integration. NOT NULL fields reject \`null\` at validation time; pass \`auth: null\` to clear the auth config. \`auth\` and \`secret\_value\` are independent — update either alone to swap auth shape (reusing the existing secret) or rotate the secret (keeping the existing auth shape). Requires \`Integration.update\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Integrations"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"src__routes__integrations__update_integration__Request":{"properties":{"display_name":{"$ref":"#/components/schemas/NameString","title":"Display Name","description":"New display name."},"base_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Base Url","description":"New base URL."},"auth":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/StaticHeaderAuthRequest"},{"$ref":"#/components/schemas/OAuth2ClientCredentialsAuthRequest"},{"$ref":"#/components/schemas/OAuth2JwtBearerAuthRequest"},{"$ref":"#/components/schemas/CustomTokenExchangeAuthRequest"}],"discriminator":{"propertyName":"type","mapping":{"custom_token_exchange":"#/components/schemas/CustomTokenExchangeAuthRequest","oauth2_client_credentials":"#/components/schemas/OAuth2ClientCredentialsAuthRequest","oauth2_jwt_bearer":"#/components/schemas/OAuth2JwtBearerAuthRequest","static_header":"#/components/schemas/StaticHeaderAuthRequest"}}},{"type":"null"}],"title":"Auth","description":"New auth config. Absent ⇒ untouched; null ⇒ clear; value ⇒ replace.\nIndependent of ``secret_value`` — updating ``auth`` alone reuses the\nexisting SSM secret."},"secret_value":{"type":"string","maxLength":8192,"minLength":1,"title":"Secret Value","description":"Rotate the per-integration SSM secret. Absent ⇒ existing secret\nuntouched; value ⇒ overwrite SSM at the canonical path. Explicit\n``null`` is rejected at validation — there is no \"clear the secret\"\noperation (clearing ``auth`` makes the secret unreachable; that's the\nintended clear path)."},"enabled":{"type":"boolean","title":"Enabled","description":"Toggle the integration on/off."},"managed":{"type":"boolean","title":"Managed","description":"Mark/unmark the integration as system-managed. Requires ``platform:admin`` scope."},"approval_policy":{"type":"string","enum":["none","writes","all"],"title":"Approval Policy","description":"Change the human-in-the-loop approval gate. ``none`` = no approval\nrequired; ``writes`` = approval required for an endpoint that may write: one\nthat uses POST, PUT, PATCH or DELETE, or declares ``declarations.writes`` of any\nkind but ``none``, whatever its method; ``all`` = approval required for every\nendpoint. Absent ⇒ untouched."}},"type":"object","title":"Request","description":"PATCH body — each field is sentinel-defaulted; absent ≠ explicit-null."},"NameString":{"maxLength":256,"minLength":1,"type":"string"},"StaticHeaderAuthRequest":{"properties":{"type":{"type":"string","const":"static_header","title":"Type","default":"static_header"},"header_name":{"type":"string","maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9!#$%&'*+\\-.^_`|~]+$","title":"Header Name","description":"Outbound header name (RFC 7230 tchar)."}},"type":"object","required":["header_name"],"title":"StaticHeaderAuthRequest","description":"Static workspace-level secret used verbatim as a single header value."},"OAuth2ClientCredentialsAuthRequest":{"properties":{"type":{"type":"string","const":"oauth2_client_credentials","title":"Type","default":"oauth2_client_credentials"},"token_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Token Url"},"client_id":{"type":"string","title":"Client Id"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"client_auth_method":{"type":"string","enum":["basic","body"],"title":"Client Auth Method","description":"RFC 6749 § 2.3.1: ``basic`` sends client_id+secret as HTTP Basic auth; ``body`` sends them in the form body.","default":"basic"}},"type":"object","required":["token_url","client_id"],"title":"OAuth2ClientCredentialsAuthRequest","description":"OAuth 2.0 Client Credentials Grant — RFC 6749 § 4.4.\n\nStrict RFC 6749 § 4.4.2 access token request: ``grant_type`` + optional\n``scope``. Client authentication (RFC 6749 § 2.3.1) is orthogonal —\n``client_auth_method`` picks between HTTP Basic auth and form-body\ncredentials. RFC 8707 ``resource`` and non-standard ``audience`` extensions\nare NOT supported here — add them back when a vendor needs one."},"OAuth2JwtBearerAuthRequest":{"properties":{"type":{"type":"string","const":"oauth2_jwt_bearer","title":"Type","default":"oauth2_jwt_bearer"},"token_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Token Url"},"assertion_issuer":{"type":"string","title":"Assertion Issuer","description":"RFC 7523 ``iss`` claim — typically the service-account email or client_id."},"assertion_audience":{"type":"string","title":"Assertion Audience","description":"RFC 7523 ``aud`` claim — typically the token_url."},"assertion_subject":{"type":"string","title":"Assertion Subject","description":"RFC 7523 § 3 ``sub`` claim — MUST be present. For service-account flows\nwhere the client is its own subject, set to the same value as ``assertion_issuer``.\nUse a different value only for delegation / impersonation grants."},"assertion_lifetime_seconds":{"type":"integer","title":"Assertion Lifetime Seconds","default":3600},"include_iat":{"type":"boolean","title":"Include Iat","description":"RFC 7523 § 3 item 6 — ``iat`` claim set to mint time. Most IdPs (Google, Azure)\nrequire it for anti-replay; leave True unless a specific vendor rejects it.","default":true},"include_jti":{"type":"boolean","title":"Include Jti","description":"When True, generate a fresh ``jti`` (anti-replay) on every mint.","default":true},"assertion_algorithm":{"type":"string","enum":["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],"title":"Assertion Algorithm","default":"RS256"},"assertion_usage":{"type":"string","enum":["authorization_grant","client_authentication"],"title":"Assertion Usage","description":"RFC 7523 flow selector — required; the caller must pick a flow.\n``authorization_grant`` (§ 2.1) sends the JWT as ``assertion`` under\n``grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer``.\n``client_authentication`` (§ 2.2, the ``private_key_jwt`` method) sends it as\n``client_assertion`` + ``client_assertion_type`` under ``grant_type=client_credentials``\n— required by Epic / SMART Backend Services."},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes","description":"RFC 7523 § 2.1 ``scope`` form-body parameter. Vendors that put scopes inside\nthe JWT instead (Google service accounts) use ``extra_claims = {\"scope\": \"...\"}``\nand leave this empty."},"extra_claims":{"additionalProperties":true,"type":"object","title":"Extra Claims","description":"RFC 7523 § 3 item 8 — arbitrary additional JWT claims (e.g. Google's\n``scope`` claim, Azure's tenant claim). Merged BEFORE the required claims so\nIdP-specific extensions can't override ``iss`` / ``sub`` / ``aud`` / ``exp`` /\n``iat`` / ``nbf`` / ``jti``.","default":{}}},"type":"object","required":["token_url","assertion_issuer","assertion_audience","assertion_subject","assertion_usage"],"title":"OAuth2JwtBearerAuthRequest","description":"OAuth 2.0 JWT Bearer Token — RFC 7523.\n\n``assertion_usage`` (required) selects the flow: § 2.1 (JWT as authorization\ngrant) or § 2.2 (JWT as client authentication / private_key_jwt)."},"CustomTokenExchangeAuthRequest":{"properties":{"type":{"type":"string","const":"custom_token_exchange","title":"Type","default":"custom_token_exchange"},"exchange_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Exchange Url"},"body_encoding":{"type":"string","enum":["json","form"],"title":"Body Encoding","description":"``json`` (default) sends static_body_fields + param_body_fields as JSON; ``form`` sends as application/x-www-form-urlencoded.","default":"json"},"static_headers":{"patternProperties":{"^[A-Za-z0-9!#$%&'*+\\-.^_`|~]+$":{"type":"string"}},"propertyNames":{"maxLength":256,"minLength":1},"type":"object","title":"Static Headers","description":"Workspace-level headers on the exchange request (keys are RFC 7230 tchar). Values may contain ``{secret}`` placeholder.","default":{}},"static_body_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Body Fields","description":"Workspace-level body fields keyed by RFC 6901 JSON Pointer (e.g. ``/meta/tool_name``\nfor nested fields, or ``/foo`` for a root-level field). Values may contain ``{secret}``\nplaceholder.","default":{}},"param_headers":{"patternProperties":{"^[A-Za-z0-9!#$%&'*+\\-.^_`|~]+$":{"$ref":"#/components/schemas/ParamValueRequest"}},"propertyNames":{"maxLength":256,"minLength":1},"type":"object","title":"Param Headers","description":"Per-request params routed to headers on the exchange request, keyed by wire-name.","default":{}},"param_body_fields":{"additionalProperties":{"$ref":"#/components/schemas/ParamValueRequest"},"type":"object","title":"Param Body Fields","description":"Per-request params routed to body fields on the exchange request, keyed by RFC 6901 JSON Pointer.","default":{}},"identity_bindings":{"additionalProperties":{"type":"string","enum":["principal.subject_key","principal.subject_id","external_user.subject_key"]},"type":"object","maxProperties":50,"title":"Identity Bindings","description":"Maps a declared ``param_name`` to the verified identity attribute that supplies it\nat dispatch. A bound param is dropped from the LLM-facing tool schema and injected from the\nverified session context (never model-supplied), closing the per-user-identity impersonation hole.\nKeys MUST reference a ``param_name`` declared on ``param_headers`` / ``param_body_fields``.","default":{}},"identity_binding_test_values":{"additionalProperties":{"type":"string"},"type":"object","title":"Identity Binding Test Values","description":"Author-configured test values for identity-bound params.\n\nOnly ``external_user.subject_key`` bindings may carry test values. Runtime\ndispatch uses them only when a backend execution path explicitly opts in.","default":{}},"response_token_path":{"type":"string","title":"Response Token Path","description":"RFC 6901 JSON Pointer into the exchange response body that extracts the bearer token\n(e.g. ``/access_token`` or ``/data/bearer``). NO default — every config commits explicitly."}},"type":"object","required":["exchange_url","response_token_path"],"title":"CustomTokenExchangeAuthRequest","description":"Pre-flight exchange that mints a downstream bearer.\n\nReplaces legacy ``json_token_exchange`` AND ``bearer_token_exchange``.\nPath-shaped fields (``response_token_path``, ``static_body_fields`` keys,\n``param_body_fields`` keys) MUST be valid RFC 6901 JSON Pointer — one\nsyntax throughout."},"ParamValueRequest":{"properties":{"param_name":{"type":"string","title":"Param Name"},"description":{"type":"string","title":"Description"}},"type":"object","required":["param_name","description"],"title":"ParamValueRequest","description":"Routing target for a single per-request parameter on the exchange call.\n\nPaired with a wire-name (header / body-field key) on\n``CustomTokenExchangeAuthRequest.param_headers`` / ``param_body_fields``."},"RestIntegrationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Integration ID."},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id","description":"Workspace ID."},"name":{"type":"string","title":"Name","description":"Slug-like identifier, immutable post-create."},"display_name":{"type":"string","title":"Display Name","description":"Human-readable name."},"enabled":{"type":"boolean","title":"Enabled","description":"Whether the integration is active."},"managed":{"type":"boolean","title":"Managed","description":"Whether the integration is system-managed and protected from workspace CRUD.","default":false},"approval_policy":{"type":"string","enum":["none","writes","all"],"title":"Approval Policy","description":"Human-in-the-loop approval gate. ``none`` = no approval required;\n``writes`` = approval required for an endpoint that may write: one that uses\nPOST, PUT, PATCH or DELETE, or declares ``declarations.writes`` of any kind but\n``none``, whatever its method; ``all`` = approval required for every endpoint.","default":"none"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the integration was created."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"When the integration was last updated."},"kind":{"type":"string","const":"rest","title":"Kind","description":"Discriminator.","default":"rest"},"base_url":{"type":"string","title":"Base Url","description":"Base URL for REST integrations."},"auth":{"anyOf":[{"$ref":"#/components/schemas/StaticHeaderAuthDict"},{"$ref":"#/components/schemas/OAuth2ClientCredentialsAuthDict"},{"$ref":"#/components/schemas/OAuth2JwtBearerAuthDict"},{"$ref":"#/components/schemas/CustomTokenExchangeAuthDict"},{"type":"null"}],"title":"Auth","description":"Authentication configuration (lib TypedDict union)."},"endpoint_count":{"type":"integer","title":"Endpoint Count","description":"Number of configured endpoints. Fetch the full list via GET /endpoints."}},"type":"object","required":["id","workspace_id","name","display_name","enabled","created_at","updated_at","base_url","endpoint_count"],"title":"RestIntegrationResponse","description":"REST variant — base URL, auth config, endpoint count."},"StaticHeaderAuthDict":{"properties":{"type":{"type":"string","const":"static_header","title":"Type"},"header_name":{"type":"string","title":"Header Name"}},"type":"object","required":["type","header_name"],"title":"StaticHeaderAuthDict","description":"Static workspace-level secret used verbatim as a single header value.\n\nBearer is just ``header_name=\"Authorization\"`` with the SSM secret holding\n``\"Bearer <token>\"``."},"OAuth2ClientCredentialsAuthDict":{"properties":{"type":{"type":"string","const":"oauth2_client_credentials","title":"Type"},"token_url":{"type":"string","title":"Token Url"},"client_id":{"type":"string","title":"Client Id"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"client_auth_method":{"type":"string","enum":["basic","body"],"title":"Client Auth Method"}},"type":"object","required":["type","token_url","client_id","scopes","client_auth_method"],"title":"OAuth2ClientCredentialsAuthDict","description":"OAuth 2.0 Client Credentials Grant — RFC 6749 § 4.4."},"OAuth2JwtBearerAuthDict":{"properties":{"type":{"type":"string","const":"oauth2_jwt_bearer","title":"Type"},"token_url":{"type":"string","title":"Token Url"},"assertion_issuer":{"type":"string","title":"Assertion Issuer"},"assertion_audience":{"type":"string","title":"Assertion Audience"},"assertion_subject":{"type":"string","title":"Assertion Subject"},"assertion_lifetime_seconds":{"type":"integer","title":"Assertion Lifetime Seconds"},"include_iat":{"type":"boolean","title":"Include Iat"},"include_jti":{"type":"boolean","title":"Include Jti"},"assertion_algorithm":{"type":"string","enum":["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],"title":"Assertion Algorithm"},"assertion_usage":{"type":"string","enum":["authorization_grant","client_authentication"],"title":"Assertion Usage"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"extra_claims":{"additionalProperties":true,"type":"object","title":"Extra Claims"}},"type":"object","required":["type","token_url","assertion_issuer","assertion_audience","assertion_subject","assertion_lifetime_seconds","include_iat","include_jti","assertion_algorithm","assertion_usage","scopes","extra_claims"],"title":"OAuth2JwtBearerAuthDict","description":"OAuth 2.0 JWT Bearer Token — RFC 7523.\n\n``assertion_usage`` selects the flow: § 2.1 (JWT as authorization grant) or\n§ 2.2 (JWT as client authentication / private_key_jwt)."},"CustomTokenExchangeAuthDict":{"properties":{"type":{"type":"string","const":"custom_token_exchange","title":"Type"},"exchange_url":{"type":"string","title":"Exchange Url"},"body_encoding":{"type":"string","enum":["json","form"],"title":"Body Encoding"},"static_headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Headers"},"static_body_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Body Fields"},"param_headers":{"additionalProperties":{"$ref":"#/components/schemas/ParamValueDict"},"type":"object","title":"Param Headers"},"param_body_fields":{"additionalProperties":{"$ref":"#/components/schemas/ParamValueDict"},"type":"object","title":"Param Body Fields"},"response_token_path":{"type":"string","title":"Response Token Path"},"identity_bindings":{"additionalProperties":{"type":"string"},"type":"object","title":"Identity Bindings"},"identity_binding_test_values":{"additionalProperties":{"type":"string"},"type":"object","title":"Identity Binding Test Values"}},"type":"object","required":["type","exchange_url","body_encoding","static_headers","static_body_fields","param_headers","param_body_fields","response_token_path","identity_bindings"],"title":"CustomTokenExchangeAuthDict","description":"Pre-flight exchange that mints a downstream bearer.\n\nDownstream call always receives ``Authorization: Bearer {token}``. No\nin-process caching — every call mints fresh."},"ParamValueDict":{"properties":{"param_name":{"type":"string","title":"Param Name"},"description":{"type":"string","title":"Description"}},"type":"object","required":["param_name","description"],"title":"ParamValueDict","description":"Routing target for one per-request parameter on the exchange call.\n\nPaired with a wire-name (header / body-field key) on\n``CustomTokenExchangeAuthDict.param_headers`` / ``param_body_fields``."}}},"paths":{"/v1/{workspace_id}/integrations/{integration_id}":{"patch":{"tags":["Integrations"],"summary":"Update a REST integration","description":"Patch a REST integration. NOT NULL fields reject `null` at validation time; pass `auth: null` to clear the auth config. `auth` and `secret_value` are independent — update either alone to swap auth shape (reusing the existing secret) or rotate the secret (keeping the existing auth shape). Requires `Integration.update` permission.","operationId":"update-integration","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/src__routes__integrations__update_integration__Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestIntegrationResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Integration not found."},"409":{"description":"Managed integration mutation blocked."},"422":{"description":"Invalid request body, NOT NULL field set to null, or no fields to update."}}}}}}
```

## List endpoints

> List endpoints on a REST integration. Optionally search by name/description. Sort via repeated \`sort\_by\` query params; each entry is \`+field\` or \`-field\` (allowed fields: name, created\_at, updated\_at). Default: \`-created\_at\`. Cursor opaque — round-trip \`continuation\_token\` unchanged with the same \`sort\_by\`. Requires \`Integration.view\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Integrations"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"SearchString":{"type":"string","maxLength":200,"minLength":1},"src__routes__integrations__list_endpoints__Response":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EndpointResponse"},"type":"array","title":"Items","description":"The endpoints under this integration."},"has_more":{"type":"boolean","title":"Has More","description":"Whether there are more endpoints to retrieve."},"continuation_token":{"title":"Continuation Token","description":"Opaque token for the next page. Null when there are no more results."}},"type":"object","required":["items","has_more"],"title":"Response"},"EndpointResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Endpoint ID — stable, used in subsequent GET/PATCH/DELETE/test URLs."},"name":{"type":"string","title":"Name","description":"Slug-like identifier. Unique per integration; immutable post-create."},"description":{"type":"string","title":"Description","description":"LLM-facing description."},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"],"title":"Method","description":"HTTP method."},"path":{"type":"string","title":"Path","description":"URL path appended to the integration's base_url."},"input_schema":{"additionalProperties":true,"type":"object","title":"Input Schema","description":"JSON Schema for the tool's input arguments."},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers","description":"Static headers or exact ``$param.<name>`` input-parameter bindings."},"static_body_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Body Fields","description":"Static body fields merged into every request. Keys are RFC 6901 JSON Pointers\n(e.g. ``/meta/tool_name`` for nested, ``/foo`` for a root-level field)."},"body_format":{"type":"string","enum":["json","form"],"title":"Body Format","description":"Outbound body encoding.","default":"json"},"response_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Template","description":"Jinja template rendered against the parsed JSON response."},"client_output":{"anyOf":[{"$ref":"#/components/schemas/ClientOutputConfig"},{"type":"null"}],"description":"Opt-in typed artifact contract for external-user conversation delivery."},"declarations":{"$ref":"#/components/schemas/EndpointDeclarations-Output","description":"What the endpoint's author declares about its calls. A declaration left out is unknown:\nwith no `writes`, the voice agent never treats the endpoint's calls as a booking or cancellation."},"max_response_length":{"type":"integer","title":"Max Response Length","description":"Truncate the final rendered string to this many chars.","default":0},"timeout_seconds":{"type":"number","title":"Timeout Seconds","description":"Per-request timeout.","default":30},"max_retries":{"type":"integer","title":"Max Retries","description":"How many times a failed call goes out again. A read goes again after a status in `retry_on_status`,\na timeout or a connection that failed. A write goes again only after a 429 or 503 that\n`retry_on_status` lists, or a connection that never opened. Integration writes carry no idempotency key, so a write\nthat timed out, lost its connection or got any other status may already have been made, and isn't\nsent again. A write is a call to an endpoint that declares `declarations.writes` of any kind but\n`none`, or declares nothing and uses POST, PUT, PATCH or DELETE. An endpoint that only reads over\nPOST can declare `declarations.writes.kind` `none` to retry like a read.","default":2},"retry_on_status":{"items":{"type":"integer"},"type":"array","uniqueItems":true,"title":"Retry On Status","description":"HTTP statuses after which a failed call goes out again, up to `max_retries` times. A write goes\nagain only after a 429 or 503 listed here: any other status, 502 and 504 included, can follow a\nwrite the vendor made, so a write that gets one isn't sent again. An endpoint that only reads over\nPOST can declare `declarations.writes.kind` `none` to retry on every status listed here."}},"type":"object","required":["id","name","description","method","path","declarations"],"title":"EndpointResponse","description":"Per-endpoint response."},"ClientOutputConfig":{"properties":{"type":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z][a-z0-9_.-]*$","title":"Type"},"schema_version":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9_.-]*$","title":"Schema Version"},"json_schema":{"additionalProperties":true,"type":"object","title":"Json Schema"},"max_bytes":{"type":"integer","maximum":262144,"minimum":1,"title":"Max Bytes","default":262144},"external_user_enabled":{"type":"boolean","title":"External User Enabled","default":false}},"type":"object","required":["type","schema_version","json_schema"],"title":"ClientOutputConfig","description":"External-user-safe projection contract for a direct integration endpoint.\n\nThe endpoint's existing ``response_template`` performs the projection. With no\ntemplate, the parsed upstream JSON body is emitted unchanged."},"EndpointDeclarations-Output":{"properties":{"writes":{"anyOf":[{"$ref":"#/components/schemas/EndpointWrites-Output"},{"type":"null"}],"description":"What a successful call writes and how its response reports it. Null when undeclared: the\nvoice agent then never treats the endpoint's calls as a booking or cancellation."},"reads":{"anyOf":[{"$ref":"#/components/schemas/EndpointReads"},{"type":"null"}],"description":"Whose patient record a call returns, and how the call names that patient: the one its\nrequest names (``params``), the ones its response holds (``response``), or none (``none``).\nNull when undeclared."},"verifies":{"anyOf":[{"$ref":"#/components/schemas/VerifiesCaller-Output"},{"type":"null"}],"description":"How a successful call verifies the caller, and as which patient, for a service that names\nthis endpoint its verifier (``Service.caller_verification_endpoint_id``). Null when undeclared:\na call verifies nobody."}},"type":"object","title":"EndpointDeclarations","description":"What an endpoint's author declares about its calls. Each declaration is optional, and one\nleft out is unknown, never a default the platform guesses."},"EndpointWrites-Output":{"properties":{"kind":{"$ref":"#/components/schemas/EndpointWriteKind","description":"What the write does, ``none`` when the endpoint never writes, ``varies`` when the\ncompanion skill that calls it says, or ``verification`` for a step that verifies the caller\nby sending or checking a one-time code, which the voice agent runs without asking the caller\nto agree or read back its destination first."},"success":{"anyOf":[{"$ref":"#/components/schemas/WriteSuccess"},{"type":"null"}],"description":"How the response says the write happened. Required unless ``kind`` is ``none``. A ``field`` or\n``graphql`` rule reads the write from the body: the member the pointer names, in a JSON object or\narray or a form-encoded body, or a GraphQL response's ``errors`` or ``data``. A 2xx whose body\ndoesn't hold it, such as an HTML page, plain text, an empty 204, JSON that doesn't parse, JSON\nwithout the field, or JSON that isn't a GraphQL response, such as a gateway's own, leaves the\nwrite's outcome unknown: the vendor may have made it. So does a GraphQL answer with errors\nthat neither says the mutation was refused or never ran nor holds its result, such as a payload\nnulled by an error below the mutation's field, which came after the write, an error with no\npath beside ``data``, or a null ``data`` in a document of more than one mutation, which hides\nwhat the ones before the failing one did. A field with another value, or a GraphQL error at the\nmutation's own field, with that field null, or in an answer with no ``data``, is a write that\ndidn't happen."}},"type":"object","required":["kind"],"title":"EndpointWrites","description":"What a successful call to an endpoint writes, and how its response reports the write."},"EndpointWriteKind":{"anyOf":[{"$ref":"#/components/schemas/WriteKind"},{"type":"string","enum":["none","varies","verification"]}]},"WriteKind":{"type":"string","enum":["booking","cancellation","reschedule","message","other"]},"WriteSuccess":{"oneOf":[{"$ref":"#/components/schemas/StatusSuccess"},{"$ref":"#/components/schemas/GraphQLSuccess"},{"$ref":"#/components/schemas/FieldSuccess"}],"discriminator":{"propertyName":"reported_by","mapping":{"field":"#/components/schemas/FieldSuccess","graphql":"#/components/schemas/GraphQLSuccess","http_status":"#/components/schemas/StatusSuccess"}}},"StatusSuccess":{"properties":{"reported_by":{"type":"string","const":"http_status","title":"Reported By"}},"type":"object","required":["reported_by"],"title":"StatusSuccess","description":"Any 2xx response is the write, or the verification. For a vendor that turns one down with an\nerror status."},"GraphQLSuccess":{"properties":{"reported_by":{"type":"string","const":"graphql","title":"Reported By"}},"type":"object","required":["reported_by"],"title":"GraphQLSuccess","description":"The request is a GraphQL mutation, and every mutation payload holds something other than null\npast its user errors. Top-level ``errors`` in an answer with no ``data`` are a request that never\nran. Beside ``data`` they're read by their ``path``: one at the mutation's own field, with that\nfield null, is its resolver refusing, and one below it came after the write, so a payload that\nstill holds its result wrote. A request that never ran, or a resolver that refused, is a write\nthat didn't happen. Any other answer with errors leaves the outcome unknown, such as a payload\nGraphQL nulled on the way up, or an error with no path beside ``data``. So does a null ``data`` in\na document of more than one mutation: they run in order, and the null hides what the ones before\nthe failing one did."},"FieldSuccess":{"properties":{"reported_by":{"type":"string","const":"field","title":"Reported By"},"pointer":{"type":"string","maxLength":512,"minLength":1,"title":"Pointer","description":"RFC 6901 JSON Pointer into the parsed response body, such as ``/code``."},"equals":{"anyOf":[{"type":"string","maxLength":256},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}],"title":"Equals","description":"The value at ``pointer`` when the write happened, or the caller verified. Compared as JSON:\n``\"0\"`` is not ``0``, and ``true`` is not ``1``. A form-encoded response holds only strings."}},"type":"object","required":["reported_by","pointer","equals"],"title":"FieldSuccess","description":"A field of the JSON response holds the value that means the write happened, or the caller\nverified."},"EndpointReads":{"oneOf":[{"$ref":"#/components/schemas/PatientInParams"},{"$ref":"#/components/schemas/PatientsInResponse"},{"$ref":"#/components/schemas/NoPatient"}],"discriminator":{"propertyName":"patient_in","mapping":{"none":"#/components/schemas/NoPatient","params":"#/components/schemas/PatientInParams","response":"#/components/schemas/PatientsInResponse"}}},"PatientInParams":{"properties":{"patient_in":{"type":"string","const":"params","title":"Patient In"},"params":{"items":{"type":"string","maxLength":128,"minLength":1},"type":"array","maxItems":8,"minItems":1,"title":"Params","description":"The input parameters that name the patient, by an identifier their record on file carries:\nits entity_id, MRN, FHIR id or source system id. Each one is a property of the endpoint's\n``input_schema``. On a service that verifies its callers through its own integration, they name\nthe patient by the identifier its verifier returns."}},"type":"object","required":["patient_in","params"],"title":"PatientInParams","description":"A call returns the record of the patient its request names."},"PatientsInResponse":{"properties":{"patient_in":{"type":"string","const":"response","title":"Patient In"},"records":{"type":"string","maxLength":512,"title":"Records","description":"RFC 6901 JSON Pointer into the parsed response body, before any template, to the records:\na list of records, or one record. ``/patients`` is the list under ``patients``, and the empty\npointer is the whole body. A held call keeps only the records a caller may hear, and nothing\nbeside them, and the template renders those."},"patient":{"type":"string","maxLength":512,"minLength":1,"title":"Patient","description":"RFC 6901 JSON Pointer into each record to the identifier of the patient it belongs to, one\ntheir record on file carries, such as ``/patient_id``. On a service that verifies its callers\nthrough its own integration, the identifier its verifier returns."}},"type":"object","required":["patient_in","records","patient"],"title":"PatientsInResponse","description":"A call's response holds the patient records it found: a search, or a read by some other key."},"NoPatient":{"properties":{"patient_in":{"type":"string","const":"none","title":"Patient In"}},"type":"object","required":["patient_in"],"title":"NoPatient","description":"A call returns no patient's record: practice data, such as open slots, providers or articles."},"VerifiesCaller-Output":{"properties":{"patient":{"type":"string","maxLength":512,"minLength":1,"title":"Patient","description":"RFC 6901 JSON Pointer into the parsed response body, before any template, to the identifier of\nthe patient the caller verified as, such as ``/patient/id``: the identifier the service's reads\nname the patient by. Only a string there with more than whitespace in it verifies anyone, never a\nnumber, and never a value the model sent."},"success":{"$ref":"#/components/schemas/VerificationSuccess","description":"How the response says the caller verified: any 2xx (``http_status``), or a field holding the\nvalue that means they did (``field``). A response that doesn't say so verifies nobody, whatever\nidentifier it holds. The author vouches that it says so only once the caller proved who they are\n(a code checked, a name and date of birth matched), never on a lookup or a code sent, and that\n``patient`` names the patient the vendor matched, not a copy of something the request sent."}},"type":"object","required":["patient","success"],"title":"VerifiesCaller","description":"A successful call verifies the caller as one patient: the one its response names. Declaring it\nopens nothing: only a service that names the endpoint its verifier\n(``Service.caller_verification_endpoint_id``) verifies anyone by it."},"VerificationSuccess":{"oneOf":[{"$ref":"#/components/schemas/StatusSuccess"},{"$ref":"#/components/schemas/FieldSuccess"}],"discriminator":{"propertyName":"reported_by","mapping":{"field":"#/components/schemas/FieldSuccess","http_status":"#/components/schemas/StatusSuccess"}}}}},"paths":{"/v1/{workspace_id}/integrations/{integration_id}/endpoints":{"get":{"tags":["Integrations"],"summary":"List endpoints","description":"List endpoints on a REST integration. Optionally search by name/description. Sort via repeated `sort_by` query params; each entry is `+field` or `-field` (allowed fields: name, created_at, updated_at). Default: `-created_at`. Cursor opaque — round-trip `continuation_token` unchanged with the same `sort_by`. Requires `Integration.view` permission.","operationId":"list-integration-endpoints","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SearchString"},{"type":"null"}],"description":"Substring match against name or description (case-insensitive).","title":"Search"},"description":"Substring match against name or description (case-insensitive)."},{"name":"sort_by","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Sort axes. Repeated query param stacks left-to-right. Each entry is `+field` or `-field`\n(direction prefix REQUIRED). Allowed fields: ``name``, ``created_at``, ``updated_at``.\nDefault: ``-created_at``. ``id`` is always appended as the final tiebreaker.","default":[],"title":"Sort By"},"description":"Sort axes. Repeated query param stacks left-to-right. Each entry is `+field` or `-field`\n(direction prefix REQUIRED). Allowed fields: ``name``, ``created_at``, ``updated_at``.\nDefault: ``-created_at``. ``id`` is always appended as the final tiebreaker."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"exclusiveMinimum":0,"description":"The maximum number of endpoints to return.","default":50,"title":"Limit"},"description":"The maximum number of endpoints to return."},{"name":"continuation_token","in":"query","required":false,"schema":{"description":"Opaque token from a prior response. Pass back unchanged with the same `sort_by` to advance.","title":"Continuation Token"},"description":"Opaque token from a prior response. Pass back unchanged with the same `sort_by` to advance."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/src__routes__integrations__list_endpoints__Response"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"422":{"description":"Query parameter failed validation or continuation_token is unparseable."}}}}}}
```

## Add an endpoint

> Add a new endpoint to a REST integration. Requires \`Integration.update\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Integrations"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"src__routes__integrations__create_endpoint__Request":{"properties":{"name":{"type":"string","maxLength":128,"minLength":2,"pattern":"^[a-z0-9][a-z0-9_-]*[a-z0-9]$","title":"Name","description":"Slug-like identifier, immutable post-create."},"description":{"type":"string","maxLength":2048,"minLength":1,"title":"Description","description":"LLM-facing description shown in the tool definition."},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"],"title":"Method","description":"HTTP method.","default":"POST"},"path":{"type":"string","maxLength":2048,"minLength":1,"pattern":"^[^/]","title":"Path","description":"URL path appended to the integration's base_url. Must NOT start with `/` — the path is\njoined onto the base URL (which already carries the leading slash). Supports `{param}` substitution."},"input_schema":{"additionalProperties":true,"type":"object","title":"Input Schema","description":"JSON Schema describing the tool's input arguments."},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers","description":"Request headers. An exact ``$param.<name>`` value binds and consumes an input parameter."},"static_body_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Body Fields","description":"Static body fields merged into POST/PUT/PATCH bodies. Keys are RFC 6901 JSON Pointers\n(e.g. ``/meta/tool_name`` for nested, ``/foo`` for a root-level field)."},"body_format":{"type":"string","enum":["json","form"],"title":"Body Format","description":"Outbound body encoding for write methods.","default":"json"},"response_template":{"anyOf":[{"type":"string","maxLength":16384},{"type":"null"}],"title":"Response Template","description":"Jinja template (sandboxed, StrictUndefined) rendered against the parsed JSON response."},"client_output":{"anyOf":[{"$ref":"#/components/schemas/ClientOutputConfig"},{"type":"null"}],"description":"Optional external-user-safe output contract. Uses response_template as its projection."},"declarations":{"$ref":"#/components/schemas/EndpointDeclarations-Input","description":"What the endpoint's author declares about its calls. Leave a declaration out when unknown:\nwith no `writes`, the voice agent never treats the endpoint's calls as a booking or cancellation."},"max_response_length":{"type":"integer","maximum":1000000,"minimum":0,"title":"Max Response Length","description":"Truncate the rendered string to this many chars. 0 = no truncation.","default":0},"timeout_seconds":{"type":"number","maximum":600,"exclusiveMinimum":0,"title":"Timeout Seconds","description":"Per-request timeout.","default":30},"max_retries":{"type":"integer","maximum":10,"minimum":0,"title":"Max Retries","description":"How many times a failed call goes out again. A read goes again after a status in `retry_on_status`,\na timeout or a connection that failed. A write goes again only after a 429 or 503 that\n`retry_on_status` lists, or a connection that never opened. Integration writes carry no idempotency key, so a write\nthat timed out, lost its connection or got any other status may already have been made, and isn't\nsent again. A write is a call to an endpoint that declares `declarations.writes` of any kind but\n`none`, or declares nothing and uses POST, PUT, PATCH or DELETE. An endpoint that only reads over\nPOST can declare `declarations.writes.kind` `none` to retry like a read.","default":2},"retry_on_status":{"items":{"type":"integer"},"type":"array","maxItems":20,"uniqueItems":true,"title":"Retry On Status","description":"HTTP statuses after which a failed call goes out again, up to `max_retries` times. A write goes\nagain only after a 429 or 503 listed here: any other status, 502 and 504 included, can follow a\nwrite the vendor made, so a write that gets one isn't sent again. An endpoint that only reads over\nPOST can declare `declarations.writes.kind` `none` to retry on every status listed here."}},"type":"object","required":["name","description","path"],"title":"Request","description":"Add a new endpoint to a REST integration."},"ClientOutputConfig":{"properties":{"type":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z][a-z0-9_.-]*$","title":"Type"},"schema_version":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9_.-]*$","title":"Schema Version"},"json_schema":{"additionalProperties":true,"type":"object","title":"Json Schema"},"max_bytes":{"type":"integer","maximum":262144,"minimum":1,"title":"Max Bytes","default":262144},"external_user_enabled":{"type":"boolean","title":"External User Enabled","default":false}},"type":"object","required":["type","schema_version","json_schema"],"title":"ClientOutputConfig","description":"External-user-safe projection contract for a direct integration endpoint.\n\nThe endpoint's existing ``response_template`` performs the projection. With no\ntemplate, the parsed upstream JSON body is emitted unchanged."},"EndpointDeclarations-Input":{"properties":{"writes":{"anyOf":[{"$ref":"#/components/schemas/EndpointWrites-Input"},{"type":"null"}],"description":"What a successful call writes and how its response reports it. Null when undeclared: the\nvoice agent then never treats the endpoint's calls as a booking or cancellation."},"reads":{"anyOf":[{"$ref":"#/components/schemas/EndpointReads"},{"type":"null"}],"description":"Whose patient record a call returns, and how the call names that patient: the one its\nrequest names (``params``), the ones its response holds (``response``), or none (``none``).\nNull when undeclared."},"verifies":{"anyOf":[{"$ref":"#/components/schemas/VerifiesCaller-Input"},{"type":"null"}],"description":"How a successful call verifies the caller, and as which patient, for a service that names\nthis endpoint its verifier (``Service.caller_verification_endpoint_id``). Null when undeclared:\na call verifies nobody."}},"type":"object","title":"EndpointDeclarations","description":"What an endpoint's author declares about its calls. Each declaration is optional, and one\nleft out is unknown, never a default the platform guesses."},"EndpointWrites-Input":{"properties":{"kind":{"$ref":"#/components/schemas/EndpointWriteKind","description":"What the write does, ``none`` when the endpoint never writes, ``varies`` when the\ncompanion skill that calls it says, or ``verification`` for a step that verifies the caller\nby sending or checking a one-time code, which the voice agent runs without asking the caller\nto agree or read back its destination first."},"success":{"anyOf":[{"$ref":"#/components/schemas/WriteSuccess"},{"type":"null"}],"description":"How the response says the write happened. Required unless ``kind`` is ``none``. A ``field`` or\n``graphql`` rule reads the write from the body: the member the pointer names, in a JSON object or\narray or a form-encoded body, or a GraphQL response's ``errors`` or ``data``. A 2xx whose body\ndoesn't hold it, such as an HTML page, plain text, an empty 204, JSON that doesn't parse, JSON\nwithout the field, or JSON that isn't a GraphQL response, such as a gateway's own, leaves the\nwrite's outcome unknown: the vendor may have made it. So does a GraphQL answer with errors\nthat neither says the mutation was refused or never ran nor holds its result, such as a payload\nnulled by an error below the mutation's field, which came after the write, an error with no\npath beside ``data``, or a null ``data`` in a document of more than one mutation, which hides\nwhat the ones before the failing one did. A field with another value, or a GraphQL error at the\nmutation's own field, with that field null, or in an answer with no ``data``, is a write that\ndidn't happen."}},"type":"object","required":["kind"],"title":"EndpointWrites","description":"What a successful call to an endpoint writes, and how its response reports the write."},"EndpointWriteKind":{"anyOf":[{"$ref":"#/components/schemas/WriteKind"},{"type":"string","enum":["none","varies","verification"]}]},"WriteKind":{"type":"string","enum":["booking","cancellation","reschedule","message","other"]},"WriteSuccess":{"oneOf":[{"$ref":"#/components/schemas/StatusSuccess"},{"$ref":"#/components/schemas/GraphQLSuccess"},{"$ref":"#/components/schemas/FieldSuccess"}],"discriminator":{"propertyName":"reported_by","mapping":{"field":"#/components/schemas/FieldSuccess","graphql":"#/components/schemas/GraphQLSuccess","http_status":"#/components/schemas/StatusSuccess"}}},"StatusSuccess":{"properties":{"reported_by":{"type":"string","const":"http_status","title":"Reported By"}},"type":"object","required":["reported_by"],"title":"StatusSuccess","description":"Any 2xx response is the write, or the verification. For a vendor that turns one down with an\nerror status."},"GraphQLSuccess":{"properties":{"reported_by":{"type":"string","const":"graphql","title":"Reported By"}},"type":"object","required":["reported_by"],"title":"GraphQLSuccess","description":"The request is a GraphQL mutation, and every mutation payload holds something other than null\npast its user errors. Top-level ``errors`` in an answer with no ``data`` are a request that never\nran. Beside ``data`` they're read by their ``path``: one at the mutation's own field, with that\nfield null, is its resolver refusing, and one below it came after the write, so a payload that\nstill holds its result wrote. A request that never ran, or a resolver that refused, is a write\nthat didn't happen. Any other answer with errors leaves the outcome unknown, such as a payload\nGraphQL nulled on the way up, or an error with no path beside ``data``. So does a null ``data`` in\na document of more than one mutation: they run in order, and the null hides what the ones before\nthe failing one did."},"FieldSuccess":{"properties":{"reported_by":{"type":"string","const":"field","title":"Reported By"},"pointer":{"type":"string","maxLength":512,"minLength":1,"title":"Pointer","description":"RFC 6901 JSON Pointer into the parsed response body, such as ``/code``."},"equals":{"anyOf":[{"type":"string","maxLength":256},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}],"title":"Equals","description":"The value at ``pointer`` when the write happened, or the caller verified. Compared as JSON:\n``\"0\"`` is not ``0``, and ``true`` is not ``1``. A form-encoded response holds only strings."}},"type":"object","required":["reported_by","pointer","equals"],"title":"FieldSuccess","description":"A field of the JSON response holds the value that means the write happened, or the caller\nverified."},"EndpointReads":{"oneOf":[{"$ref":"#/components/schemas/PatientInParams"},{"$ref":"#/components/schemas/PatientsInResponse"},{"$ref":"#/components/schemas/NoPatient"}],"discriminator":{"propertyName":"patient_in","mapping":{"none":"#/components/schemas/NoPatient","params":"#/components/schemas/PatientInParams","response":"#/components/schemas/PatientsInResponse"}}},"PatientInParams":{"properties":{"patient_in":{"type":"string","const":"params","title":"Patient In"},"params":{"items":{"type":"string","maxLength":128,"minLength":1},"type":"array","maxItems":8,"minItems":1,"title":"Params","description":"The input parameters that name the patient, by an identifier their record on file carries:\nits entity_id, MRN, FHIR id or source system id. Each one is a property of the endpoint's\n``input_schema``. On a service that verifies its callers through its own integration, they name\nthe patient by the identifier its verifier returns."}},"type":"object","required":["patient_in","params"],"title":"PatientInParams","description":"A call returns the record of the patient its request names."},"PatientsInResponse":{"properties":{"patient_in":{"type":"string","const":"response","title":"Patient In"},"records":{"type":"string","maxLength":512,"title":"Records","description":"RFC 6901 JSON Pointer into the parsed response body, before any template, to the records:\na list of records, or one record. ``/patients`` is the list under ``patients``, and the empty\npointer is the whole body. A held call keeps only the records a caller may hear, and nothing\nbeside them, and the template renders those."},"patient":{"type":"string","maxLength":512,"minLength":1,"title":"Patient","description":"RFC 6901 JSON Pointer into each record to the identifier of the patient it belongs to, one\ntheir record on file carries, such as ``/patient_id``. On a service that verifies its callers\nthrough its own integration, the identifier its verifier returns."}},"type":"object","required":["patient_in","records","patient"],"title":"PatientsInResponse","description":"A call's response holds the patient records it found: a search, or a read by some other key."},"NoPatient":{"properties":{"patient_in":{"type":"string","const":"none","title":"Patient In"}},"type":"object","required":["patient_in"],"title":"NoPatient","description":"A call returns no patient's record: practice data, such as open slots, providers or articles."},"VerifiesCaller-Input":{"properties":{"patient":{"type":"string","maxLength":512,"minLength":1,"title":"Patient","description":"RFC 6901 JSON Pointer into the parsed response body, before any template, to the identifier of\nthe patient the caller verified as, such as ``/patient/id``: the identifier the service's reads\nname the patient by. Only a string there with more than whitespace in it verifies anyone, never a\nnumber, and never a value the model sent."},"success":{"$ref":"#/components/schemas/VerificationSuccess","description":"How the response says the caller verified: any 2xx (``http_status``), or a field holding the\nvalue that means they did (``field``). A response that doesn't say so verifies nobody, whatever\nidentifier it holds. The author vouches that it says so only once the caller proved who they are\n(a code checked, a name and date of birth matched), never on a lookup or a code sent, and that\n``patient`` names the patient the vendor matched, not a copy of something the request sent."}},"type":"object","required":["patient","success"],"title":"VerifiesCaller","description":"A successful call verifies the caller as one patient: the one its response names. Declaring it\nopens nothing: only a service that names the endpoint its verifier\n(``Service.caller_verification_endpoint_id``) verifies anyone by it."},"VerificationSuccess":{"oneOf":[{"$ref":"#/components/schemas/StatusSuccess"},{"$ref":"#/components/schemas/FieldSuccess"}],"discriminator":{"propertyName":"reported_by","mapping":{"field":"#/components/schemas/FieldSuccess","http_status":"#/components/schemas/StatusSuccess"}}},"EndpointResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Endpoint ID — stable, used in subsequent GET/PATCH/DELETE/test URLs."},"name":{"type":"string","title":"Name","description":"Slug-like identifier. Unique per integration; immutable post-create."},"description":{"type":"string","title":"Description","description":"LLM-facing description."},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"],"title":"Method","description":"HTTP method."},"path":{"type":"string","title":"Path","description":"URL path appended to the integration's base_url."},"input_schema":{"additionalProperties":true,"type":"object","title":"Input Schema","description":"JSON Schema for the tool's input arguments."},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers","description":"Static headers or exact ``$param.<name>`` input-parameter bindings."},"static_body_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Body Fields","description":"Static body fields merged into every request. Keys are RFC 6901 JSON Pointers\n(e.g. ``/meta/tool_name`` for nested, ``/foo`` for a root-level field)."},"body_format":{"type":"string","enum":["json","form"],"title":"Body Format","description":"Outbound body encoding.","default":"json"},"response_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Template","description":"Jinja template rendered against the parsed JSON response."},"client_output":{"anyOf":[{"$ref":"#/components/schemas/ClientOutputConfig"},{"type":"null"}],"description":"Opt-in typed artifact contract for external-user conversation delivery."},"declarations":{"$ref":"#/components/schemas/EndpointDeclarations-Output","description":"What the endpoint's author declares about its calls. A declaration left out is unknown:\nwith no `writes`, the voice agent never treats the endpoint's calls as a booking or cancellation."},"max_response_length":{"type":"integer","title":"Max Response Length","description":"Truncate the final rendered string to this many chars.","default":0},"timeout_seconds":{"type":"number","title":"Timeout Seconds","description":"Per-request timeout.","default":30},"max_retries":{"type":"integer","title":"Max Retries","description":"How many times a failed call goes out again. A read goes again after a status in `retry_on_status`,\na timeout or a connection that failed. A write goes again only after a 429 or 503 that\n`retry_on_status` lists, or a connection that never opened. Integration writes carry no idempotency key, so a write\nthat timed out, lost its connection or got any other status may already have been made, and isn't\nsent again. A write is a call to an endpoint that declares `declarations.writes` of any kind but\n`none`, or declares nothing and uses POST, PUT, PATCH or DELETE. An endpoint that only reads over\nPOST can declare `declarations.writes.kind` `none` to retry like a read.","default":2},"retry_on_status":{"items":{"type":"integer"},"type":"array","uniqueItems":true,"title":"Retry On Status","description":"HTTP statuses after which a failed call goes out again, up to `max_retries` times. A write goes\nagain only after a 429 or 503 listed here: any other status, 502 and 504 included, can follow a\nwrite the vendor made, so a write that gets one isn't sent again. An endpoint that only reads over\nPOST can declare `declarations.writes.kind` `none` to retry on every status listed here."}},"type":"object","required":["id","name","description","method","path","declarations"],"title":"EndpointResponse","description":"Per-endpoint response."},"EndpointDeclarations-Output":{"properties":{"writes":{"anyOf":[{"$ref":"#/components/schemas/EndpointWrites-Output"},{"type":"null"}],"description":"What a successful call writes and how its response reports it. Null when undeclared: the\nvoice agent then never treats the endpoint's calls as a booking or cancellation."},"reads":{"anyOf":[{"$ref":"#/components/schemas/EndpointReads"},{"type":"null"}],"description":"Whose patient record a call returns, and how the call names that patient: the one its\nrequest names (``params``), the ones its response holds (``response``), or none (``none``).\nNull when undeclared."},"verifies":{"anyOf":[{"$ref":"#/components/schemas/VerifiesCaller-Output"},{"type":"null"}],"description":"How a successful call verifies the caller, and as which patient, for a service that names\nthis endpoint its verifier (``Service.caller_verification_endpoint_id``). Null when undeclared:\na call verifies nobody."}},"type":"object","title":"EndpointDeclarations","description":"What an endpoint's author declares about its calls. Each declaration is optional, and one\nleft out is unknown, never a default the platform guesses."},"EndpointWrites-Output":{"properties":{"kind":{"$ref":"#/components/schemas/EndpointWriteKind","description":"What the write does, ``none`` when the endpoint never writes, ``varies`` when the\ncompanion skill that calls it says, or ``verification`` for a step that verifies the caller\nby sending or checking a one-time code, which the voice agent runs without asking the caller\nto agree or read back its destination first."},"success":{"anyOf":[{"$ref":"#/components/schemas/WriteSuccess"},{"type":"null"}],"description":"How the response says the write happened. Required unless ``kind`` is ``none``. A ``field`` or\n``graphql`` rule reads the write from the body: the member the pointer names, in a JSON object or\narray or a form-encoded body, or a GraphQL response's ``errors`` or ``data``. A 2xx whose body\ndoesn't hold it, such as an HTML page, plain text, an empty 204, JSON that doesn't parse, JSON\nwithout the field, or JSON that isn't a GraphQL response, such as a gateway's own, leaves the\nwrite's outcome unknown: the vendor may have made it. So does a GraphQL answer with errors\nthat neither says the mutation was refused or never ran nor holds its result, such as a payload\nnulled by an error below the mutation's field, which came after the write, an error with no\npath beside ``data``, or a null ``data`` in a document of more than one mutation, which hides\nwhat the ones before the failing one did. A field with another value, or a GraphQL error at the\nmutation's own field, with that field null, or in an answer with no ``data``, is a write that\ndidn't happen."}},"type":"object","required":["kind"],"title":"EndpointWrites","description":"What a successful call to an endpoint writes, and how its response reports the write."},"VerifiesCaller-Output":{"properties":{"patient":{"type":"string","maxLength":512,"minLength":1,"title":"Patient","description":"RFC 6901 JSON Pointer into the parsed response body, before any template, to the identifier of\nthe patient the caller verified as, such as ``/patient/id``: the identifier the service's reads\nname the patient by. Only a string there with more than whitespace in it verifies anyone, never a\nnumber, and never a value the model sent."},"success":{"$ref":"#/components/schemas/VerificationSuccess","description":"How the response says the caller verified: any 2xx (``http_status``), or a field holding the\nvalue that means they did (``field``). A response that doesn't say so verifies nobody, whatever\nidentifier it holds. The author vouches that it says so only once the caller proved who they are\n(a code checked, a name and date of birth matched), never on a lookup or a code sent, and that\n``patient`` names the patient the vendor matched, not a copy of something the request sent."}},"type":"object","required":["patient","success"],"title":"VerifiesCaller","description":"A successful call verifies the caller as one patient: the one its response names. Declaring it\nopens nothing: only a service that names the endpoint its verifier\n(``Service.caller_verification_endpoint_id``) verifies anyone by it."}}},"paths":{"/v1/{workspace_id}/integrations/{integration_id}/endpoints":{"post":{"tags":["Integrations"],"summary":"Add an endpoint","description":"Add a new endpoint to a REST integration. Requires `Integration.update` permission.","operationId":"create-integration-endpoint","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/src__routes__integrations__create_endpoint__Request"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Integration not found."},"409":{"description":"Integration is managed or endpoint name already exists."},"422":{"description":"Invalid request body."}}}}}}
```

## Get an endpoint

> Get a single endpoint on a REST integration. Requires \`Integration.view\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Integrations"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"EndpointResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Endpoint ID — stable, used in subsequent GET/PATCH/DELETE/test URLs."},"name":{"type":"string","title":"Name","description":"Slug-like identifier. Unique per integration; immutable post-create."},"description":{"type":"string","title":"Description","description":"LLM-facing description."},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"],"title":"Method","description":"HTTP method."},"path":{"type":"string","title":"Path","description":"URL path appended to the integration's base_url."},"input_schema":{"additionalProperties":true,"type":"object","title":"Input Schema","description":"JSON Schema for the tool's input arguments."},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers","description":"Static headers or exact ``$param.<name>`` input-parameter bindings."},"static_body_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Body Fields","description":"Static body fields merged into every request. Keys are RFC 6901 JSON Pointers\n(e.g. ``/meta/tool_name`` for nested, ``/foo`` for a root-level field)."},"body_format":{"type":"string","enum":["json","form"],"title":"Body Format","description":"Outbound body encoding.","default":"json"},"response_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Template","description":"Jinja template rendered against the parsed JSON response."},"client_output":{"anyOf":[{"$ref":"#/components/schemas/ClientOutputConfig"},{"type":"null"}],"description":"Opt-in typed artifact contract for external-user conversation delivery."},"declarations":{"$ref":"#/components/schemas/EndpointDeclarations-Output","description":"What the endpoint's author declares about its calls. A declaration left out is unknown:\nwith no `writes`, the voice agent never treats the endpoint's calls as a booking or cancellation."},"max_response_length":{"type":"integer","title":"Max Response Length","description":"Truncate the final rendered string to this many chars.","default":0},"timeout_seconds":{"type":"number","title":"Timeout Seconds","description":"Per-request timeout.","default":30},"max_retries":{"type":"integer","title":"Max Retries","description":"How many times a failed call goes out again. A read goes again after a status in `retry_on_status`,\na timeout or a connection that failed. A write goes again only after a 429 or 503 that\n`retry_on_status` lists, or a connection that never opened. Integration writes carry no idempotency key, so a write\nthat timed out, lost its connection or got any other status may already have been made, and isn't\nsent again. A write is a call to an endpoint that declares `declarations.writes` of any kind but\n`none`, or declares nothing and uses POST, PUT, PATCH or DELETE. An endpoint that only reads over\nPOST can declare `declarations.writes.kind` `none` to retry like a read.","default":2},"retry_on_status":{"items":{"type":"integer"},"type":"array","uniqueItems":true,"title":"Retry On Status","description":"HTTP statuses after which a failed call goes out again, up to `max_retries` times. A write goes\nagain only after a 429 or 503 listed here: any other status, 502 and 504 included, can follow a\nwrite the vendor made, so a write that gets one isn't sent again. An endpoint that only reads over\nPOST can declare `declarations.writes.kind` `none` to retry on every status listed here."}},"type":"object","required":["id","name","description","method","path","declarations"],"title":"EndpointResponse","description":"Per-endpoint response."},"ClientOutputConfig":{"properties":{"type":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z][a-z0-9_.-]*$","title":"Type"},"schema_version":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9_.-]*$","title":"Schema Version"},"json_schema":{"additionalProperties":true,"type":"object","title":"Json Schema"},"max_bytes":{"type":"integer","maximum":262144,"minimum":1,"title":"Max Bytes","default":262144},"external_user_enabled":{"type":"boolean","title":"External User Enabled","default":false}},"type":"object","required":["type","schema_version","json_schema"],"title":"ClientOutputConfig","description":"External-user-safe projection contract for a direct integration endpoint.\n\nThe endpoint's existing ``response_template`` performs the projection. With no\ntemplate, the parsed upstream JSON body is emitted unchanged."},"EndpointDeclarations-Output":{"properties":{"writes":{"anyOf":[{"$ref":"#/components/schemas/EndpointWrites-Output"},{"type":"null"}],"description":"What a successful call writes and how its response reports it. Null when undeclared: the\nvoice agent then never treats the endpoint's calls as a booking or cancellation."},"reads":{"anyOf":[{"$ref":"#/components/schemas/EndpointReads"},{"type":"null"}],"description":"Whose patient record a call returns, and how the call names that patient: the one its\nrequest names (``params``), the ones its response holds (``response``), or none (``none``).\nNull when undeclared."},"verifies":{"anyOf":[{"$ref":"#/components/schemas/VerifiesCaller-Output"},{"type":"null"}],"description":"How a successful call verifies the caller, and as which patient, for a service that names\nthis endpoint its verifier (``Service.caller_verification_endpoint_id``). Null when undeclared:\na call verifies nobody."}},"type":"object","title":"EndpointDeclarations","description":"What an endpoint's author declares about its calls. Each declaration is optional, and one\nleft out is unknown, never a default the platform guesses."},"EndpointWrites-Output":{"properties":{"kind":{"$ref":"#/components/schemas/EndpointWriteKind","description":"What the write does, ``none`` when the endpoint never writes, ``varies`` when the\ncompanion skill that calls it says, or ``verification`` for a step that verifies the caller\nby sending or checking a one-time code, which the voice agent runs without asking the caller\nto agree or read back its destination first."},"success":{"anyOf":[{"$ref":"#/components/schemas/WriteSuccess"},{"type":"null"}],"description":"How the response says the write happened. Required unless ``kind`` is ``none``. A ``field`` or\n``graphql`` rule reads the write from the body: the member the pointer names, in a JSON object or\narray or a form-encoded body, or a GraphQL response's ``errors`` or ``data``. A 2xx whose body\ndoesn't hold it, such as an HTML page, plain text, an empty 204, JSON that doesn't parse, JSON\nwithout the field, or JSON that isn't a GraphQL response, such as a gateway's own, leaves the\nwrite's outcome unknown: the vendor may have made it. So does a GraphQL answer with errors\nthat neither says the mutation was refused or never ran nor holds its result, such as a payload\nnulled by an error below the mutation's field, which came after the write, an error with no\npath beside ``data``, or a null ``data`` in a document of more than one mutation, which hides\nwhat the ones before the failing one did. A field with another value, or a GraphQL error at the\nmutation's own field, with that field null, or in an answer with no ``data``, is a write that\ndidn't happen."}},"type":"object","required":["kind"],"title":"EndpointWrites","description":"What a successful call to an endpoint writes, and how its response reports the write."},"EndpointWriteKind":{"anyOf":[{"$ref":"#/components/schemas/WriteKind"},{"type":"string","enum":["none","varies","verification"]}]},"WriteKind":{"type":"string","enum":["booking","cancellation","reschedule","message","other"]},"WriteSuccess":{"oneOf":[{"$ref":"#/components/schemas/StatusSuccess"},{"$ref":"#/components/schemas/GraphQLSuccess"},{"$ref":"#/components/schemas/FieldSuccess"}],"discriminator":{"propertyName":"reported_by","mapping":{"field":"#/components/schemas/FieldSuccess","graphql":"#/components/schemas/GraphQLSuccess","http_status":"#/components/schemas/StatusSuccess"}}},"StatusSuccess":{"properties":{"reported_by":{"type":"string","const":"http_status","title":"Reported By"}},"type":"object","required":["reported_by"],"title":"StatusSuccess","description":"Any 2xx response is the write, or the verification. For a vendor that turns one down with an\nerror status."},"GraphQLSuccess":{"properties":{"reported_by":{"type":"string","const":"graphql","title":"Reported By"}},"type":"object","required":["reported_by"],"title":"GraphQLSuccess","description":"The request is a GraphQL mutation, and every mutation payload holds something other than null\npast its user errors. Top-level ``errors`` in an answer with no ``data`` are a request that never\nran. Beside ``data`` they're read by their ``path``: one at the mutation's own field, with that\nfield null, is its resolver refusing, and one below it came after the write, so a payload that\nstill holds its result wrote. A request that never ran, or a resolver that refused, is a write\nthat didn't happen. Any other answer with errors leaves the outcome unknown, such as a payload\nGraphQL nulled on the way up, or an error with no path beside ``data``. So does a null ``data`` in\na document of more than one mutation: they run in order, and the null hides what the ones before\nthe failing one did."},"FieldSuccess":{"properties":{"reported_by":{"type":"string","const":"field","title":"Reported By"},"pointer":{"type":"string","maxLength":512,"minLength":1,"title":"Pointer","description":"RFC 6901 JSON Pointer into the parsed response body, such as ``/code``."},"equals":{"anyOf":[{"type":"string","maxLength":256},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}],"title":"Equals","description":"The value at ``pointer`` when the write happened, or the caller verified. Compared as JSON:\n``\"0\"`` is not ``0``, and ``true`` is not ``1``. A form-encoded response holds only strings."}},"type":"object","required":["reported_by","pointer","equals"],"title":"FieldSuccess","description":"A field of the JSON response holds the value that means the write happened, or the caller\nverified."},"EndpointReads":{"oneOf":[{"$ref":"#/components/schemas/PatientInParams"},{"$ref":"#/components/schemas/PatientsInResponse"},{"$ref":"#/components/schemas/NoPatient"}],"discriminator":{"propertyName":"patient_in","mapping":{"none":"#/components/schemas/NoPatient","params":"#/components/schemas/PatientInParams","response":"#/components/schemas/PatientsInResponse"}}},"PatientInParams":{"properties":{"patient_in":{"type":"string","const":"params","title":"Patient In"},"params":{"items":{"type":"string","maxLength":128,"minLength":1},"type":"array","maxItems":8,"minItems":1,"title":"Params","description":"The input parameters that name the patient, by an identifier their record on file carries:\nits entity_id, MRN, FHIR id or source system id. Each one is a property of the endpoint's\n``input_schema``. On a service that verifies its callers through its own integration, they name\nthe patient by the identifier its verifier returns."}},"type":"object","required":["patient_in","params"],"title":"PatientInParams","description":"A call returns the record of the patient its request names."},"PatientsInResponse":{"properties":{"patient_in":{"type":"string","const":"response","title":"Patient In"},"records":{"type":"string","maxLength":512,"title":"Records","description":"RFC 6901 JSON Pointer into the parsed response body, before any template, to the records:\na list of records, or one record. ``/patients`` is the list under ``patients``, and the empty\npointer is the whole body. A held call keeps only the records a caller may hear, and nothing\nbeside them, and the template renders those."},"patient":{"type":"string","maxLength":512,"minLength":1,"title":"Patient","description":"RFC 6901 JSON Pointer into each record to the identifier of the patient it belongs to, one\ntheir record on file carries, such as ``/patient_id``. On a service that verifies its callers\nthrough its own integration, the identifier its verifier returns."}},"type":"object","required":["patient_in","records","patient"],"title":"PatientsInResponse","description":"A call's response holds the patient records it found: a search, or a read by some other key."},"NoPatient":{"properties":{"patient_in":{"type":"string","const":"none","title":"Patient In"}},"type":"object","required":["patient_in"],"title":"NoPatient","description":"A call returns no patient's record: practice data, such as open slots, providers or articles."},"VerifiesCaller-Output":{"properties":{"patient":{"type":"string","maxLength":512,"minLength":1,"title":"Patient","description":"RFC 6901 JSON Pointer into the parsed response body, before any template, to the identifier of\nthe patient the caller verified as, such as ``/patient/id``: the identifier the service's reads\nname the patient by. Only a string there with more than whitespace in it verifies anyone, never a\nnumber, and never a value the model sent."},"success":{"$ref":"#/components/schemas/VerificationSuccess","description":"How the response says the caller verified: any 2xx (``http_status``), or a field holding the\nvalue that means they did (``field``). A response that doesn't say so verifies nobody, whatever\nidentifier it holds. The author vouches that it says so only once the caller proved who they are\n(a code checked, a name and date of birth matched), never on a lookup or a code sent, and that\n``patient`` names the patient the vendor matched, not a copy of something the request sent."}},"type":"object","required":["patient","success"],"title":"VerifiesCaller","description":"A successful call verifies the caller as one patient: the one its response names. Declaring it\nopens nothing: only a service that names the endpoint its verifier\n(``Service.caller_verification_endpoint_id``) verifies anyone by it."},"VerificationSuccess":{"oneOf":[{"$ref":"#/components/schemas/StatusSuccess"},{"$ref":"#/components/schemas/FieldSuccess"}],"discriminator":{"propertyName":"reported_by","mapping":{"field":"#/components/schemas/FieldSuccess","http_status":"#/components/schemas/StatusSuccess"}}},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/integrations/{integration_id}/endpoints/{endpoint_id}":{"get":{"tags":["Integrations"],"summary":"Get an endpoint","description":"Get a single endpoint on a REST integration. Requires `Integration.view` permission.","operationId":"get-integration-endpoint","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}},{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Endpoint not found."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Delete an endpoint

> Delete an endpoint from a REST integration. Requires \`Integration.update\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Integrations"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/integrations/{integration_id}/endpoints/{endpoint_id}":{"delete":{"tags":["Integrations"],"summary":"Delete an endpoint","description":"Delete an endpoint from a REST integration. Requires `Integration.update` permission.","operationId":"delete-integration-endpoint","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}},{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Endpoint not found."},"409":{"description":"Managed integration endpoint mutation blocked."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Update an endpoint

> Patch an endpoint on a REST integration. The endpoint \`name\` is immutable. Pass \`null\` for \`response\_template\` or \`client\_output\` to clear it. \`declarations\` changes only the declarations it names; pass one as \`null\` to undeclare it. Every other field rejects explicit null at validation time. Requires \`Integration.update\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Integrations"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"src__routes__integrations__update_endpoint__Request":{"properties":{"description":{"type":"string","maxLength":2048,"minLength":1,"title":"Description"},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"],"title":"Method"},"path":{"type":"string","maxLength":2048,"minLength":1,"pattern":"^[^/]","title":"Path","description":"URL path appended to the integration's base_url. Must NOT start with `/`."},"input_schema":{"additionalProperties":true,"type":"object","title":"Input Schema"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"},"static_body_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Body Fields"},"body_format":{"type":"string","enum":["json","form"],"title":"Body Format"},"response_template":{"anyOf":[{"type":"string","maxLength":16384},{"type":"null"}],"title":"Response Template","description":"Jinja template; pass `null` to clear (the only DB-nullable column on this row)."},"client_output":{"anyOf":[{"$ref":"#/components/schemas/ClientOutputConfig"},{"type":"null"}],"title":"Client Output","description":"Client output contract; pass `null` to disable external artifact delivery."},"declarations":{"$ref":"#/components/schemas/EndpointDeclarations-Input","title":"Declarations","description":"The declarations to change. Each one named replaces the stored one (`null` undeclares it),\nand each one left out stays as stored."},"max_response_length":{"type":"integer","maximum":1000000,"minimum":0,"title":"Max Response Length"},"timeout_seconds":{"type":"number","maximum":600,"exclusiveMinimum":0,"title":"Timeout Seconds"},"max_retries":{"type":"integer","maximum":10,"minimum":0,"title":"Max Retries","description":"How many times a failed call goes out again. A read goes again after a status in `retry_on_status`,\na timeout or a connection that failed. A write goes again only after a 429 or 503 that\n`retry_on_status` lists, or a connection that never opened. Integration writes carry no idempotency key, so a write\nthat timed out, lost its connection or got any other status may already have been made, and isn't\nsent again. A write is a call to an endpoint that declares `declarations.writes` of any kind but\n`none`, or declares nothing and uses POST, PUT, PATCH or DELETE. An endpoint that only reads over\nPOST can declare `declarations.writes.kind` `none` to retry like a read."},"retry_on_status":{"items":{"type":"integer"},"type":"array","maxItems":20,"uniqueItems":true,"title":"Retry On Status","description":"HTTP statuses after which a failed call goes out again, up to `max_retries` times. A write goes\nagain only after a 429 or 503 listed here: any other status, 502 and 504 included, can follow a\nwrite the vendor made, so a write that gets one isn't sent again. An endpoint that only reads over\nPOST can declare `declarations.writes.kind` `none` to retry on every status listed here."}},"type":"object","title":"Request","description":"Patch an existing endpoint. ``name`` is immutable."},"ClientOutputConfig":{"properties":{"type":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z][a-z0-9_.-]*$","title":"Type"},"schema_version":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9_.-]*$","title":"Schema Version"},"json_schema":{"additionalProperties":true,"type":"object","title":"Json Schema"},"max_bytes":{"type":"integer","maximum":262144,"minimum":1,"title":"Max Bytes","default":262144},"external_user_enabled":{"type":"boolean","title":"External User Enabled","default":false}},"type":"object","required":["type","schema_version","json_schema"],"title":"ClientOutputConfig","description":"External-user-safe projection contract for a direct integration endpoint.\n\nThe endpoint's existing ``response_template`` performs the projection. With no\ntemplate, the parsed upstream JSON body is emitted unchanged."},"EndpointDeclarations-Input":{"properties":{"writes":{"anyOf":[{"$ref":"#/components/schemas/EndpointWrites-Input"},{"type":"null"}],"description":"What a successful call writes and how its response reports it. Null when undeclared: the\nvoice agent then never treats the endpoint's calls as a booking or cancellation."},"reads":{"anyOf":[{"$ref":"#/components/schemas/EndpointReads"},{"type":"null"}],"description":"Whose patient record a call returns, and how the call names that patient: the one its\nrequest names (``params``), the ones its response holds (``response``), or none (``none``).\nNull when undeclared."},"verifies":{"anyOf":[{"$ref":"#/components/schemas/VerifiesCaller-Input"},{"type":"null"}],"description":"How a successful call verifies the caller, and as which patient, for a service that names\nthis endpoint its verifier (``Service.caller_verification_endpoint_id``). Null when undeclared:\na call verifies nobody."}},"type":"object","title":"EndpointDeclarations","description":"What an endpoint's author declares about its calls. Each declaration is optional, and one\nleft out is unknown, never a default the platform guesses."},"EndpointWrites-Input":{"properties":{"kind":{"$ref":"#/components/schemas/EndpointWriteKind","description":"What the write does, ``none`` when the endpoint never writes, ``varies`` when the\ncompanion skill that calls it says, or ``verification`` for a step that verifies the caller\nby sending or checking a one-time code, which the voice agent runs without asking the caller\nto agree or read back its destination first."},"success":{"anyOf":[{"$ref":"#/components/schemas/WriteSuccess"},{"type":"null"}],"description":"How the response says the write happened. Required unless ``kind`` is ``none``. A ``field`` or\n``graphql`` rule reads the write from the body: the member the pointer names, in a JSON object or\narray or a form-encoded body, or a GraphQL response's ``errors`` or ``data``. A 2xx whose body\ndoesn't hold it, such as an HTML page, plain text, an empty 204, JSON that doesn't parse, JSON\nwithout the field, or JSON that isn't a GraphQL response, such as a gateway's own, leaves the\nwrite's outcome unknown: the vendor may have made it. So does a GraphQL answer with errors\nthat neither says the mutation was refused or never ran nor holds its result, such as a payload\nnulled by an error below the mutation's field, which came after the write, an error with no\npath beside ``data``, or a null ``data`` in a document of more than one mutation, which hides\nwhat the ones before the failing one did. A field with another value, or a GraphQL error at the\nmutation's own field, with that field null, or in an answer with no ``data``, is a write that\ndidn't happen."}},"type":"object","required":["kind"],"title":"EndpointWrites","description":"What a successful call to an endpoint writes, and how its response reports the write."},"EndpointWriteKind":{"anyOf":[{"$ref":"#/components/schemas/WriteKind"},{"type":"string","enum":["none","varies","verification"]}]},"WriteKind":{"type":"string","enum":["booking","cancellation","reschedule","message","other"]},"WriteSuccess":{"oneOf":[{"$ref":"#/components/schemas/StatusSuccess"},{"$ref":"#/components/schemas/GraphQLSuccess"},{"$ref":"#/components/schemas/FieldSuccess"}],"discriminator":{"propertyName":"reported_by","mapping":{"field":"#/components/schemas/FieldSuccess","graphql":"#/components/schemas/GraphQLSuccess","http_status":"#/components/schemas/StatusSuccess"}}},"StatusSuccess":{"properties":{"reported_by":{"type":"string","const":"http_status","title":"Reported By"}},"type":"object","required":["reported_by"],"title":"StatusSuccess","description":"Any 2xx response is the write, or the verification. For a vendor that turns one down with an\nerror status."},"GraphQLSuccess":{"properties":{"reported_by":{"type":"string","const":"graphql","title":"Reported By"}},"type":"object","required":["reported_by"],"title":"GraphQLSuccess","description":"The request is a GraphQL mutation, and every mutation payload holds something other than null\npast its user errors. Top-level ``errors`` in an answer with no ``data`` are a request that never\nran. Beside ``data`` they're read by their ``path``: one at the mutation's own field, with that\nfield null, is its resolver refusing, and one below it came after the write, so a payload that\nstill holds its result wrote. A request that never ran, or a resolver that refused, is a write\nthat didn't happen. Any other answer with errors leaves the outcome unknown, such as a payload\nGraphQL nulled on the way up, or an error with no path beside ``data``. So does a null ``data`` in\na document of more than one mutation: they run in order, and the null hides what the ones before\nthe failing one did."},"FieldSuccess":{"properties":{"reported_by":{"type":"string","const":"field","title":"Reported By"},"pointer":{"type":"string","maxLength":512,"minLength":1,"title":"Pointer","description":"RFC 6901 JSON Pointer into the parsed response body, such as ``/code``."},"equals":{"anyOf":[{"type":"string","maxLength":256},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}],"title":"Equals","description":"The value at ``pointer`` when the write happened, or the caller verified. Compared as JSON:\n``\"0\"`` is not ``0``, and ``true`` is not ``1``. A form-encoded response holds only strings."}},"type":"object","required":["reported_by","pointer","equals"],"title":"FieldSuccess","description":"A field of the JSON response holds the value that means the write happened, or the caller\nverified."},"EndpointReads":{"oneOf":[{"$ref":"#/components/schemas/PatientInParams"},{"$ref":"#/components/schemas/PatientsInResponse"},{"$ref":"#/components/schemas/NoPatient"}],"discriminator":{"propertyName":"patient_in","mapping":{"none":"#/components/schemas/NoPatient","params":"#/components/schemas/PatientInParams","response":"#/components/schemas/PatientsInResponse"}}},"PatientInParams":{"properties":{"patient_in":{"type":"string","const":"params","title":"Patient In"},"params":{"items":{"type":"string","maxLength":128,"minLength":1},"type":"array","maxItems":8,"minItems":1,"title":"Params","description":"The input parameters that name the patient, by an identifier their record on file carries:\nits entity_id, MRN, FHIR id or source system id. Each one is a property of the endpoint's\n``input_schema``. On a service that verifies its callers through its own integration, they name\nthe patient by the identifier its verifier returns."}},"type":"object","required":["patient_in","params"],"title":"PatientInParams","description":"A call returns the record of the patient its request names."},"PatientsInResponse":{"properties":{"patient_in":{"type":"string","const":"response","title":"Patient In"},"records":{"type":"string","maxLength":512,"title":"Records","description":"RFC 6901 JSON Pointer into the parsed response body, before any template, to the records:\na list of records, or one record. ``/patients`` is the list under ``patients``, and the empty\npointer is the whole body. A held call keeps only the records a caller may hear, and nothing\nbeside them, and the template renders those."},"patient":{"type":"string","maxLength":512,"minLength":1,"title":"Patient","description":"RFC 6901 JSON Pointer into each record to the identifier of the patient it belongs to, one\ntheir record on file carries, such as ``/patient_id``. On a service that verifies its callers\nthrough its own integration, the identifier its verifier returns."}},"type":"object","required":["patient_in","records","patient"],"title":"PatientsInResponse","description":"A call's response holds the patient records it found: a search, or a read by some other key."},"NoPatient":{"properties":{"patient_in":{"type":"string","const":"none","title":"Patient In"}},"type":"object","required":["patient_in"],"title":"NoPatient","description":"A call returns no patient's record: practice data, such as open slots, providers or articles."},"VerifiesCaller-Input":{"properties":{"patient":{"type":"string","maxLength":512,"minLength":1,"title":"Patient","description":"RFC 6901 JSON Pointer into the parsed response body, before any template, to the identifier of\nthe patient the caller verified as, such as ``/patient/id``: the identifier the service's reads\nname the patient by. Only a string there with more than whitespace in it verifies anyone, never a\nnumber, and never a value the model sent."},"success":{"$ref":"#/components/schemas/VerificationSuccess","description":"How the response says the caller verified: any 2xx (``http_status``), or a field holding the\nvalue that means they did (``field``). A response that doesn't say so verifies nobody, whatever\nidentifier it holds. The author vouches that it says so only once the caller proved who they are\n(a code checked, a name and date of birth matched), never on a lookup or a code sent, and that\n``patient`` names the patient the vendor matched, not a copy of something the request sent."}},"type":"object","required":["patient","success"],"title":"VerifiesCaller","description":"A successful call verifies the caller as one patient: the one its response names. Declaring it\nopens nothing: only a service that names the endpoint its verifier\n(``Service.caller_verification_endpoint_id``) verifies anyone by it."},"VerificationSuccess":{"oneOf":[{"$ref":"#/components/schemas/StatusSuccess"},{"$ref":"#/components/schemas/FieldSuccess"}],"discriminator":{"propertyName":"reported_by","mapping":{"field":"#/components/schemas/FieldSuccess","http_status":"#/components/schemas/StatusSuccess"}}},"EndpointResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Endpoint ID — stable, used in subsequent GET/PATCH/DELETE/test URLs."},"name":{"type":"string","title":"Name","description":"Slug-like identifier. Unique per integration; immutable post-create."},"description":{"type":"string","title":"Description","description":"LLM-facing description."},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"],"title":"Method","description":"HTTP method."},"path":{"type":"string","title":"Path","description":"URL path appended to the integration's base_url."},"input_schema":{"additionalProperties":true,"type":"object","title":"Input Schema","description":"JSON Schema for the tool's input arguments."},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers","description":"Static headers or exact ``$param.<name>`` input-parameter bindings."},"static_body_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Static Body Fields","description":"Static body fields merged into every request. Keys are RFC 6901 JSON Pointers\n(e.g. ``/meta/tool_name`` for nested, ``/foo`` for a root-level field)."},"body_format":{"type":"string","enum":["json","form"],"title":"Body Format","description":"Outbound body encoding.","default":"json"},"response_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Template","description":"Jinja template rendered against the parsed JSON response."},"client_output":{"anyOf":[{"$ref":"#/components/schemas/ClientOutputConfig"},{"type":"null"}],"description":"Opt-in typed artifact contract for external-user conversation delivery."},"declarations":{"$ref":"#/components/schemas/EndpointDeclarations-Output","description":"What the endpoint's author declares about its calls. A declaration left out is unknown:\nwith no `writes`, the voice agent never treats the endpoint's calls as a booking or cancellation."},"max_response_length":{"type":"integer","title":"Max Response Length","description":"Truncate the final rendered string to this many chars.","default":0},"timeout_seconds":{"type":"number","title":"Timeout Seconds","description":"Per-request timeout.","default":30},"max_retries":{"type":"integer","title":"Max Retries","description":"How many times a failed call goes out again. A read goes again after a status in `retry_on_status`,\na timeout or a connection that failed. A write goes again only after a 429 or 503 that\n`retry_on_status` lists, or a connection that never opened. Integration writes carry no idempotency key, so a write\nthat timed out, lost its connection or got any other status may already have been made, and isn't\nsent again. A write is a call to an endpoint that declares `declarations.writes` of any kind but\n`none`, or declares nothing and uses POST, PUT, PATCH or DELETE. An endpoint that only reads over\nPOST can declare `declarations.writes.kind` `none` to retry like a read.","default":2},"retry_on_status":{"items":{"type":"integer"},"type":"array","uniqueItems":true,"title":"Retry On Status","description":"HTTP statuses after which a failed call goes out again, up to `max_retries` times. A write goes\nagain only after a 429 or 503 listed here: any other status, 502 and 504 included, can follow a\nwrite the vendor made, so a write that gets one isn't sent again. An endpoint that only reads over\nPOST can declare `declarations.writes.kind` `none` to retry on every status listed here."}},"type":"object","required":["id","name","description","method","path","declarations"],"title":"EndpointResponse","description":"Per-endpoint response."},"EndpointDeclarations-Output":{"properties":{"writes":{"anyOf":[{"$ref":"#/components/schemas/EndpointWrites-Output"},{"type":"null"}],"description":"What a successful call writes and how its response reports it. Null when undeclared: the\nvoice agent then never treats the endpoint's calls as a booking or cancellation."},"reads":{"anyOf":[{"$ref":"#/components/schemas/EndpointReads"},{"type":"null"}],"description":"Whose patient record a call returns, and how the call names that patient: the one its\nrequest names (``params``), the ones its response holds (``response``), or none (``none``).\nNull when undeclared."},"verifies":{"anyOf":[{"$ref":"#/components/schemas/VerifiesCaller-Output"},{"type":"null"}],"description":"How a successful call verifies the caller, and as which patient, for a service that names\nthis endpoint its verifier (``Service.caller_verification_endpoint_id``). Null when undeclared:\na call verifies nobody."}},"type":"object","title":"EndpointDeclarations","description":"What an endpoint's author declares about its calls. Each declaration is optional, and one\nleft out is unknown, never a default the platform guesses."},"EndpointWrites-Output":{"properties":{"kind":{"$ref":"#/components/schemas/EndpointWriteKind","description":"What the write does, ``none`` when the endpoint never writes, ``varies`` when the\ncompanion skill that calls it says, or ``verification`` for a step that verifies the caller\nby sending or checking a one-time code, which the voice agent runs without asking the caller\nto agree or read back its destination first."},"success":{"anyOf":[{"$ref":"#/components/schemas/WriteSuccess"},{"type":"null"}],"description":"How the response says the write happened. Required unless ``kind`` is ``none``. A ``field`` or\n``graphql`` rule reads the write from the body: the member the pointer names, in a JSON object or\narray or a form-encoded body, or a GraphQL response's ``errors`` or ``data``. A 2xx whose body\ndoesn't hold it, such as an HTML page, plain text, an empty 204, JSON that doesn't parse, JSON\nwithout the field, or JSON that isn't a GraphQL response, such as a gateway's own, leaves the\nwrite's outcome unknown: the vendor may have made it. So does a GraphQL answer with errors\nthat neither says the mutation was refused or never ran nor holds its result, such as a payload\nnulled by an error below the mutation's field, which came after the write, an error with no\npath beside ``data``, or a null ``data`` in a document of more than one mutation, which hides\nwhat the ones before the failing one did. A field with another value, or a GraphQL error at the\nmutation's own field, with that field null, or in an answer with no ``data``, is a write that\ndidn't happen."}},"type":"object","required":["kind"],"title":"EndpointWrites","description":"What a successful call to an endpoint writes, and how its response reports the write."},"VerifiesCaller-Output":{"properties":{"patient":{"type":"string","maxLength":512,"minLength":1,"title":"Patient","description":"RFC 6901 JSON Pointer into the parsed response body, before any template, to the identifier of\nthe patient the caller verified as, such as ``/patient/id``: the identifier the service's reads\nname the patient by. Only a string there with more than whitespace in it verifies anyone, never a\nnumber, and never a value the model sent."},"success":{"$ref":"#/components/schemas/VerificationSuccess","description":"How the response says the caller verified: any 2xx (``http_status``), or a field holding the\nvalue that means they did (``field``). A response that doesn't say so verifies nobody, whatever\nidentifier it holds. The author vouches that it says so only once the caller proved who they are\n(a code checked, a name and date of birth matched), never on a lookup or a code sent, and that\n``patient`` names the patient the vendor matched, not a copy of something the request sent."}},"type":"object","required":["patient","success"],"title":"VerifiesCaller","description":"A successful call verifies the caller as one patient: the one its response names. Declaring it\nopens nothing: only a service that names the endpoint its verifier\n(``Service.caller_verification_endpoint_id``) verifies anyone by it."}}},"paths":{"/v1/{workspace_id}/integrations/{integration_id}/endpoints/{endpoint_id}":{"patch":{"tags":["Integrations"],"summary":"Update an endpoint","description":"Patch an endpoint on a REST integration. The endpoint `name` is immutable. Pass `null` for `response_template` or `client_output` to clear it. `declarations` changes only the declarations it names; pass one as `null` to undeclare it. Every other field rejects explicit null at validation time. Requires `Integration.update` permission.","operationId":"update-integration-endpoint","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}},{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/src__routes__integrations__update_endpoint__Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Endpoint not found."},"409":{"description":"Managed integration endpoint mutation blocked."},"422":{"description":"Invalid request body, NOT NULL field set to null, no fields to update, or a `declarations.reads` that names a parameter the endpoint's `input_schema` doesn't declare."}}}}}}
```

## Test an integration endpoint

> Execute an integration endpoint with test parameters and return the full response pipeline breakdown. Requires \`Integration.view\` permission.\
> \
> The test waits as long as the endpoint's \`timeout\_seconds\` and retries allow. A text turn gives up on a call at 20 s, retries included, while voice calls, background calls and a companion skill's sub-tools keep the endpoint's timeout. So an endpoint can pass this test and still time out on a text turn: \`over\_text\_budget\` says when this call took \`text\_budget\_ms\` or longer.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Integrations"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"src__routes__integrations__test_endpoint__Request":{"properties":{"params":{"additionalProperties":true,"type":"object","maxProperties":200,"title":"Params","description":"Tool arguments — the endpoint's ``input_schema``-declared inputs (path/query/body)."},"auth_params":{"additionalProperties":true,"type":"object","maxProperties":200,"title":"Auth Params","description":"Caller-supplied values for auth-routed params — the AUTH-ONLY channel.\n\nA ``custom_token_exchange`` integration declares ``param_headers`` /\n``param_body_fields`` whose ``param_name`` placeholders are NOT part of the\nendpoint's ``input_schema`` (they feed the pre-flight token exchange, not the\nendpoint call). They never reach the auth renderer through ``params`` alone, so\nthe renderer raised before any HTTP call. Supply them here to exercise the\nexchange end-to-end.\n\nPLA-980: these values resolve the token exchange but are STRIPPED before the\ndownstream endpoint request is built, so a pure-auth secret put here never\nechoes into the outbound body/query. A param that legitimately feeds BOTH the\nexchange and the endpoint call belongs in ``params`` (which keeps its existing\ndual-use behavior). ``auth_params`` is for pure-auth keys absent from ``params``;\non a key collision the ``params`` value wins (for both the exchange and the call)."}},"type":"object","title":"Request","description":"Inputs to ``POST /{integration_id}/endpoints/{endpoint_id}/test``."},"src__routes__integrations__test_endpoint__Response":{"properties":{"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code","description":"HTTP status code from the upstream call."},"duration_ms":{"type":"number","title":"Duration Ms","description":"Request duration in milliseconds.","default":0},"retries":{"type":"integer","title":"Retries","description":"Number of retry attempts.","default":0},"raw_response":{"title":"Raw Response","description":"Raw response body from the upstream call."},"rendered":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rendered","description":"Response after Jinja `response_template` rendering, pre-truncation."},"final_result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Result","description":"Final processed result (rendered + truncated to max_response_length)."},"outcome":{"type":"string","enum":["succeeded","failed","unknown"],"title":"Outcome","description":"How the call ended. `succeeded`: the vendor answered with a 2xx, and `wrote` says whether a\ndeclared write happened. A write that succeeded can still carry an `error` saying why its body\ncouldn't be shaped into the result. `failed`: the call failed, and nothing says the vendor acted\non it. `unknown`: a write went out and no answer says whether it went through: a timeout, a\ndropped connection, a gateway's 502, 504, 520 or 524, or a 2xx or 3xx that still failed, such as\na 2xx whose body a `field` or `graphql` success rule can't read. The vendor may have made the\nwrite, so check the vendor before sending it again."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Error message if the call failed or its `outcome` is `unknown`, and then it ends by saying the\nvendor may have made the write. A non-null `error` alone doesn't mean nothing was written: read\n`outcome`. Also set on a write the vendor answered with a 2xx whose `response_template` failed,\nor whose body didn't parse when no `field` or `graphql` success rule reads it: the write went\nthrough, `outcome` is `succeeded`, and `final_result` is the body unshaped."},"artifact":{"anyOf":[{"$ref":"#/components/schemas/ClientArtifact"},{"type":"null"}],"description":"Client artifact preview after JSON Schema and size validation."},"artifact_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Error","description":"Safe validation summary when client output is enabled but cannot be emitted."},"wrote":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Wrote","description":"Whether the endpoint's declared write happened, as its `declarations.writes.success` reads\nthis response. Null when the endpoint declares no write, or the call didn't succeed. After an\n`unknown` outcome null says nothing either way: the vendor may have made the write."},"over_text_budget":{"type":"boolean","title":"Over Text Budget","description":"Whether this call took as long as a text turn waits on one, or longer: `duration_ms`, which counts retries and the waits between them, is `text_budget_ms` or more. The test waits as long as the endpoint's `timeout_seconds` and retries allow, but a text turn gives up on a call at 20 s, so a call this slow fails there as a timeout even when it succeeded here. A write the text turn cuts off mid-request has an unknown outcome. Voice calls, background calls and a companion skill's sub-tools keep the endpoint's timeout."},"text_budget_ms":{"type":"integer","title":"Text Budget Ms","description":"How long a text turn waits on an integration call before it gives up: 20000 ms (20 s), retries and the waits between them included. Each attempt still stops at the endpoint's `timeout_seconds`, so an endpoint set lower keeps its own timeout. Voice calls, background calls and a companion skill's sub-tools aren't held to it: they keep the endpoint's timeout."}},"type":"object","required":["outcome","over_text_budget","text_budget_ms"],"title":"Response","description":"Full breadcrumb returned by the test handler."},"ClientArtifact":{"properties":{"type":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z][a-z0-9_.-]*$","title":"Type"},"schema_version":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9_.-]*$","title":"Schema Version"},"payload":{"$ref":"#/components/schemas/ClientArtifactPayload"}},"type":"object","required":["type","schema_version","payload"],"title":"ClientArtifact","description":"A versioned JSON payload that a client can render as a product component."},"ClientArtifactPayload":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"},{"items":{"$ref":"#/components/schemas/JsonValue"},"type":"array"}]},"JsonValue":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"},{"items":{"$ref":"#/components/schemas/JsonValue"},"type":"array"},{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"},{"type":"null"}]},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/integrations/{integration_id}/endpoints/{endpoint_id}/test":{"post":{"tags":["Integrations"],"summary":"Test an integration endpoint","description":"Execute an integration endpoint with test parameters and return the full response pipeline breakdown. Requires `Integration.view` permission.\n\nThe test waits as long as the endpoint's `timeout_seconds` and retries allow. A text turn gives up on a call at 20 s, retries included, while voice calls, background calls and a companion skill's sub-tools keep the endpoint's timeout. So an endpoint can pass this test and still time out on a text turn: `over_text_budget` says when this call took `text_budget_ms` or longer.","operationId":"test-integration-endpoint","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}},{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/src__routes__integrations__test_endpoint__Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/src__routes__integrations__test_endpoint__Response"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Integration or endpoint not found."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.concurrence.com/api-reference/readme/platform/integrations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
