API Token Issue

Have create an API token but always getting 401 regardless which API I’m using. Any idea ?

Hi @James ,

try with the word apikey and a space before the token.

1 Like

Thank you this works

curl -X ‘GET’
https://api.transport.nsw.gov.au/v1/carpark
-H ‘accept: application/json’
-H ‘Authorization: apikey XXXXXX’

1 Like