APILegacy
Legacy API. These endpoints keep working. New integrations should use the current API.
Model

CurrentError

The current API's error body, which the retired resource endpoints use (401 auth failures keep the request_status shape above).

Attributes

errorobjectrequired
Attributes
typestringrequired

bad_request, not_found, forbidden, feature_not_enabled, insufficient_credits, credit_cap_exceeded, validation, ...

messagestringrequired
detailsany

Optional extra context

credit_detailCurrentCreditDetail

The estimate made at kickoff next to what has been charged so far. Estimates and credit errors add credits_remaining and sufficient_credits.

Attributes
estimateone ofrequired
Attributes
One of
  • CurrentCreditEstimate model →
    minimumnumberrequired
    maximumnumberrequired
    charged_upfrontbooleanrequired

    true when maximum is taken at kickoff (list builds)

  • null
credits_usednumberrequired
credits_remainingnumber
sufficient_creditsboolean

Carried by every response of a retired resource endpoint and by the current API's paths when a request took a legacy mode. The response also has Deprecation: true and a Link header (rel="successor-version").

Attributes
noticestringrequired

What was legacy about the request and what to send instead

successorstringrequired

METHOD /v1/path of the current operation to use

docsstring urirequired

The successor's section of the current API docs