# Start connecting an integration

```http
GET /oauth/connect/{integration}
```

Start connecting an integration.

## Parameters

| Name                | In    | Required | Description                                                                                                                                                    |
| ------------------- | ----- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `integration`       | path  | Yes      | Integration identifier, for example github or gmail.                                                                                                           |
| `project_reference` | query |          | Project UUID or slug that owns the connection.                                                                                                                 |
| `scope`             | query |          | Connection ownership within the project.                                                                                                                       |
| `redirect`          | query |          | Dashboard-relative path to redirect to after OAuth completes.                                                                                                  |
| `redirect_uri`      | query |          | Absolute redirect URI for native or custom app OAuth flows.                                                                                                    |
| `session_token`     | query |          | One-time connect session token from connect\_url. Open connect\_url in a browser to start provider consent; the flow returns through the integration callback. |

## Responses

| Status | Description                                                                                                                                                |
| ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 302    | Redirect to provider consent screen. The /oauth/connect/{integration} URL is persisted in links and chat history; its path and query fields remain stable. |
| 400    | Bad request                                                                                                                                                |
| 401    | Unauthorized                                                                                                                                               |
| 403    | Forbidden                                                                                                                                                  |
| 404    | Not found                                                                                                                                                  |
| 429    | Rate limit exceeded                                                                                                                                        |
| 500    | Server error                                                                                                                                               |
| 503    | Service unavailable                                                                                                                                        |
