Skip to content
Dashboard
Theme
Theme

Set a social provider's OAuth client

PUT /v1/user_management/social_providers/{provider}: Set a social provider's OAuth client.

View Markdown

The secret is sealed and never returned.

PUT /v1/user_management/social_providers/{provider}

Scope
users:write
Auth
Secret key (sk_…)
Since
1.0
  • provider string Required

    Google and GitHub are on every plan; the others need Pro or above. For Apple, client_secret is the client-secret JWT you generate from your Sign in with Apple key.

    one of google, microsoft, github, apple, gitlab, linkedin, slack

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

  • client_id string

    min length 1 · max length 512

  • client_secret string

    min length 1 · max length 4096

  • enabled boolean Required

Errors share one shape; see the error code catalogue.

curl -X PUT \
"https://api.ohauthcat.com/v1/user_management/social_providers/google" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"enabled": true
}'
Response 200
{
"object": "social_provider",
"provider": "google",
"client_id": "client_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"enabled": true,
"credentials": "own",
"updated_at": "2026-01-15T09:30:00Z"
}