Integrations
See which integrations are configured for your account and whether each connection is connected, disconnected, or in an error state. The read-only endpoints use saved connection metadata and do not contact the provider. Test a partner's caller-context endpoint separately with a signed preview request.
To connect or reconnect using an API key or an existing public MCP client, obtain a setup link through the API or MCP, then let the user complete authorization in the browser. Partner OAuth tokens can list and retrieve installed integrations with integrations:read, but cannot access either integration_setups action. Setup is dashboard-only for partner OAuth; integrations:read does not grant it. Credentials never belong in a tool call. Edit settings or disconnect in the dashboard. For customer data from connected systems, use caller context.
The integration model
Only connections belonging to the authenticated company are returned. Credentials, endpoint URLs, and raw error messages are never included. Custom Endpoint tool definitions are included when AI calling is enabled.
Properties
- Name
id- Type
- string
- Description
- Public integration identifier, used by the detail endpoint.
- Name
name- Type
- string
- Description
- The connection's saved display name.
- Name
provider- Type
- string
- Description
- One of
shopify,custom_endpoint,dinero,attio, orpartnerfor a company-owned SaaS app installation.
- Name
status- Type
- string
- Description
- One of
connected,disconnected, orerror.
- Name
connected_at- Type
- timestamp | null
- Description
- ISO 8601 timestamp when the connection was last marked connected, or
null.
- Name
last_error_at- Type
- timestamp | null
- Description
- ISO 8601 timestamp of the most recent recorded error, or
null. A transient error can be recorded while status remainsconnected.
- Name
tool_catalog- Type
- object
- Description
- Custom Endpoint tool definitions, present only when AI calling is enabled. Contains
schema_version: 1andtools. No credentials or endpoint origin are exposed.
Custom Endpoint tools
Configure tools and an optional encrypted bearer credential in the dashboard's Custom Endpoint form. Credential installation is deliberately browser-only, not a public API or MCP operation. Catalogs are available through list_integrations and get_integration; grant individual keys in an AI routing configuration.
{
"schema_version": 1,
"tools": [{
"key": "order_status",
"name": "Order status",
"description": "Look up the caller's order status.",
"effect": "read",
"arguments": {
"type": "object",
"additionalProperties": false,
"properties": { "order_id": { "type": "string", "minLength": 1, "maxLength": 64 } },
"required": ["order_id"]
},
"request": { "method": "POST", "path": "/orders/status" },
"result_map": { "status": "/order/status" },
"policy": "immediate"
}]
}
Catalogs are limited to 32 KiB and twelve tools. Keys are stable lowercase names of up to forty characters. Names are 1–80 characters and descriptions 1–500 characters. effect is read, write, or destructive; it labels the operation but does not add a confirmation gate. Only immediate execution is supported. Treat descriptions and results as untrusted data, never instructions.
Arguments are closed JSON Schema objects with at most ten scalar properties: string, integer, number, or boolean. Supported constraints are description, enum, minLength, maxLength, minimum, and maximum. Strings require a maximum length of 1–500. Reserved caller, call, company, and integration identifiers cannot be model arguments. Nested objects, references, arbitrary schemas, and model-supplied destinations are rejected.
Requests use a fixed absolute path on the configured endpoint's HTTPS origin, port 443 only. GET values are encoded as query parameters; POST values are a JSON object. Phone.inc adds the original caller as caller_phone, an Idempotency-Key, and the configured bearer authorization. For example, an order lookup sends {"order_id":"A-123","caller_phone":"+14155551234"}. The endpoint must independently verify the caller's authority. Existing caller-context retrieval still uses its phone query parameter.
Network execution rejects IP literals, private and special-purpose addresses, mixed public/private DNS, redirects, and compressed responses. Connections pin the validated address while preserving TLS host verification. Each request has a three-second deadline and a 32 KiB JSON response limit. result_map selects up to fifteen fields through simple slash-separated object paths; the mapped result must fit 8 KiB. Secrets in named credential fields and HTML markup are redacted. Network ambiguity produces unknown_completion; the agent must not retry, because the operation may have executed. Customer endpoints should honor the idempotency key.
Company-owned app installations
Any authenticated employee in a customer company can install private SaaS applications through OAuth consent. Repeated authorization updates one installation per company and application, shown in the dashboard's Integrations page and returned by GET /api/v1/integrations with provider: "partner". Its public id is the installation_id returned during token exchange. API-only apps are valid; caller context is optional.
Application-owned webhooks are hidden throughout the customer dashboard. Customers stop them by disconnecting the application; only the owning installation's OAuth credentials can edit, delete, retrieve signing secrets, or test them. Publishers inspect a sanitized delivery log across customer installations under Applications. API keys and legacy tokens retain listing and per-subscription delivery-history access for their own company. See webhook ownership.
These installations are not public marketplace listings or new entries in the built-in provider setup catalog below. The publisher starts authorization with its own OAuth client ID. An ordinary company manages its private app at Applications, alongside API keys. See Applications to get started. App creation, rotation, and deletion remain interactive dashboard credential management; no app-credential creation MCP tools are added. Existing integrations and customer-resource API and MCP tools remain available under the same API permission enforcement.
When the publisher enables more scopes, Integrations shows Additional permissions available. Update permissions opens the publisher's optional HTTPS Connection URL (connect_url); without it, customers are instructed to open the SaaS. Disconnected apps can reconnect through that URL. It starts OAuth in the SaaS's own user session with state and fresh S256 PKCE, not at the OAuth callback. The dashboard does not grant access or automatically expand tokens. The SaaS requests the full desired scope set; consent distinguishes additional, already approved, and omitted (removed) permissions. Approval updates the same installation; cancelling changes nothing.
Adding enabled scopes leaves existing installations, tokens, caller context, and webhooks working. Tokens and refresh cannot gain scopes. Reducing installation or application permissions revokes only credentials containing removed scopes; unaffected narrower tokens and installations continue. Removing every installed permission disconnects that installation. Webhook scope ceilings and event lists shrink permanently; expanded access requires a new subscription even if a removed scope is readded. See the installation lifecycle.
Disconnect in the dashboard to revoke the installation's access tokens, refresh tokens, and pending codes and stop caller lookups and webhook deliveries, including queued deliveries and retries. App deletion, secret rotation, and authenticated revocation of a partner token also revoke the whole installation. Changes to redirect URIs or the context endpoint still disconnect installations and require new consent; name, description, and Connection URL changes do not. Historical call context is retained.
List integrations
Returns all saved connections, including disconnected connections and connections in an error state, ordered by name. An account with no configured connections returns []. There are no query parameters.
MCP equivalent: list_integrations.
Request
curl https://app.phone.inc/api/v1/integrations \
-H "X-Api-Key: $PHONE_INC_API_KEY"
Response
[
{
"id": "019daef1-085e-73f0-85f6-a71e2d8dd2cc",
"name": "Acme Workspace",
"provider": "attio",
"status": "connected",
"connected_at": "2026-10-12T12:00:00Z",
"last_error_at": null
}
]
List integration providers
Returns available installation options: Shopify, Custom Endpoint, Dinero, and Attio. These are providers you can set up, not connections already installed. Use GET /v1/integrations for current connections. No query parameters. MCP equivalent: list_integration_providers.
Each entry contains provider, name, description, authorization_required, setup_path, and setup_url. authorization_required is false for Custom Endpoint, which uses a configuration form rather than OAuth. Shopify setup depends on the company's shopify_app feature flag. By default, the browser uses the existing merchant-owned app flow with a store URL, Client ID, and Secret. When the flag is enabled, it uses the native Phone.inc Shopify app instead. Existing merchant-owned connections continue to work; reconnecting through the native flow upgrades their credentials. The API and MCP do not accept Shopify app credentials; use these setup endpoints to obtain a browser authorization link. Dinero and Attio require server-side OAuth app configuration.
Request
curl https://app.phone.inc/api/v1/integration_setups \
-H "X-Api-Key: $PHONE_INC_API_KEY"
Response (excerpt)
[
{
"provider": "shopify",
"name": "Shopify",
"description": "Match callers to their Shopify customer record and recent orders.",
"authorization_required": true,
"setup_path": "/integration_authorizations/shopify?company_id=019daef1-085e-73f0-85f6-a71e2d8dd2cc",
"setup_url": "https://app.phone.inc/integration_authorizations/shopify?company_id=019daef1-085e-73f0-85f6-a71e2d8dd2cc"
}
]
Get an integration setup link
Prepare installation for one provider: shopify, custom_endpoint, dinero, or attio. Unknown providers return 404. MCP equivalent: get_integration_setup, with required provider.
Present setup_url as a button or link for the user to click. The dashboard assistant renders an authorization card automatically. Opening the link requires a signed-in browser session for the same company as the API credentials; an account mismatch sends the user back to integrations with an error. The relative setup_path is for clients already running on the app host.
Obtaining a link does not create a connection, contact the provider, or grant access. The browser flow handles OAuth state, permissions, callback verification, and secrets. The dashboard assistant automatically updates its card after the server verifies and saves the connection; closing the setup tab does not count as success. Credentials and provider errors never enter the assistant's completion status. External API clients should query the integrations list after setup to verify the saved connection. Never claim installation succeeded just because the link was returned.
Request
curl https://app.phone.inc/api/v1/integration_setups/shopify \
-H "X-Api-Key: $PHONE_INC_API_KEY"
Response
{
"provider": "shopify",
"name": "Shopify",
"description": "Match callers to their Shopify customer record and recent orders.",
"authorization_required": true,
"setup_path": "/integration_authorizations/shopify?company_id=019daef1-085e-73f0-85f6-a71e2d8dd2cc",
"setup_url": "https://app.phone.inc/integration_authorizations/shopify?company_id=019daef1-085e-73f0-85f6-a71e2d8dd2cc"
}
Get an integration
Returns one connection by its public id from the list endpoint. An unknown ID or an ID belonging to another company returns 404 Not Found.
MCP equivalent: get_integration, with required id.
Request
curl https://app.phone.inc/api/v1/integrations/019daef1-085e-73f0-85f6-a71e2d8dd2cc \
-H "X-Api-Key: $PHONE_INC_API_KEY"
Response
{
"id": "019daef1-085e-73f0-85f6-a71e2d8dd2cc",
"name": "Acme Workspace",
"provider": "attio",
"status": "connected",
"connected_at": "2026-10-12T12:00:00Z",
"last_error_at": null
}
Test partner caller context
Sends a synchronous, signed lookup to one installed partner application's configured context endpoint. Uses the same request body and signature as live lookups, but strictly validates the returned context schema before sanitizing it for preview. It does not create or update Phone.inc contacts or enrich a call. Success clears the integration's last error; a provider failure records a transient error without disconnecting an active installation.
API keys can test partner installations in their company. Partner OAuth requires caller_context:provide and can test only its own installation, not another app in the same company. caller_context:read and integrations:read do not grant this operation. The installation must be connected, grant caller_context:provide, and have a configured endpoint. Built-in providers are not supported here. The dashboard's partner integration test offers the same preview. MCP equivalent: test_integration_context, with required integration_id and phone.
Required attributes
- Name
phone- Type
- string
- Description
- E.164 phone number:
+followed by 8–15 digits, with a nonzero first digit. For example,+14155550199.
Status and errors
200: returnscontextand the submittedphone.contextisnullwhen the partner returns204or404(no match).403: the OAuth token lacks the required scope.404: unknown integration, another company's integration, a non-partner provider, or an installation not owned by the calling partner.422: invalid or missing phone, witherrors.phoneexplaining the required E.164 format.429: the application used its test budget. Each application gets 30 tests per minute, and 5 per minute for each customer. Context and webhook tests share the budget. Wait for the number of seconds in theRetry-Afterheader.424: disconnected installation, missing caller-context authorization or endpoint, transport failure, timeout, rate limiting, oversized response, invalid JSON, invalid schema, or other provider failure. The response includeserrorand ahintto use a publicly reachable HTTPS endpoint.
Tests do not relax SSRF protections: HTTPS and TLS verification remain required; private, loopback, and internal destinations (including private tunnel DNS) are blocked, and redirects are not followed. The same 3-second connect/read timeouts, overall 5-second budget, and 256 KiB response limit apply. Use a public endpoint for development tests.
Request
curl -X POST https://app.phone.inc/api/v1/integrations/019daef1-085e-73f0-85f6-a71e2d8dd2cc/context_test \
-H "X-Api-Key: $PHONE_INC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"phone":"+14155550199"}'
Response (no match)
{ "context": null, "phone": "+14155550199" }
A matching context uses the context-entry schema, with the registered app's provider identity and label.