Create Account Integration
Beta/v1/settings/integrationsIdempotent with Idempotency-Key header. Learn more
Connects a third-party provider to the account, or replaces the name and credentials of the provider's existing connection.
An account can have at most one integration per provider, so calling this again for a provider that is already connected rotates its credentials in place and returns the same integration rather than creating a second one. Credentials are checked for the provider's expected key format, encrypted at rest, and never returned in API responses.
namestringDisplay name of the integration.
providerstringenumValues:stripeshippohubspotIntegration provider code.
stripe: Stripe payment processing.shippo: Shippo shipping and label generation.hubspot: HubSpot CRM.openrouter: OpenRouter, the LLM gateway that serves agent runs.
credentialsstringJSON string containing the provider's credentials.
Required keys depend on the provider:
stripe:private_key(sk_...),publishable_key(pk_...), andwebhook_secret(whsec_...).shippo:api_key(shippo_live_...orshippo_test_...).hubspot:access_token(pat-...).openrouter:api_key(sk-or-...).
For Stripe and Shippo, sandbox accounts must supply test keys and production accounts must supply live keys; credentials that do not match are rejected. HubSpot and OpenRouter keys make no such distinction.
monthly_spend_limitoptional objectMost the provider may spend for the account in a UTC calendar month. Only openrouter takes a limit, in usd.
Omit it to leave an existing integration's limit as it is; a new integration then has no limit.
amountstring (decimal)Decimal amount, as a string to preserve precision.
currencystringLowercase ISO 4217 currency code.
idstringAccount integration ID.
objectstringenumValues:account_integrationResource type identifier.
namestringDisplay name of the integration.
providerstringenumValues:stripeshippohubspotIntegration provider code.
stripe: Stripe payment processing.shippo: Shippo shipping and label generation.hubspot: HubSpot CRM.openrouter: OpenRouter, the LLM gateway that serves agent runs.
statusstringenumValues:activeinactiveLifecycle status of the integration.
Integrations are created active. Setting an integration to inactive keeps its stored credentials but stops it from being used (for example, the Stripe publishable key cannot be retrieved while the Stripe integration is inactive).
monthly_spend_limitobjectnullableMost the provider may spend for the account in a UTC calendar month, or null for no limit.
Only openrouter integrations take a limit. Agent runs stop starting once OpenRouter reports this much spent this month; a run already underway finishes its current turn.
amountstring (decimal)Decimal amount, as a string to preserve precision.
currencystringLowercase ISO 4217 currency code.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Responses
Successful response for Create Account Integration