Create a paid organization and hosted checkout
**Authentication:** Requires a dashboard session cookie; OAuth access tokens and API keys are not accepted. Requests must pass the dashboard's same-origin and CSRF checks. Sensitive billing actions require recent authentication and a single-use billing action token; POST /billing/action-token issues that token.
Authentication: Requires a dashboard session cookie; OAuth access tokens and API keys are not accepted. Requests must pass the dashboard's same-origin and CSRF checks. Sensitive billing actions require recent authentication and a single-use billing action token; POST /billing/action-token issues that token.
Better Auth dashboard session cookie used for local HTTP connections.
In: cookie
Request Body
application/json
Body
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.sendlit.app/billing/organization-checkouts" \ -H "Content-Type: application/json" \ -d '{ "plan": "starter", "interval": "month", "catalogRevision": 0, "organizationName": "string", "teamName": "string" }'{
"checkoutUrl": "http://example.com",
"expiresAt": "string",
"organizationId": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}Read the active billing catalog GET
Returns environment-configured offers without provider product IDs. Amounts are integer minor units. **Authentication:** No authentication is required.
List contacts GET
Returns a paginated list of contacts. Pass filter as serialized ContactFilterWithAggregator JSON for inline filtering, or segmentId to only return contacts currently matching that saved segment's filter (404 if the segment doesn't exist). SendLit supports fixed generic contact filters over first-class fields, tags, and custom fields; client-specific concepts should be synced into namespaced tags or customFields. q, filter, and segmentId combine with AND. The response's total reflects the combined filters. **Authentication:** Requires a team API key or a user OAuth access token. Dashboard session cookies are also accepted.