The calling application is unauthenticated

When using the Trip Planner API Swagger integration, I use my apikey with the Authorize function but still get unauthenticated errors. I’ve tried multiple other methods including curl and python requests.

Example curl requests I’ve used:

curl -X 'GET' '``https://api.transport.nsw.gov.au/v1/tp/add_info?outputFormat=rapidJSON&filterDateValid=01-10-2016&version=10.2.1.42``' -H 'accept: application/json' -H 'apikey <REDACTED>'

and

curl -X 'GET' '``https://api.transport.nsw.gov.au/v1/tp/add_info?outputFormat=rapidJSON&filterDateValid=01-10-2016&version=10.2.1.42``' -H 'accept: application/json' -H 'Authorization: <REDACTED>'

I receive back a json message:

{ "ErrorDetails":{ "TransactionId":"0000019eb419e7c8-b42369", "ErrorDateTime":"2026-06-12T22:05:16.132+10:00", "Message":"The calling application is unauthenticated.", "RequestedUrl":"/v1/tp/add_info", "RequestMethod":"GET" } }

Any help appreciated

Fixed. the syntax is
curl -X 'GET' '``https://api.transport.nsw.gov.au/v1/tp/add_info?outputFormat=rapidJSON&filterDateValid=01-10-2016&version=10.2.1.42``' -H 'accept: application/json' -H 'Authorization: apikey <REDACTED>'

Hi @ianod

I hope the new code is working as expected.

Let us know if you are facing any issues.