# Create connect session

Tool: `veryfront__create_connect_session`

Create connect session.

## Arguments

| Name                | Type                     | Required | Description                                                                                                                                                                                                                                                                                                                     |
| ------------------- | ------------------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | string · min length 1    |          | Project ID or slug. A missing or inaccessible project, including a denied scope-dependent project access check, returns not\_found.                                                                                                                                                                                             |
| `name`              | string · min length 1    | Yes      | Integration name, for example github or slack.                                                                                                                                                                                                                                                                                  |
| `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. One of `user`, `project`. |
| `redirect_uri`      | string · max length 4096 | Yes      | Trusted web or native URI the browser returns to after consent.                                                                                                                                                                                                                                                                 |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_connect_session",
    "arguments": {
      "name": "string",
      "scope": "user",
      "redirect_uri": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"session_token\":\"string\",\"connect_url\":\"string\",\"expires_at\":\"2026-01-01T00:00:00Z\"}"
      }
    ],
    "structuredContent": {
      "session_token": "string",
      "connect_url": "string",
      "expires_at": "2026-01-01T00:00:00Z"
    }
  }
}
```
