Returns a per-provider OAuth authorization URL plus a signed state token. Headless flow:
{ provider }.{ authorization_url, state, expires_at }.git_connection row.GET /v1/apps/:appId/git until { connected: true }.The state token is HMAC-signed (10-minute TTL) and binds the OAuth callback to the originating app + tenant + provider. Each call mints a fresh nonce — no replay across attempts.
Returns 503 git_connect_not_configured when the relevant provider OAuth env vars are missing on this environment (e.g. GITHUB_APP_SLUG not set).
Documentation Index
Fetch the complete documentation index at: https://docs.agentmark.co/llms.txt
Use this file to discover all available pages before exploring further.
Application ID for tenant scoping
API key (sk_agentmark_*)
github, gitlab Authorization URL minted.