Connect a third-party account
Body: { provider: google, brand_id }. Every provider authorization requires the provider’s own consent on a signed-in human session: the route answers 405 method_not_allowed with a safe message pointing at the Zaraftis dashboard. Machine credentials can list and synchronize existing connections but can never connect them. An inaccessible brand answers 404 first.
/third-party-connectionsAuthorizationBearer token · headerrequiredAPI key sent as Authorization: Bearer <key>. A key belongs to one workspace, has scopes, and can be limited to some brands.
AuthorizationOAuth2 access token · headerrequiredOAuth 2.1 sign-in (authorization code with PKCE) used by AI assistants that connect through the Zaraftis MCP server. Discovery URLs are at https://api.zaraftis.com/api/auth.
Idempotency-KeystringrequiredA new value, such as a UUID, for each new request. Send the same value to retry a request safely; see https://docs.zaraftis.com/conventions#safe-retries-with-idempotency-key.
application/jsonproviderstringrequiredgooglebrand_idstring<uuid>requiredbad_request or validation_failed
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequirednot_found: unknown id, or an id this key cannot see
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequiredmethod_not_allowed: this action needs a person in the dashboard
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequired