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, plus unit_pricing for operations billed by item count), whether it is premium, the suggested polling interval (recommended_interval_seconds), the rate_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-cscheap extension of each operation.

Usage

NameDescription
AuthenticationNo authentication
Credit costFree
Recommended interval3600 seconds

Responses

StatusDescriptionSchema
200Successful ResponseEnvelope_list_EndpointInfoOut__

Models

CreditMeta

Credit accounting for a billable request.

FieldTypeRequiredDescription
costintegerYesCredits this request costs.
remainingintegerYesEstimated 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.

FieldTypeRequiredDescription
methodstringYesHTTP method.
pathstringYesPath template of the operation.
premiumbooleanYesPremium request: still costs credits while a subscription is active.
credit_costintegerYesCredits charged per request; with unit_pricing, the cost of one block. 0 means free.
recommended_interval_secondsinteger or nullYesSuggested polling interval in seconds; null if on demand.
rate_limitRateLimitSpec or nullYesRate limit per account, shared by all of its API keys; null if none is declared.
unit_pricingUnitPricingSpec or nullYesVolume pricing; null for a flat per-request cost.
rolesarray of stringYesWho 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.
scopedbooleanYesWhether the operation also has a mode reserved for the platform; it changes nothing for your API key's requests.

Envelope_list_EndpointInfoOut__

FieldTypeRequiredDescription
dataarray of EndpointInfoOutYesThe endpoint payload.
metaMetaYesRequest metadata.

Meta

Request metadata included in every enveloped response.

FieldTypeRequiredDescription
request_idstringYesUnique identifier of this request, identical to the X-Request-ID response header. Quote it when contacting support.
billableboolean or nullNoWhether 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.
creditCreditMeta or nullNoCost of the request and your estimated remaining balance. Present only when billable is true.
pagePageMeta or nullNoPaging state. Present only on a response that lists a page.

PageMeta

Where a paged list stands after this page.

FieldTypeRequiredDescription
limitintegerYesPage size actually applied to this request.
has_nextbooleanYesWhether another page follows.
next_cursorstring or nullYesPass 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.

FieldTypeRequiredDescription
max_requestsintegerYesRequests allowed per window, per account (shared by all of its API keys).
window_secondsintegerYesWindow 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.

FieldTypeRequiredDescription
unit_sizeintegerYesItems per billed block.
units_body_fieldstringYesThe request-body list whose length is counted.
max_unitsintegerYesMaximum number of items accepted per request.
page_size_fieldstring or nullNoThe request-body page size that is counted instead when units_body_field is omitted; null if the list is required.

Download the public OpenAPI schema