/projects/{project_id}/auth/oauth_providersAdd an OAuth providerDeprecated. Use /projects/{project_id}/branches/{branch_id}/auth/oauth_providers instead. Removal scheduled for March 1, 2026.
Parameters
project_idstringpathrequiredThe Neon project ID
Request body
requiredapplication/json
client_idstringThe client ID issued by the OAuth provider for your application. Used to identify the application during the OAuth flow.
client_secretstringOAuth client secret for the provider.
idstringrequiredmicrosoft_tenant_idstringTenant ID for the Microsoft OAuth provider. Only relevant when the OAuth provider is Microsoft; omit or leave blank for other providers.
{
"client_id": "string",
"client_secret": "",
"id": "github",
"microsoft_tenant_id": "string"
}Responses
client_idstringPublic identifier for the OAuth application, issued by the provider when the application is registered.
client_secretstringOAuth client secret for the provider.
idstringrequiredtypestringrequired{
"client_id": "string",
"client_secret": "",
"id": "github",
"type": "shared"
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}