Skip to main content
PUT
Register a code host app

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

provider
string
required

github, gitlab, azure_devops, bitbucket

Body

application/json

Register a provider's OAuth app.

client_id
string
default:""
Maximum string length: 256
client_secret
string | null

Write-only. Empty keeps the stored one.

Maximum string length: 512
base_url
string | null

A self-hosted host's base URL.

Maximum string length: 512
directory
string | null

Azure DevOps' Entra directory.

Maximum string length: 128

Response

Successful Response

A provider and whether its app is set up. Never its secret.

provider
string
required
label
string
required
registered
boolean
required
client_id
string
default:""
secret_set
boolean
default:false
base_url
string
default:""
directory
string
default:""
self_hosted
boolean
default:false
supports_registration
boolean
default:false
console_url
string
default:""
setup_steps
string[]
redirect_uri
string
default:""
connected_people
integer
default:0
registered_by
string
default:""