Errors
The API reports errors in two ways, depending on where the request fails.
Request errors
If the request is rejected before the query runs, the API returns an HTTP error status.
A 400 response has an errors array, like a GraphQL error:
401 and 429 responses have an error object:
Include the request_id when you contact Tradespace support about a failed request.
GraphQL errors
Once the query runs, the response is 200 OK even when part of it fails. Failures appear in the errors array. Each error’s extensions.status holds an HTTP-style status. A failing field that can be null resolves to null. Single-record queries such as disclosure or patent cannot be null, so when one of them fails the whole data value is null.
Always check errors before reading data.