Is your API request targeting the right region? [Tip #7 Carolina from Support]

Hi y’all, Carolina from the Support team here once again :slight_smile:

I often receive tickets from customers facing issues when trying to send data to TagoIO.

Here’s today’s tip:

When sending data to TagoIO via HTTP or using the REST API, make sure your endpoint URL includes the correct region. TagoIO uses regionalized API endpoints, and requests must target the region where your Account resides. If you omit the region, your request may fail or hit the wrong environment. If you don’t add a region it will utilize the us-e1 region by default.

The correct format: https: //api..tago.io/… For the US region use us-e1 and for the EU region use eu-w1.

Examples:

Create device in EU:
POST https://api.eu-w1.tago.io/device
Send/get data in US:
POST https://api.us-e1.tago.io/data
GET https://api.tago.io/data?variable=temperature

Another important tip is: always make sure to include the appropriate token in the Authorization header. Learn more here.

Hope this tip helps! Please, share here if you have any doubts about this, I will be more than glad to answer!

Happy weekend :slight_smile:

5 Likes