Auth API
Reference for the 1 Auth operation in the Intuidy API.
Responses are JSON. A successful response is { "success": true, "data": …, "meta": … }, and each operation below documents its data. Errors use the error envelope described in Errors, pagination and limits.
| Operation | Method and path | Authorization |
|---|---|---|
| Mint a one-time URL that signs an embedded web view in | POST /auth/web-handoff | Any credential |
Mint a one-time URL that signs an embedded web view in
POST /auth/web-handoff
For a client that signed in through OAuth and holds a vat_ access
token. Web-shaped screens need the browser session cookie; this operation
turns the token into a one-time handoff URL so the person is not asked
to sign in again. Load handoff_url in the web view: the server burns
the code, sets the session cookie there, and redirects to return_to.
OAuth access tokens only. An AIPI key is refused with 403 OAUTH_IDENTITY_REQUIRED, so a leaked key can never become a browser
session. A token issued to any client other than the first-party one
(a per-install public client, a connector) is refused with 403 FIRST_PARTY_CLIENT_REQUIRED: the person can sign in again through the
first-party client. No route scope is required beyond a valid token.
The code lives 60 seconds and is single-use. The session it mints is capped at 24 hours regardless of later renewals; repeat the handoff whenever a web view opens. Revoking the connection refuses new handoffs at once. Rate-limited per IP beside the per-credential ceiling.
Authorization: Takes an OAuth access token (vat_) only. An API key (vntg_) is refused.
Request body (application/json, optional)
| Field | Type | Required | Description |
|---|---|---|---|
return_to | string | No | A same-origin path to land on after sign-in (default /). A scheme, host or protocol-relative value falls back to /. |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
handoff_url | string | Load this in the web view; it carries the one-time code |
expires_in | integer | Seconds the code can be redeemed |
Errors 400, 401, 403 (OAUTH_IDENTITY_REQUIRED, FIRST_PARTY_CLIENT_REQUIRED), 429. See Errors, pagination and limits.
Example request
curl -X POST "https://vantage.intuidy.com/api/v1/auth/web-handoff" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"return_to":"<return_to>"}'