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.
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-...).
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 tokens make no such distinction.
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.
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).
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Responses
Successful response for Create Account Integration