Plans
GET/v1/plans

List plans

View as .md
curl -X GET "https://api.52-28-238-205.sslip.io/v1/plans" \  -H "Cookie: <console session cookie>"

Returns the organization's plans, newest first (up to 200), with status, next payment and progress. Callable with a console session or an API key holding payment:read; a team approver sees only its own team's plans.

Server URLhttps://api.52-28-238-205.sslip.io
GET/v1/plansBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Query
  • statusstring

    Plan status to return, for example active or cancelled.

  • agent_idstring

    Only plans of this agent (agt_...).

Requires permissionpayment:read
Held by owner, admin, finance, approver (own team), developer, merchant_owner, merchant_developer, operator. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Query Parameters

status?|

Plan status to return, for example active or cancelled.

agent_id?|

Only plans of this agent (agt_...).

Response Body

Success.

application/json
  1. response
data*array<>
[key: string]?any