Skip to main content
Smart accounts are Soroban contracts deployed on Stellar that act as programmable spending vaults. Once you link a deployed contract to your Pay3 account, AI sessions can reference it to authorize and execute on-chain payments within your defined policies. This endpoint returns every smart account you have linked, ordered by most recently linked first.

Endpoint

GET /api/smart-accounts Authentication is required. Include either the pay3_session cookie or an Authorization: Bearer <session-token> header.

Response

All Pay3 API responses are wrapped in a standard envelope:
A successful 200 OK response returns an array of smart account objects inside data. The array is empty ([]) if you have not yet linked any contracts.
array
Array of linked smart account records.
string
A unique identifier for this API request, useful for support and debugging.

Example

Request

Response Body

Empty Response (no accounts linked)


Error Responses