Beta API. See the stability policy.

Stability policy

The API is in beta. This article says what that means for your code: what we may change, what can break your code, and how a change shows up.

Every response from /v1/ has the header X-API-Stability: beta. The address stays /v1/. It will not change when the API leaves beta.

Changes that won't break your code

We may make these changes at any time:

  • Add a field to a response.
  • Add an endpoint.
  • Add an optional field to a request.
  • Add a new value to a field that has a list of values, such as a status. Write your code so that a value it doesn't know isn't an error. The Python library does this.
  • Add an error code inside an existing error type.
  • Add an event type.

So read the fields you need and ignore the rest.

Some requests ignore a field they do not know. This holds for components, projects, starred components, submissions, your compare lists and webhook endpoints. A misspelled field gets no error and is never stored. Check the response to see what was saved.

Changes that can break your code

We call these breaking changes:

  • Removing a field from a response, or changing its type or its meaning.
  • Removing an endpoint, or changing its address or its method.
  • Making a request rule stricter, so that a request that used to work is refused.
  • Removing a value from a list of values.
  • Changing the status code for a result, or the shape of an error with a given code.

During this release, we may rename or remove something when the changes page lists it. The old address, field or value then answers with a refusal that names the new one. For example, an old address answers 404 with the code address_moved and the new address, and an old request field answers 422 with a message that names the field to send instead. We don't announce a date in advance, and we don't send a Deprecation or Sunset header. When the API leaves beta, we will say so on the changes page.

Some responses have a deprecations field. It lists request fields that were accepted but not used, each with a message that names the replacement. A request that names a removed field is refused, so a new run has an empty list. A run stored earlier can hold a note. The deprecations field is the only deprecation signal the API gives.

Sign-in

Almost every request needs an API key in the Authorization header. See Authentication. The few that don't are the health check, the requests under /v1/public/, and reading the parts catalog.

The ThrustLab website uses its own sign-in tokens, and they only work for the website. Your code should use an API key.

Limits

An API key can send 1,000 requests a minute, with a burst of 50. Each response tells you how much is left. If you go over, you get a 429 with a Retry-After header. See Rate limits.