Connect
POST/v1/connect/accounts

Create connected account

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/connect/accounts" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"consumer_email":"string"}'

Creates an embedded organization for a consumer (by email) with an organization budget (default 1 USDC). Console session or API key with connect:manage; one account per consumer per platform (409 otherwise).

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/connect/accountsBase 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
consumer_email*Consumer Email
Match^[^@\s]+@[^@\s]+$
consumer_name?Consumer Name
Default""
budget_base_units?|

Budget in integer base units, carried as a string.

Default"1000000"

Response Body

Success.

application/json
  1. response
account*
[key: string]?any