Skip to content

Organization → Billing Details

Your organization's current package/plan and credits.

Endpoint summary

Method Path Notes
GET /auth/v1/packages List available packages
PUT /auth/v1/package/update Change the organization's package
PUT /auth/v1/package/renew Renew the current package

Viewing available packages

GET /auth/v1/packages

Paginated, public (no auth required to browse pricing). Optional search query param.

{
  "content": [
    { "id": 1, "name": "Starter", "description": "For small teams", "credits": 100.0, "creditsPrice": 0.10, "discount": 0, "preset": true, "duration": 30, "servicePlan": "STANDARD", "status": "ACTIVE", "currencySymbol": "$" }
  ]
}

Changing the organization's package

PUT /auth/v1/package/update
Content-Type: application/json

{ "orgId": 501, "pkgId": 3 }

Both fields required. 200 OK on success, or an error if the org or package doesn't exist.

Renewing

PUT /auth/v1/package/renew?orgId=501

Renews the organization's currently-assigned package for another billing cycle.