A page where your client connects their accounts into the profile ({id} may be its external_id). redirect_url's origin must be allowed in /v1/connect/redirect-origins (422 redirect_origin_not_allowed); state comes back unchanged. headless: true (for accounts Mulaichat approved, else 403 headless_not_approved; redirect_url required, else 400 redirect_url_required) answers start_urls for the platforms that can connect now (none: 422 platform_not_supported): the client goes straight to the platform's login and back to redirect_url without a Mulaichat page, and a Facebook login connects every Page it grants. Tell your clients their account connects through Mulaichat: the platform's consent screen names Mulaichat.
Requires the write scope. Owner key or session only: a profile key gets 403 owner_key_required.
bearerAuthorizationBearer <token>An API key (tb_live_...) from the dashboard, or an OAuth access token.
id*stringapplication/json- body
redirect_url?stringurilength <= 2000state?stringlength <= 500platforms?array<>1 <= itemsheadless?booleanThe link.
application/json- response
url*stringUsable once, until expires_at.
profile_id*stringuuidexpires_at*stringdate-timestart_urls?Headless links only: per platform, the URL that goes straight to the platform's login. Open it as a top-level navigation (never in an iframe).
curl -X POST 'https://api.mulaichat.com/v1/profiles/string/connect-links' \ -H 'Content-Type: application/json' \ -d '{}'{ "url": "string", "profile_id": "bfcb6779-b1f9-41fc-92d7-88f8bc1d12e8", "expires_at": "2019-08-24T14:15:22Z", "start_urls": { "property1": "string", "property2": "string" }}Allow a redirect origin POST
Scheme and host (and port), e.g. https://app.example.com; at most 20. Requires the write scope. Owner key or session only: a profile key gets 403 owner_key_required.
Get connect page settings GET
Requires the read scope. Owner key or session only: a profile key gets 403 owner_key_required.