GET /api/actions/connector/_oauth_callback

Spaces method and path for this operation:

get /s/{space_id}/api/actions/connector/_oauth_callback

Refer to Spaces for more information.

Handles the OAuth 2.0 authorization code callback from external providers. Exchanges the authorization code for access and refresh tokens.

Query parameters

  • code string

    The authorization code returned by the OAuth provider.

  • state string

    The state parameter for CSRF protection.

  • error string

    Error code if the authorization failed.

  • error_description string

    Human-readable error description.

  • session_state string

    Session state from the OAuth provider (e.g., Microsoft).

Responses

  • 200

    Returns an HTML callback page.

  • 302

    Redirects to the return URL with authorization result query parameters.

  • 401

    User is not authenticated.

GET /api/actions/connector/_oauth_callback
curl \
 --request GET 'https://localhost:5601/api/actions/connector/_oauth_callback' \
 --header "Authorization: $API_KEY"