v1
Northflank docs for LLMs
API
CLI
JS Client

Team / Integrations /

Create VCS link session

Starts a CLI-driven flow to link a version control account. Returns a URL to open in a browser to authorize the link, and a session id to poll for completion.

Required permission

Account > Git > General > Manage

Request body

  • {object}
    • vcsService

      string
      Version control provider to link. Supported values are `github` and `gitlab`. Defaults to `github`.
      one of
      bitbucket, gitlab, github, self-hosted, azure

Response body

  • {object}
    Response object.
    • data

      {object} required
      Result data.
      • id

        string required
        ID of the link session, used to poll for completion.
      • authorizeUrl

        string required
        URL to open in a browser to authorize the version control link. Carries only a one-time link code — never the API token.
API
CLI
JS Client

POST /v1/integrations/vcs/link-sessions

POST /v1/teams/{teamId}/integrations/vcs/link-sessions

Example request

Request body
curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"vcsService":"github"}' \
  https://api.northflank.com/v1/integrations/vcs/link-sessions

Example response

200 OK

The link session id and browser authorize URL.

JSON

{
  "data": {
    "id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
    "authorizeUrl": "https://app.northflank.com/api/integrations/git/state-bridge?linkCode=..."
  }
}

© 2026 Northflank Ltd. All rights reserved.

northflank.com / Terms / Privacy / feedback@northflank.com