Advanced: fees
List a calculation chain's events
Returns what happened to a calculation chain you can read, oldest first: revisions published, the record it was copied from, its deprecation, and marketplace slots binding or unbinding it.
GET /calculation-chains/{calculation_chain_id}/events
Returns what happened to a calculation chain you can read, oldest first: revisions published, the record it was copied from, its deprecation, and marketplace slots binding or unbinding it.
- The chain's owner sees every event; anyone else only
publishevents. - A
404means the chain is not visible to you.
Usage
| Name | Description |
|---|---|
| Authentication | API key required |
| Credit cost | Free |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
calculation_chain_id | path | integer | Yes | ID of the calculation chain. |
Responses
| Status | Description | Schema |
|---|---|---|
200 | Successful Response | Envelope_list_EventOut__ |
401 | Authentication is missing or invalid | ErrorEnvelope |
403 | The credential is valid but not allowed to call this operation | ErrorEnvelope |
404 | The requested resource does not exist | ErrorEnvelope |
422 | A parameter or the request body is invalid | ErrorEnvelope |
429 | Too many requests to this endpoint; retry later | ErrorEnvelope |
503 | The service is temporarily unavailable; retry later | ErrorEnvelope |
Models
CreditMeta
Credit accounting for a billable request.
| Field | Type | Required | Description |
|---|---|---|---|
cost | integer | Yes | Credits this request costs. |
remaining | integer | Yes | Estimated credit balance left after this request. A hint rather than a ledger: concurrent requests can make it slightly off. |
Envelope_list_EventOut__
| Field | Type | Required | Description |
|---|---|---|---|
data | array of EventOut | Yes | The endpoint payload. |
meta | Meta | Yes | Request metadata. |
ErrorBody
Details of a failed request.
| Field | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Stable machine-readable error code. Branch on this value, not on message. |
message | string | Yes | Human-readable explanation. The wording may change. |
details | object or null | No | Optional structured context, such as the list of validation errors or, for credit_insufficient, the required and remaining credits. |
ErrorEnvelope
Error response: the error in error plus request metadata in meta.
EventOut
Something that happened to a calculation chain.
| Field | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Event ID; events are listed oldest first. |
type | string | Yes | publish (a revision was saved), fork / officialize (the chain was created as a copy; detail names the source), deprecate, bind / unbind (a marketplace slot started or stopped using it). Only its owner sees anything but publish. Values: publish, fork, officialize, deprecate, bind, unbind, delete. |
revision | integer or null | Yes | The revision concerned, if any. |
actor | string | Yes | user (a person's API key) or platform. Values: user, platform. |
actor_user_id | string or null | Yes | The acting user; null unless it is you. |
website_code | string or null | Yes | Marketplace of a bind / unbind. |
purpose | string or null | Yes | Purpose of a bind / unbind. |
detail | object | Yes | Event specifics: source_id / source_revision of a copy; owner_scope (personal or official) and previous of a binding change. |
created_at | string | Yes | When it happened (ISO 8601, UTC). |
Meta
Request metadata included in every enveloped response.
| Field | Type | Required | Description |
|---|---|---|---|
request_id | string | Yes | Unique identifier of this request, identical to the X-Request-ID response header. Quote it when contacting support. |
billable | boolean or null | No | Whether the request is billed in credits. Present only on metered endpoints; false means the request is free, for example because it costs nothing or your subscription covers it. |
credit | CreditMeta or null | No | Cost of the request and your estimated remaining balance. Present only when billable is true. |
page | PageMeta or null | No | Paging state. Present only on a response that lists a page. |
PageMeta
Where a paged list stands after this page.
| Field | Type | Required | Description |
|---|---|---|---|
limit | integer | Yes | Page size actually applied to this request. |
has_next | boolean | Yes | Whether another page follows. |
next_cursor | string or null | Yes | Pass it back unchanged as cursor to get the next page; null once the list is complete. |