Authentication

Save an org's OAuth client for a provider

Changed on

Requires the Manage OAuth apps permission. Lets an org bring its own OAuth app (client id + secret) for a native provider such as google-workspace, instead of relying on an OpenWork-owned client.

post/v1/oauth-providers/{providerId}/client

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

providerId, string required

Request body

object required
clientId, string
clientSecret, string
features, string[]
tenantId, string

Response

OAuth client saved.

OAuthClientConfigResponse required
ok, true required
providerId, string required
clientId, string required
features, string[] required
tenantId, string nullable required

Changes

    • breaking

      the response property tenantId became nullable for the status

    • info

      response property details/items/path/items/ list-of-types was narrowed by removing types number from media type application/json of response 400

    • info

      response property tenantId list-of-types was narrowed by removing types null from media type application/json of response 200