Integrations

Verify the Vercel authorization callback

Requires a signed-in PyAI console session and an allowed browser Origin. Available only when the Vercel integration is enabled. Key creation and disconnection require owner/admin project access.

post/auth/vercel/exchange

Request

  • Base URL: https://api.pyai.com
  • URL: https://api.pyai.com/auth/vercel/exchange
  • Auth: API key in cookie pyai_session

Request body

statestring required
codestring required
configuration_idstring required
nextstring

Optional HTTPS Vercel return URL; empty uses the Vercel dashboard.

Response

Connection metadata; credentials are never returned.

idstring required
status'pending' | 'exchanging' | 'ready' | 'installing' | 'connected' | 'failed' | 'disconnecting' | 'disconnected' required
configuration_idstring nullable required
team_idstring nullable required
project_idstring nullable required
vercel_project_idstring nullable required
expires_atinteger required
scopesstring[] required
nextstring uri
environment_cleanup_requiredboolean required

Changes

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