OAuth 2.1

Oauth2 Authorize

OAuth 2.1 Authorization Endpoint

Генерирует authorization code для Authorization Code Flow. Пользователь должен быть авторизован (через существующую систему).

get/api/oauth2/authorize

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/authorize
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Query parameters

client_idstring required

OAuth client ID

redirect_uristring required

Redirect URI after authorization

response_typestring

Response type (always 'code' for OAuth 2.1)

scopestring nullable

Requested scopes (space-separated)

statestring nullable

CSRF protection state

code_challengestring nullable

PKCE code challenge

code_challenge_methodstring nullable

PKCE method (S256 or plain)

Response

Successful Response

unknown required

Changes

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