Getting Started
To get started, make sure you are using the correctclient_id and client_secret for the environment you are using.
Staging Environment
For testing and development purposes, please use the staging API athttps://api-staging.speccheckrx.com.
Production Environment
For live deployments, access the production API athttps://api.speccheckrx.com.
Error Handling
Errors return a JSON response with an error object describing what went wrong. Failed requests return HTTP 4xx or 5xx status codes. The error object always includes type and message. When present, code is a stable, machine-readable string (for example, invalid_request), and param identifies the related input field or header.code and param are omitted when not applicable.
Error Types
type | Typical HTTP status | Meaning |
|---|---|---|
invalid_request_error | 400 (or other 4xx) | Missing or invalid parameters |
authentication_error | 401 | Authentication failed |
permission_error | 403 | Authenticated but not allowed |
api_error | 500 | Internal server error |
error object together with the HTTP status when handling failures.
