---
title: "Connect Callback"
method: GET
path: "/api/channels/twilio/connect/callback"
tags: ["channels", "channels", "twilio-connect"]
---

# Connect Callback

`GET /api/channels/twilio/connect/callback`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/channels/twilio/connect/callback`
- Auth: none declared

Twilio redirects the user's browser here after they approve.

Validates the state JWT (signed by us at /connect/start) so we
know which workspace/user this subaccount belongs to. Inserts a
channel_account row with `auth_method: "connect"` and redirects
the browser to a tiny landing page that hands off to the
Channel Manager for number/agent setup.

## Query parameters

- `AccountSid` string, required
- `state` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
