# Trip Planner Api Departure\_mon giving 401 Error althogh correct informatio is inputted

**URL:** <https://opendataforum.transport.nsw.gov.au/t/trip-planner-api-departure-mon-giving-401-error-althogh-correct-informatio-is-inputted/1120>\
**Category:** Uncategorized\
**Created:** [December 19, 2017, 7:14am UTC](https://opendataforum.transport.nsw.gov.au/t/trip-planner-api-departure-mon-giving-401-error-althogh-correct-informatio-is-inputted/1120 "2017-12-19T07:14:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bobby\_Dazzler](https://avatars.discourse-cdn.com/v4/letter/b/bbce88/32.png) [@Bobby\_Dazzler](https://opendataforum.transport.nsw.gov.au/u/Bobby_Dazzler)\
**Post date:** [December 19, 2017, 7:14am UTC](https://opendataforum.transport.nsw.gov.au/t/trip-planner-api-departure-mon-giving-401-error-althogh-correct-informatio-is-inputted/1120/1 "2017-12-19T07:14:03Z")

</div>

Hi,

Every time i try the Departure\_mon the api explorer always returns the error 401 even though i have put in the correct data. Any help is appreciated.

Cheers.

---

<div class="post-metadata">

**Author:** ![alejandro.felman](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@alejandro.felman](https://opendataforum.transport.nsw.gov.au/u/alejandro.felman)\
**Post date:** [December 19, 2017, 10:50pm UTC](https://opendataforum.transport.nsw.gov.au/t/trip-planner-api-departure-mon-giving-401-error-althogh-correct-informatio-is-inputted/1120/2 "2017-12-19T22:50:32Z")

</div>

Hi @Bobby_Dazzler, doesn’t look like anything is wrong with the Trip Planner API. Please make sure that you read the documentation, that’s the pdf in the dataset, which you can find here [Trip Planner APIs | TfNSW Open Data Hub and Developer Portal](https://opendata.transport.nsw.gov.au/dataset/trip-planner-apis)

If you’re still getting an error please provide an example so we can investigate further.

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![phiali](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/phiali/32/221_2.png) [@phiali](https://opendataforum.transport.nsw.gov.au/u/phiali)\
**Post date:** [December 20, 2017, 1:38am UTC](https://opendataforum.transport.nsw.gov.au/t/trip-planner-api-departure-mon-giving-401-error-althogh-correct-informatio-is-inputted/1120/3 "2017-12-20T01:38:37Z")

</div>

A HTTP 401 error, Unauthorized, is indicative of authentication issues so make sure you’re sending through the correct headers.

---

<div class="post-metadata">

**Author:** ![Bobby\_Dazzler](https://avatars.discourse-cdn.com/v4/letter/b/bbce88/32.png) [@Bobby\_Dazzler](https://opendataforum.transport.nsw.gov.au/u/Bobby_Dazzler)\
**Post date:** [December 21, 2017, 12:42am UTC](https://opendataforum.transport.nsw.gov.au/t/trip-planner-api-departure-mon-giving-401-error-althogh-correct-informatio-is-inputted/1120/4 "2017-12-21T00:42:31Z")

</div>

Thanks for your help guys, however I’am only using the API explorer to do this and it is giving the 401 error.

---

<div class="post-metadata">

**Author:** ![alejandro.felman](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@alejandro.felman](https://opendataforum.transport.nsw.gov.au/u/alejandro.felman)\
**Post date:** [December 21, 2017, 12:54am UTC](https://opendataforum.transport.nsw.gov.au/t/trip-planner-api-departure-mon-giving-401-error-althogh-correct-informatio-is-inputted/1120/5 "2017-12-21T00:54:58Z")

</div>

Hi @Bobby_Dazzler, if it’s an issue with the API explorer then make sure that you’ve set up your application correctly by following our [user guide](https://opendata.transport.nsw.gov.au/user-guide) and that you’re using the API parameters correctly by following the Trip Planner API documentation.

I just tried it myself and didn’t encounter any errors, see below.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/nsw/original/1X/0b14dfaa36b0b0f2a55291a707279f5ca24ed38f.png)

If you encounter further issues please let me know and I’ll investigate further.

Thanks,  
Alex
