How to create an API key

Created by Bryndís Rún Hafliðadóttir, Modified on Mon, 16 Nov at 2:01 PM by Bryndís Rún Hafliðadóttir

TourDesk offers a powerful Application Programming Interface (API) you can use to build your own booking experience, allowing you to directly fetch data from TourDesk and enabling any external systems you’re using to “talk” to TourDesk. Note that the API key is linked to your account, so don’t give the API key to anyone outside of your company.


After you finish setting up your portal, you will get a tab under it called “API Setup”. This tab gives you information about how to set up the API connection. To create an API key in TourDesk, click Portal > Name of your portal > API Setup in the left-hand side menu. There you can see your current API key. Note If you’re already using the API for this location and click Re-Generate API Key, your current applications will stop working until you update the API key.


The only thing you need to connect to it is your API key; it should be added to the header like this:
“ApiKey”: <your generated key>



Most use the “TourSearch” endpoint to find tours through the API and then use the id returned in the Widget to show the activity. As seen below:

<td-activity-box-widget theme="default" td-id="370542-1" apikey="xxx" class="td-activity-box-widget" style="height: 330px; width: 360px; display: block;"></td-activity-box-widget>


Then they show the user how to book that tour by using the booking widget:
<td-booking-widget class="td-widget-root" td-id="370542-1" apikey="xxx"></td-booking-widget>


For further information, check out our API Documentation.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article