# Create connect session

```http
POST /projects/{project_reference}/integrations/{name}/connect-sessions
```

Create connect session.

## Parameters

| Name                | In   | Required | Description |
| ------------------- | ---- | -------- | ----------- |
| `project_reference` | path | Yes      |             |
| `name`              | path | Yes      |             |

## Request body

| Field          | Type   | Required | Description                                                                                                                                                                                                                                                                                           |
| -------------- | ------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `scope`        | string | Yes      | Connection owner. Project scope needs the editor role; user scope connects your own account and needs viewer access to the project. API keys also need the integrations write scope. Verified user-session or API-key credentials are required; MCP OAuth grants and runtime credentials are refused. |
| `redirect_uri` | string | Yes      | Trusted web or native URI the browser returns to after consent.                                                                                                                                                                                                                                       |

## Responses

| Status | Description                                                                                                |
| ------ | ---------------------------------------------------------------------------------------------------------- |
| 201    | One-time provider consent link.                                                                            |
| 400    | Bad request                                                                                                |
| 401    | Unauthorized                                                                                               |
| 404    | Project or connection not found, including inaccessible projects or denied scope-dependent project access. |
| 429    | Rate limit exceeded                                                                                        |
| 500    | Server error                                                                                               |
| 503    | Service unavailable                                                                                        |
