createConnectSession

Create connect session.

Arguments

  • projectReferenceID!required

    Project ID or slug. A missing or inaccessible project, including a denied scope-dependent project access check, returns not_found.

  • nameString!required

    Integration name, for example github.

  • inputCreateConnectSessionInput!required

  • input.scopeConnectionScope!required

    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 and are refused user scope with forbidden. Verified user-session or API-key credentials are required; MCP OAuth grants and runtime credentials are refused. One of user, project.

  • input.redirectUriString!required

    Trusted web or native URI the browser returns to after consent.

Responses

mutation CreateConnectSession($projectReference: ID!, $name: String!, $input: CreateConnectSessionInput!) {  createConnectSession(projectReference: $projectReference, name: $name, input: $input) {    sessionToken    connectUrl    expiresAt  }}
{  "data": {    "createConnectSession": {      "sessionToken": "string",      "connectUrl": "https://example.com",      "expiresAt": "2026-01-01T00:00:00Z"    }  }}

The ConnectSession! in data.createConnectSession.