API reference
List endpoint metadata
Returns machine-readable metadata for every documented operation of this API, so a client can plan its usage without parsing the OpenAPI document.
GET /endpoints
Returns machine-readable metadata for every documented operation of this API, so a client can plan its usage without parsing the OpenAPI document.
- One entry per method and path, sorted by path and then method.
- Each entry gives the credit cost (
credit_cost, plusunit_pricingfor operations billed by item count), whether it ispremium, the suggested polling interval (recommended_interval_seconds), therate_limit, and who may call it (roles:user,admin,machine; empty means no authentication is required). - The same data appears in the OpenAPI document as the
x-cscheapextension of each operation.
Usage
| Name | Description |
|---|---|
| Authentication | No authentication |
| Credit cost | Free |
| Recommended interval | 3600 seconds |
Responses
| Status | Description | Schema |
|---|---|---|
200 | Successful Response | Envelope_list_EndpointInfoOut__ |
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. |
EndpointInfoOut
Access rules, cost and limits of one API operation.
| Field | Type | Required | Description |
|---|---|---|---|
method | string | Yes | HTTP method. |
path | string | Yes | Path template of the operation. |
premium | boolean | Yes | Premium request: still costs credits while a subscription is active. |
credit_cost | integer | Yes | Credits charged per request; with unit_pricing, the cost of one block. 0 means free. |
recommended_interval_seconds | integer or null | Yes | Suggested polling interval in seconds; null if on demand. |
rate_limit | RateLimitSpec or null | Yes | Rate limit per account, shared by all of its API keys; null if none is declared. |
unit_pricing | UnitPricingSpec or null | Yes | Volume pricing; null for a flat per-request cost. |
roles | array of string | Yes | Who may call it: user (an API key), admin (reserved for the platform) or machine (a service token). Only user requests are rate limited and charged. Empty means public. |
scoped | boolean | Yes | Whether the operation also has a mode reserved for the platform; it changes nothing for your API key's requests. |
Envelope_list_EndpointInfoOut__
| Field | Type | Required | Description |
|---|---|---|---|
data | array of EndpointInfoOut | Yes | The endpoint payload. |
meta | Meta | Yes | Request metadata. |
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. |
RateLimitSpec
A rate limit: at most max_requests requests per window_seconds.
| Field | Type | Required | Description |
|---|---|---|---|
max_requests | integer | Yes | Requests allowed per window, per account (shared by all of its API keys). |
window_seconds | integer | Yes | Window length in seconds. |
UnitPricingSpec
Volume pricing: the request costs credit_cost per started block of unit_size items of the request-body list units_body_field, or, when that list is omitted, of the page size page_size_field.
| Field | Type | Required | Description |
|---|---|---|---|
unit_size | integer | Yes | Items per billed block. |
units_body_field | string | Yes | The request-body list whose length is counted. |
max_units | integer | Yes | Maximum number of items accepted per request. |
page_size_field | string or null | No | The request-body page size that is counted instead when units_body_field is omitted; null if the list is required. |