Performing your first API call

Prerequisites

Before you begin, make sure:

circle-info

Please note that depending on your access level you'll be able to use different API endpoints.

Authentication

All API requests must include:

  • "Authorization" header containing the Distributor API key. Authorization: Token [partner-api-key]

  • "User-Agent" header containing any user agent of your choice, but preferably the name of your company or brand as this helps with debugging any issues later on "User-Agent: cool company X"

triangle-exclamation

Example using cURL:

curl --request GET "https://api.tiqets.com/v2/products" \
--header "Accept: application/json" \
--header "User-Agent: my user agent" \
--header "Authorization: Token [partner-api-key]"
circle-check

Code Samples

Here are several examples to help you perform your first API call.

Make sure to update the code before running it by inserting your API Key.

circle-exclamation

Last updated

Was this helpful?