User V2
SDK

Start Git provider identity link

Creates an Auth0 authorization URL for linking a Git provider identity to the current user.

post/v2/user/me/git-provider-identities/link

Request

  • Base URL: https://api.zephyr-cloud.io
  • URL: https://api.zephyr-cloud.io/v2/user/me/git-provider-identities/link
  • Auth: HTTP bearer

Request body

provider'github' | 'gitlab' required

Git provider to link

gitlabBaseUrlstring uri

GitLab instance origin for direct GitLab OAuth. Defaults to configured GitLab.com.

gitlabClientIdstring

User-scoped OAuth application client ID for the selected GitLab instance.

gitlabClientSecretstring

User-scoped OAuth application client secret for the selected GitLab instance.

returnTostring

Frontend-relative path to return to after linking

Example request

{
  "provider": "github",
  "gitlabBaseUrl": "https://gitlab.example.com",
  "gitlabClientId": "d6f511e6d2cad81fa55d05c8442644d5c10e24f59196c6ecbe605fda12e919eb",
  "returnTo": "/profile/settings/git-providers/"
}

Response

Git provider identity link URL

Changes

No recorded changes to this operation across all 1 revision of this API.