Channels

Create temporary channel connection link

Use when the user asks to add or reconnect an Instagram, Messenger or WhatsApp channel. A current business-admin-owned credential is required. Give connectionUrl to the human admin, who signs in, grants provider consent and selects resources in the browser. MCP never collects provider passwords. Link expiry is 15 minutes. Reuse exact type and idempotencyKey on uncertain creation retries for 24 hours; a changed type conflicts. Link creation does not connect a channel. Save attemptId and call get_channel_connection_attempt for actual completion, channelIds or failureCode. Existing grants are never widened. Reconnecting the same provider resource uses native upsert behavior; choosing a different resource can create another channel. Requires channels:connect:write.

post/channels/connection-attempts

Request

  • Base URL
    https://platform-api.visitoai.com/m2m/v1
  • Auth
    HTTP bearer

Headers

Idempotency-Keystring required

Stable caller-generated key for this type and intended business. Reuse with the exact input on creation retry; retain attemptId to reconcile. Deduplication lasts 24 hours.

Request body

type'instagram' | 'messenger' | 'whatsapp' required

Supported Meta channel type. Read get_channel_connection_options for human requirements.

Response

Create temporary channel connection link

attemptIdstring required
tenantIdstring required
type'instagram' | 'messenger' | 'whatsapp' required
provider'meta' required
status'pending' | 'authorizing' | 'processing' | 'selecting' | 'completed' | 'partial' | 'failed' | 'expired' required
expiresAtstring date-time required
channelIdsstring[] required
failureCodestring
nextActionstring required
connectionUrlstring uri

Temporary browser link. Share with the intended business admin; do not log, index or expose to third parties.

Changes

No recorded changes to this operation across all 1 revision of this API.