http
POST /projects/{project_reference}/integrations/{name}/connect-sessionsCreate connect session.
Servers
JSON
1[2 {3 "url": "https://api.veryfront.com"4 }5]Authentication
JSON
1[2 {3 "bearerAuth": []4 },5 {6 "apiKeyAuth": []7 }8]JSON
1{2 "bearerAuth": {3 "type": "http",4 "scheme": "bearer",5 "bearerFormat": "JWT or API Key",6 "description": "Use a JWT bearer token or a Veryfront API key in the `Authorization` header."7 },8 "apiKeyAuth": {9 "type": "apiKey",10 "in": "header",11 "name": "X-API-Key",12 "description": "Alternative API key header for `vf_<prefix>_<secret>` tokens."13 }14}Parameters
| Name | Location | Required | Description |
|---|---|---|---|
| project_reference | path | Yes | |
| name | path | Yes |
Parameter contracts
JSON
1[2 {3 "schema": {4 "type": "string",5 "minLength": 1,6 "description": "Project ID or slug. A missing or inaccessible project, including a denied scope-dependent project access check, returns not_found."7 },8 "required": true,9 "name": "project_reference",10 "in": "path"11 },12 {13 "schema": {14 "type": "string",15 "minLength": 1,16 "description": "Integration name, for example github or slack."17 },18 "required": true,19 "name": "name",20 "in": "path"21 }22]Request body
JSON
1{2 "required": true,3 "content": {4 "application/json": {5 "schema": {6 "type": "object",7 "properties": {8 "scope": {9 "type": "string",10 "enum": [11 "user",12 "project"13 ],14 "description": "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."15 },16 "redirect_uri": {17 "type": "string",18 "maxLength": 4096,19 "description": "Trusted web or native URI the browser returns to after consent."20 }21 },22 "required": [23 "scope",24 "redirect_uri"25 ],26 "additionalProperties": false27 }28 }29 }30}Responses
201
One-time provider consent link.
JSON
1{2 "description": "One-time provider consent link.",3 "content": {4 "application/json": {5 "schema": {6 "$ref": "#/components/schemas/ConnectSession"7 },8 "example": {9 "session_token": "ocs_example",10 "connect_url": "https://api.veryfront.com/oauth/connect/github?session_token=ocs_example",11 "expires_at": "2026-10-10T12:05:00.000Z"12 }13 }14 }15}400
Bad request
JSON
1{2 "description": "Bad request",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}401
Unauthorized
JSON
1{2 "description": "Unauthorized",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}404
Project or connection not found, including inaccessible projects or denied scope-dependent project access.
JSON
1{2 "description": "Project or connection not found, including inaccessible projects or denied scope-dependent project access.",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}429
Rate limit exceeded
JSON
1{2 "description": "Rate limit exceeded",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}500
Server error
JSON
1{2 "description": "Server error",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}503
Service unavailable
JSON
1{2 "description": "Service unavailable",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}Referenced contracts
components/schemas/ConnectSession
JSON
1{2 "type": "object",3 "properties": {4 "session_token": {5 "type": "string",6 "description": "One-time connect session token, embedded in connect_url."7 },8 "connect_url": {9 "type": "string",10 "description": "URL to open in a browser. It starts provider consent through GET /oauth/connect/{integration}.",11 "example": "https://api.veryfront.com/oauth/connect/github?session_token=ocs_example"12 },13 "expires_at": {14 "type": "string",15 "format": "date-time",16 "description": "UTC time (RFC 3339) after which connect_url no longer starts consent."17 }18 },19 "required": [20 "session_token",21 "connect_url",22 "expires_at"23 ]24}components/schemas/Problem
JSON
1{2 "type": "object",3 "properties": {4 "cause": {5 "type": "string",6 "enum": [7 "schedule_concurrency_forbidden",8 "schedule_fire_in_progress",9 "schedule_run_limit_reached"10 ],11 "description": "Schedule admission refusal."12 },13 "idempotency": {14 "type": "object",15 "properties": {16 "state": {17 "type": "string",18 "enum": [19 "in_progress",20 "payload_mismatch",21 "outcome_unknown"22 ]23 },24 "operation": {25 "type": "string",26 "minLength": 127 },28 "retryable": {29 "type": "boolean"30 },31 "retry_after_seconds": {32 "type": [33 "integer",34 "null"35 ],36 "minimum": 037 },38 "expires_at": {39 "type": [40 "string",41 "null"42 ]43 },44 "recovery": {45 "type": "object",46 "properties": {47 "available": {48 "type": "boolean"49 },50 "description": {51 "type": "string"52 },53 "resource_url": {54 "type": "string"55 }56 },57 "required": [58 "available",59 "description"60 ]61 }62 },63 "required": [64 "state",65 "operation",66 "retryable",67 "retry_after_seconds",68 "expires_at"69 ],70 "description": "Replay status, retry timing, and recovery lookup."71 },72 "type": {73 "type": "string",74 "description": "URI reference identifying the problem type",75 "example": "https://api.veryfront.com/errors/validation-failed"76 },77 "title": {78 "type": "string",79 "description": "Short human-readable summary of the problem",80 "example": "Validation Failed"81 },82 "status": {83 "type": "integer",84 "minimum": 100,85 "maximum": 599,86 "description": "HTTP status code",87 "example": 40088 },89 "code": {90 "type": "string",91 "description": "Stable machine-readable error code",92 "example": "RUN_INVALID_INPUT"93 },94 "detail": {95 "type": "string",96 "description": "Human-readable explanation specific to this occurrence",97 "example": "The 'email' field must be a valid email address"98 },99 "instance": {100 "type": "string",101 "description": "URI reference identifying the specific occurrence",102 "example": "/projects/my-project/members"103 },104 "slug": {105 "type": "string",106 "description": "Stable identifier for the problem type",107 "example": "validation-failed"108 },109 "category": {110 "type": "string",111 "enum": [112 "AUTH",113 "RESOURCE",114 "VALIDATION",115 "DATABASE",116 "SUBSCRIPTION",117 "INTEGRATION",118 "INTERNAL"119 ],120 "description": "API error category",121 "example": "VALIDATION"122 },123 "suggestion": {124 "type": "string",125 "description": "Suggested action to resolve the problem",126 "example": "Check the request body and query parameters against the API documentation."127 },128 "errors": {129 "type": "array",130 "items": {131 "type": "object",132 "properties": {133 "field": {134 "type": "string",135 "description": "Field path that caused the error",136 "example": "email"137 },138 "message": {139 "type": "string",140 "description": "Error message for this field",141 "example": "Invalid email format"142 },143 "code": {144 "type": "string",145 "description": "Error code for this field",146 "example": "INVALID_FORMAT"147 }148 },149 "required": [150 "field",151 "message"152 ]153 },154 "description": "Detailed field-level errors for validation failures"155 }156 },157 "required": [158 "type",159 "title",160 "status"161 ]162}Operation contract
JSON
1{2 "operationId": "createConnectSession",3 "tags": [4 "integrations/Connections/Connections"5 ],6 "summary": "Create connect session",7 "description": "Create connect session.",8 "parameters": [9 {10 "schema": {11 "type": "string",12 "minLength": 1,13 "description": "Project ID or slug. A missing or inaccessible project, including a denied scope-dependent project access check, returns not_found."14 },15 "required": true,16 "name": "project_reference",17 "in": "path"18 },19 {20 "schema": {21 "type": "string",22 "minLength": 1,23 "description": "Integration name, for example github or slack."24 },25 "required": true,26 "name": "name",27 "in": "path"28 }29 ],30 "requestBody": {31 "required": true,32 "content": {33 "application/json": {34 "schema": {35 "type": "object",36 "properties": {37 "scope": {38 "type": "string",39 "enum": [40 "user",41 "project"42 ],43 "description": "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."44 },45 "redirect_uri": {46 "type": "string",47 "maxLength": 4096,48 "description": "Trusted web or native URI the browser returns to after consent."49 }50 },51 "required": [52 "scope",53 "redirect_uri"54 ],55 "additionalProperties": false56 }57 }58 }59 },60 "responses": {61 "201": {62 "description": "One-time provider consent link.",63 "content": {64 "application/json": {65 "schema": {66 "$ref": "#/components/schemas/ConnectSession"67 },68 "example": {69 "session_token": "ocs_example",70 "connect_url": "https://api.veryfront.com/oauth/connect/github?session_token=ocs_example",71 "expires_at": "2026-10-10T12:05:00.000Z"72 }73 }74 }75 },76 "400": {77 "description": "Bad request",78 "content": {79 "application/problem+json": {80 "schema": {81 "$ref": "#/components/schemas/Problem"82 }83 }84 }85 },86 "401": {87 "description": "Unauthorized",88 "content": {89 "application/problem+json": {90 "schema": {91 "$ref": "#/components/schemas/Problem"92 }93 }94 }95 },96 "404": {97 "description": "Project or connection not found, including inaccessible projects or denied scope-dependent project access.",98 "content": {99 "application/problem+json": {100 "schema": {101 "$ref": "#/components/schemas/Problem"102 }103 }104 }105 },106 "429": {107 "description": "Rate limit exceeded",108 "content": {109 "application/problem+json": {110 "schema": {111 "$ref": "#/components/schemas/Problem"112 }113 }114 }115 },116 "500": {117 "description": "Server error",118 "content": {119 "application/problem+json": {120 "schema": {121 "$ref": "#/components/schemas/Problem"122 }123 }124 }125 },126 "503": {127 "description": "Service unavailable",128 "content": {129 "application/problem+json": {130 "schema": {131 "$ref": "#/components/schemas/Problem"132 }133 }134 }135 }136 },137 "x-documentation-source-tag": "Connections",138 "x-canonical-documentation": {139 "domain": "integrations",140 "resource": "Connections",141 "subgroup": "Connections",142 "name": "Create connect session",143 "description": "Create connect session.",144 "operationId": "createConnectSession"145 },146 "x-mint": {147 "href": "/cloud/rest/api-reference/integrations-connections-connections/create-connect-session"148 }149}