Test accounts
Use a separate production account for integration testing. CloakAPI has no public sandbox or test-tenant route. Sign up directly with another email inbox you control and skip the invitation flow. Direct signup creates a separate organization and makes the new account its owner.
The default one-time trial credit for an eligible direct signup is $2 USD after email verification. Anti-fraud screening can make the signup ineligible. Apply the balance to any currently priced model that the gateway can route, as long as the request fits the remaining balance.
| Feature | Account routes |
|---|---|
| Members, invitations, and roles | GET /api/v1/organisation/members, GET or POST /api/v1/organisation/invitations, and POST /api/v1/organisation/invitations/accept. The owner changes member roles with PATCH /api/v1/organisation/members/{id}/role. |
| SAML 2.0 and OpenID Connect (OIDC) | GET or PUT /api/sso/config. SAML has GET /api/sso/saml/metadata and POST /api/sso/saml/acs. OIDC has POST /api/sso/oidc/token. Browser sign-in starts at /api/auth/sso/saml/initiate or /api/auth/sso/oidc/initiate. |
| SCIM 2.0 | Create a provisioning token with POST /api/sso/scim/provision-token. Use it for /api/scim/v2/Users and /api/scim/v2/Groups. GET /api/scim/v2/ServiceProviderConfig reports bulk operations as unsupported. |
| Bring your own key (BYOK) | GET /api/providers/byok lists providers. Save or remove a provider key with POST or DELETE /api/providers/{provider}/key. |
| Webhooks | Use /api/v1/webhooks/endpoints and /api/v1/webhooks/deliveries. Send a test event with POST /api/v1/webhooks/endpoints/{id}/test. See Webhooks. |
| Audit log | GET /api/v1/audit-log lists entries. GET /api/v1/audit-log/export.csv exports them with audit.export. |
| Personal data export | POST /api/gdpr/export-request, then POST /api/gdpr/confirm/{request_id} with the emailed confirmation token. Check status at GET /api/gdpr/dsar-status/{request_id} and retrieve the export with POST /api/gdpr/export-download/{request_id}. |
| Personal data erasure | POST /api/gdpr/erasure-request, then the same confirmation and status routes. For a completed erasure with a signed receipt, use GET /api/v1/erasure-receipts/{request_id} to fetch it and POST /api/v1/erasure-receipts/{request_id}/verify to verify it. Both require the request’s verification token. |
SSO, SCIM, and BYOK configuration have no plan or purchase requirement. SSO
configuration and SCIM token creation require a verified owner or admin session.
An SSO configuration write also checks the write ability and sso.config-write.
SCIM provisioning operations require that bearer token and the configuring
account’s numeric user ID in X-CloakAPI-Tenant-Id.
BYOK writes require an authenticated session or personal access token, legal
acceptance, org.settings-write, and the byok.write ability for scoped tokens.
To remove your test organization, sign in as an owner or admin and choose
Delete organization in Settings, or call
DELETE /api/v1/organisation. Deletion is scheduled with a seven-day grace
period. Use Cancel deletion or POST /api/v1/organisation/cancel-deletion
before the deadline to keep the organization.