Create Events
Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.
All HTTP operationsCreate a document. Server-side code should prefer createServerClient from @01.software/sdk. Direct REST writes require a publishable key and a server Bearer token.
publishableKeybearerAuthX-Publishable-Key<token>Tenant publishable key for authentication (sent via X-Publishable-Key header)
AuthorizationBearer <token>Public integration credentials: verified opaque sk01_ secret key or pat01_ personal access token; operation policy and read/write scopes still apply. These credentials are not Customer JWTs.
application/json- body
Collection payload. Field names are tenant and collection specific; inspect the tenant-aware schema through MCP get-collection-schema before sending writes.
[key: string]?anyCreated Events
application/json- response
message?stringdoc*Collection document. Use MCP get-collection-schema for tenant-aware field details before generating typed application code.
Examples may be generated from schemas; they are illustrative, not recorded successful API calls. Example snippets may omit required authentication headers.
curl -X POST 'https://api.01.software/api/events' \ -H 'Content-Type: application/json' \ -d '{ "status": "draft"}'{ "message": "Events created", "doc": { "id": "doc_123" }}