API
Everything you do in the portal can be automated through the API v2. The previous API v1 and the Reseller API remain available for existing integrations.
Token authentication
Bearer tokens with explicit scopes; the portal uses secure session cookies.
Stable error codes
Errors follow RFC 9457 with a stable code and messages in English or Spanish.
Safe retries
Send an Idempotency-Key with creations so a retried request never runs twice.
Cursor pagination
Lists return an opaque cursor and a has_more flag.
Compatible with the previous API
Integrations built on API v1 and the Reseller API keep working.
API v2 operations
| Method | Path | Required permission |
|---|---|---|
| GET | /api/v2/organization | organization.read |
| PATCH | /api/v2/organization | organization.update |
| GET | /api/v2/organization/members | members.read |
| POST | /api/v2/organization/members | members.manage |
| DELETE | /api/v2/organization/members/{member_id} | members.manage |
| GET | /api/v2/organization/entitlements | organization.read |
| GET | /api/v2/plans | organization.read |
| GET | /api/v2/reseller/customers | tenant.customers_read |
| POST | /api/v2/reseller/customers | tenant.customers_manage |
| GET | /api/v2/reseller/customers/{customer_id} | tenant.customers_read |
| GET | /api/v2/sites | sites.read |
| POST | /api/v2/sites | sites.create |
| GET | /api/v2/sites/{site_id} | sites.read |
| PATCH | /api/v2/sites/{site_id} | sites.update |
| DELETE | /api/v2/sites/{site_id} | sites.delete |
| GET | /api/v2/sites/{site_id}/revisions | sites.read |
| GET | /api/v2/sites/{site_id}/custom-domains | domains.read |
| POST | /api/v2/sites/{site_id}/custom-domains | domains.manage |
| GET | /api/v2/sites/{site_id}/custom-domains/{domain_id} | domains.read |
| DELETE | /api/v2/sites/{site_id}/custom-domains/{domain_id} | domains.manage |
| POST | /api/v2/sites/{site_id}/custom-domains/{domain_id}/verification | domains.manage |
| GET | /api/v2/sites/{site_id}/purge-requests | sites.read |
| POST | /api/v2/sites/{site_id}/purge-requests | cache.purge |
| GET | /api/v2/sites/{site_id}/purge-requests/{purge_id} | sites.read |
| GET | /api/v2/billing/subscription | billing.read |
| GET | /api/v2/billing/invoices | billing.read |
| GET | /api/v2/usage | billing.read |
| POST | /api/v2/billing/providers/{provider}/webhooks | None |
| GET | /api/v2/auth/session | None |
| POST | /api/v2/auth/login | None |
| POST | /api/v2/auth/logout | None |
| POST | /api/v2/auth/password-reset | None |
| POST | /api/v2/auth/password-reset/complete | None |
| POST | /api/v2/auth/mfa/verify | None |
| POST | /api/v2/auth/reauthenticate | None |
| POST | /api/v2/auth/mfa/totp | None |
| POST | /api/v2/auth/mfa/totp/{factor_id}/confirm | None |
| POST | /api/v2/auth/mfa/recovery-codes | None |
| GET | /api/v2/auth/mfa/factors | None |
| DELETE | /api/v2/auth/mfa/factors/{factor_id} | None |
| POST | /api/v2/auth/register | None |
| POST | /api/v2/auth/email-verification | None |
| POST | /api/v2/auth/email-verification/resend | None |
| POST | /api/v2/auth/switch-organization | None |
| POST | /api/v2/auth/password | None |
| POST | /api/v2/auth/impersonation | None |
| GET | /api/v2/api-tokens | None |
| POST | /api/v2/api-tokens | None |
| POST | /api/v2/api-tokens/legacy-key | None |
| DELETE | /api/v2/api-tokens/{token_id} | None |
| GET | /api/v2/certificates | certificates.read |
| POST | /api/v2/certificates | certificates.upload_key |
| POST | /api/v2/certificates/managed | certificates.manage |
| GET | /api/v2/certificates/{certificate_id} | certificates.read |
| GET | /api/v2/certificates/{certificate_id}/events | certificates.read |
| POST | /api/v2/certificates/{certificate_id}/renewal | certificates.manage |
| GET | /api/v2/billing/payment-method | billing.read |
| POST | /api/v2/billing/payment-method/update-session | billing.manage |