01.software Docs

Get Events by ID

Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.

All HTTP operations
GET
/api/events/{id}

Fetch one document by ID. Browser publishable-key reads must send depth=0 and joins=false; relationship and join expansion require a server credential.

Authorization

publishableKey
headerX-Publishable-Key<token>

Tenant publishable key for authentication (sent via X-Publishable-Key header)

Path Parameters

id*string

Document ID

Query Parameters

depth*0

Relationship population depth. Browser publishable-key reads must send depth=0 exactly once; any other value, a repeated key, or an omitted key is rejected. Relationship expansion requires a server credential.

Default0
Value in0
joins*"false"

Join field population. Browser publishable-key reads must send joins=false exactly once; any other value, a repeated key, or an omitted key is rejected. Join expansion requires a server credential.

Default"false"
Value in"false"

Response Body

Events

application/json
  1. response

Collection document. Use MCP get-collection-schema for tenant-aware field details before generating typed application code.

id?string

Document ID

createdAt?|
Formatdate-time
updatedAt?|
Formatdate-time
[key: string]?any

Examples may be generated from schemas; they are illustrative, not recorded successful API calls. Example snippets may omit required authentication headers.

Example Request
curl -X GET 'https://api.01.software/api/events/string?depth=0&joins=false'
Example Response
{  "id": "doc_123"}