Connect
POST/v1/connect/consent-sessions

Create consent session

View as .md
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.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/connect/consent-sessionsBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Body

application/json · required. Fields are listed under Request body below.

Requires permissionconnect:manage
Held by operator, merchant_owner. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
account_id*Account Id
template?
Default{}
redirect_url*Redirect Url

Platform URL the consumer returns to after consent, with status (and mandate_id on success).

Response Body

Success.

application/json
  1. response
session*
url*Url

URL of a paid resource. Use it for a merchant that is not in the Catalog; Abazi reads its 402 response.

[key: string]?any