OAuth Connect

Initiate OAuth connection

Start an OAuth authorization flow for the specified agent and provider. Returns the authorization URL to redirect the user to. Human-only.

post/v1/agents/{agent_id}/oauth/connect

Request

  • Base URL: https://api.1claw.co
  • URL: https://api.1claw.co/v1/agents/{agent_id}/oauth/connect
  • Auth: HTTP bearer

Path parameters

agent_idstring uuid required

Request body

provider_slugstring required

Provider to connect (e.g. "github", "google", "slack")

scopesstring[]

Override default scopes for this connection

redirect_afterstring

URL to redirect to after the OAuth flow completes

Response

Authorization URL generated

authorization_urlstring uri

Redirect the user to this URL to authorize the connection

Changes

No recorded changes to this operation across all 1 revision of this API.