OAuth 2.1

Connect Oauth Provider

Подключить OAuth провайдер к текущему пользователю

post/api/oauth2/connect/{provider}

Request

  • Base URL: https://api.agentstack.tech (the document declares no server; this is the origin it was published from)
  • URL: https://api.agentstack.tech/api/oauth2/connect/{provider}
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Path parameters

providerstring required

Provider ID

Headers

Idempotency-Keystring

Client-generated key to make mutating requests idempotent.

Request body

access_tokenstring required

Access token from provider

refresh_tokenstring nullable

Refresh token from provider

expires_ininteger nullable

Token expiration in seconds

provider_user_idstring required

User ID from provider

provider_emailstring required

Email from provider

provider_usernamestring nullable

Username from provider

scopesstring[] nullable

Granted scopes

provider_dataobject nullable

Additional provider data

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 2 revisions of this API.