General API resources

Here you will find information about how to get started and generic troubleshooting.

Authentication

All API calls require valid authentication (part from /auth).

To provide authentication to your API call, you need to add an Authorization header with valid credentials.

Bearer

To authenticate using the bearer method, add an Authorization header with the contents of the header being Bearer {token} where {token} is your API token.

Authorization: Bearer {token}

See Authentication for more details on how to generate an API token.

Basic

To authenticate using the basic method, add an Authorization header with the contents of the header being Basic {base64} where {base64} is a base64 encoded string of "{credentials_id}:{credentials_secret}".

Authorization: Basic {base64}

See Authentication for more details on how to generate an API token.

API response

Tirix follows the REST architectural style for it's API and conforms to generic HTTP response standards.

HTTP status codes

Tirix returns standard HTTP response codes.

Success

CodeNameDescription
200OKThe request succeeded.
201CreatedThe request succeeded, and a new resource was created as a result.
202AcceptedThe request has been received but not yet acted upon.
204No ContentThe request succeeded, but here is no content to send for this request

Request error

CodeNameDescription
400Bad RequestUnable to process request due to an error in the shape of the request. Verify that the request matches the endpoint specifications.
401Unauthorized
403Forbidden
404Not Found
405Method Not Allowed
429Too Many RequestsThere were too many requests made to the API. Read more on rate limits and daily request quota.

Internal error

CodeNameDescription
408Request Timeout
500Internal Server Error
502Bad Gateway
503Service Unavailable
504Gateway Timeout

More info on HTTP response codes can be found on Mozilla Developer Networkopen in new window.

Common object schemas

Schema: Address

PropertyTypeDescription
nameStringAddress name
address1StringFirst address line (street name)
address2StringSecond address line
postal_codeStringPostal code
cityStringCity
stateString(optional) State
countryStringCountry code (ISO 3166-1 alpha-3open in new window)
Last Updated: