{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/airbyte/refs/heads/main/json-schema/airbyte-initiate-oauth-request-schema.json", "title": "InitiateOauthRequest", "description": "InitiateOauthRequest schema from Airbyte API", "type": "object", "properties": { "name": { "description": "The name of the source to authenticate to. Deprecated - use sourceType instead.", "type": "string" }, "sourceType": { "description": "The name of the source to authenticate to", "type": "string" }, "redirectUrl": { "description": "The URL to redirect the user to with the OAuth secret stored in the secret_id query string parameter after authentication is complete.", "type": "string" }, "workspaceId": { "format": "uuid", "description": "The workspace to create the secret and eventually the full source.", "type": "string" }, "oAuthInputConfiguration": { "$ref": "#/components/schemas/OAuthInputConfiguration", "description": "Input configuration for OAuth required by some sources." }, "requestedScopes": { "type": "array", "description": "Optional OAuth scopes to request, overriding the connector's default scopes. Only supported for connectors that define scopes as an array.", "items": { "type": "string" } }, "requestedOptionalScopes": { "type": "array", "description": "Optional OAuth optional_scopes to request, overriding the connector's default optional_scopes. Only applied when requestedScopes is also provided.", "items": { "type": "string" } } }, "required": [ "redirectUrl", "workspaceId" ] }