Skip to content
Last updated

Complete a personal connector OAuth flow by finalizing the authorization with a state token.

POSThttps://api.aitronos.com/v1/personal-connectors/complete-oauth

Finalize the OAuth authorization flow for a personal connector using the state token from the authorization step. This is used for connectors that require an explicit completion step separate from the OAuth callback.

Query Parameters

organization_id string required

The unique identifier of the organization to associate the connector with.

Request Body

state_token string required

The state token returned from the OAuth authorization flow, used to verify and complete the connection.


Returns

Returns the connector connection status and details.

cURL
curl -X POST "https://api.aitronos.com/v1/personal-connectors/complete-oauth?organization_id=org_abc123" \
  -H "X-API-Key: $FREDDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "state_token": "state_xyz789abc"
  }'