Skip to main content

Workspace integrations

Connect customer CRM, calendar, support, and knowledge accounts from the UponAI workspace Integrations section or the integration API. Every API request requires a bearer token and a workspaceId query parameter. Workspace management access is required; end-user tokens cannot manage connections.

Available connections​

Call GET /api/v1/integrations/providers?workspaceId=123 for the catalog. connection_available indicates whether credential-based connection creation is supported. HubSpot, Salesforce, GoHighLevel, Notion, Calendly, and Cal.com support this flow. Browser sign-in onboarding for the other catalog entries is not available through these endpoints.

curl 'https://api.upon-ai.com/api/v1/integrations?workspaceId=123' \
-H "Authorization: Bearer $UPONAI_API_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"provider":"hubspot","name":"Sales CRM","auth_config":{"api_key":"YOUR_HUBSPOT_PRIVATE_APP_TOKEN"}}'

Credentials are write-only. Responses contain connection metadata and never return saved tokens. Salesforce uses client_id and client_secret in auth_config, plus a Salesforce HTTPS instance URL in tenant_url. GoHighLevel requires its Location ID in tenant_id. Cal.com requires tenant_url set to cal.com or cal.eu. Other supported credential connections use auth_config.api_key.

Manage a connection​

List or retrieve connections, update their name or credentials, and call POST /api/v1/integrations/{connectionId}/test to test authentication. An authentication test does not prove permission to perform every action. Lists return items, has_more, and an optional pagination_key; pass that key as cursor for the next page.

Inspect GET /api/v1/integrations/{connectionId}/usages before deletion. Connections referenced by agents or knowledge bases cannot be deleted. There is no force-delete option.

Saved configuration and uncertain outcomes​

UponAI stores integration request payloads and the current desired connection configuration encrypted at rest, including the credentials needed for connection recreation. Credentials remain write-only: connection responses, SDK results and MCP summaries do not return them. Recovery is an internal capability; these endpoints do not provide credential export or a public recreation operation.

A failed or interrupted request can have an uncertain outcome if the connected system accepted the change before the response was lost. Do not automatically repeat connection creation after a timeout or availability error. Check the connection list and relevant settings first, and contact support if the outcome remains unclear. For mapping or contact-sync updates, fetch the latest configuration and revision before submitting a reviewed retry. Revision checks prevent stale settings changes; they are not request-idempotency keys.

Configure CRM contact sync​

  1. Fetch GET /api/v1/integrations/crm to read the active CRM connection, custom fields, and revision.
  2. Select the active CRM with PATCH /api/v1/integrations/{connectionId}/contact-sync, sending enabled: true and that revision. Only one CRM connection controls contact sync at a time.
  3. Fetch GET /api/v1/integrations/{connectionId}/crm-schema and GET /api/v1/integrations/{connectionId}/mappings.
  4. Save mappings with PUT /api/v1/integrations/{connectionId}/mappings. Send the mapping response's revision, both inbound_sync_mappings and outbound_sync_mappings, and boolean sync_conversation_activity and sync_new_contacts settings.

Each mapping has field_name and external_field_name. Use compatible field types and unique contact fields in each direction. Inbound mappings must retain the phone-number mapping. Outbound mappings must omit phone number because it is reserved for matching contacts; an empty outbound mapping list is supported. Inbound string fields may map to number, boolean, date, or datetime contact fields using automatic coercion. String and enum fields can map to each other. A stale revision returns 409; refetch and review the latest settings before retrying.

Add a contact field with POST /api/v1/integrations/crm/fields. Provide name, label, type, and the latest CRM configuration revision. Supported types are string, number, boolean, date, datetime, and enum. Enum fields also require options. Existing custom fields are preserved.

Boundaries​

Creating a connection does not automatically add actions to an agent or documents to a knowledge base. Browser authorization, connected-document pickers, integration tool configuration, and manual sync-job execution are outside this API release. Each workspace must have a dedicated platform connection. Detected shared connection credentials return 409; an administrator must correct the workspace configuration before continuing.

SDK and MCP​

Use @upon-ai/sdk@0.1.8 or later for all 14 integration operations:

const providers = await client.listIntegrationProviders({ query: { workspaceId: 123 } });
const connections = await client.listIntegrations({ query: { workspaceId: 123 } });

@upon-ai/mcp-server@0.1.8 includes provider discovery, connection list/detail, and usage reads. Configure the workspace allowlist before using these tools. Credentials, CRM mappings, and integration writes are not exposed through MCP.

Search documentation

Type to filter pages. Use ↑ ↓ to choose, then Enter to open.

0 matching pages
AI questions are sent only when you select Ask AI or press Enter on it. Don’t include API keys or customer data.