Create consent session
curl -X POST "https://api.52-28-238-205.sslip.io/v1/connect/consent-sessions" \ -H "Cookie: <console session cookie>" \ -H "Content-Type: application/json" \ -d '{"account_id":"acc_01jd2x3k4m5n6p7q8r9s0t1v2w","redirect_url":"https://example.com/resource"}'Creates a hosted consent session for an embedded account's consumer and returns the link to send them; the consumer signs spending rules capped by the template. Console session or API key with connect:manage; expires after 24 hours.
https://api.52-28-238-205.sslip.ioAuthorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Body
application/json · required. Fields are listed under Request body below.
operator, merchant_owner. The caller must hold this permission, or the call is refused with 403.uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
application/json- body
account_id*Account Idtemplate?{}redirect_url*Redirect UrlPlatform URL the consumer returns to after consent, with status (and mandate_id on success).
Success.
application/json- response
session*url*UrlURL of a paid resource. Use it for a merchant that is not in the Catalog; Abazi reads its 402 response.
[key: string]?anyGETList connected account payments
Lists the payments made in one embedded account, with a total count. Console session or API key with connect:manage.
GETGet consumer spending
Returns what the signed-in consumer's agents spent: totals, recent payments, the current or last revoked mandate and the platform operator. Console session only.