Common Issues FAQ

JSON Body Formatting

The body of your request must be valid JSON. Don't get your double/single quotes mixed up!

πŸ‘

Use Double Quotes

Keys and values should both use double quotes. Use single quotes to stringify the whole body of your request.

curl https://perform.trakstar.com/api/v1/authenticate \ --request POST \ --header "Content-Type: application/json" \ --header "Accept: application/json" \ --data \ ' { "company_name": "Mozilla Inc.", "username": "some-api-user", "key": "omayZ6wtKq3HwCMk4jGKan39nNwlr" } '

Content-Type and Accept Headers

Our API endpoints expect the Content-Type and Accept headers to be application/vnd.api+json. The only exception to this rule is the /authenticate endpoint, which expects both headers to be application/json.