# How To Build an Experience API - Newbie problem?

**URL:** <https://forums.losant.com/t/how-to-build-an-experience-api-newbie-problem/5418>\
**Category:** Help\
**Tags:** experience\
**Created:** [February 17, 2024, 1:56pm UTC](https://forums.losant.com/t/how-to-build-an-experience-api-newbie-problem/5418 "2024-02-17T13:56:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Hart](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@John\_Hart](https://forums.losant.com/u/John_Hart)\
**Post date:** [February 17, 2024, 1:56pm UTC](https://forums.losant.com/t/how-to-build-an-experience-api-newbie-problem/5418/1 "2024-02-17T13:56:44Z")

</div>

Hello,

I’m trying to follow this tutorial, but it looks like the initial section is missing:

[How To Build an Experience API | Losant Documentation](https://docs.losant.com/guides/how-to-build-an-experience-api/overview/)

The photos in the tutorial show a login page, but the tutorial jumps right into the user registration page construction.

I created a simple login page and pointed it to /auth since when I pointed it to /users and logged in, the response was always “Email already exists.”.

If I put in credentials to create a new user, I get a json response which includes the new token printed on my screen.

My confusion is how I get from /auth to the /devices endpoint.

In my application, each login will be hardcoded via tags to a single device. SO if the user logs in and passes authentication, they should be redirected to /devices/{id}/data where they will see the last states for their device.

Thank you,  
John

---

<div class="post-metadata">

**Author:** ![John\_Hart](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@John\_Hart](https://forums.losant.com/u/John_Hart)\
**Post date:** [February 17, 2024, 4:45pm UTC](https://forums.losant.com/t/how-to-build-an-experience-api-newbie-problem/5418/2 "2024-02-17T16:45:19Z")

</div>

I switched and used portions of the Huddle Application and now I am able to login and view one of my dashboards.

I’ll probably need a few hints on how to setup a page to display my device states - I assume I create an experience workflow to gate the states (Device Get) and then i create a page that formats the results?

Thank you,  
John

---

<div class="post-metadata">

**Author:** ![Brandon\_Cannaday](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/brandon_cannaday/32/14_2.png) [@Brandon\_Cannaday](https://forums.losant.com/u/Brandon_Cannaday)\
**Post date:** [February 17, 2024, 9:57pm UTC](https://forums.losant.com/t/how-to-build-an-experience-api-newbie-problem/5418/3 "2024-02-17T21:57:58Z")

</div>

Hey @John_Hart,

We recently released the [Connected Product Foundation](https://docs.losant.com/cpf/overview/) (CPF), which is a much more complete starting template for new applications. It delivers a ton of this capability out of the box. Since it sounds like you’re starting from scratch, I would definitely recommend trying it out.

We also have a [Deeper Dive Webinar replay](https://www.losant.com/deeper-dive-webinar-replay-cpf-intro) that covers the CPF.

---

<div class="post-metadata">

**Author:** ![John\_Hart](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@John\_Hart](https://forums.losant.com/u/John_Hart)\
**Post date:** [February 21, 2024, 11:43pm UTC](https://forums.losant.com/t/how-to-build-an-experience-api-newbie-problem/5418/4 "2024-02-21T23:43:11Z")

</div>

@Brandon_Cannaday when I try to add the CPF it says I don’t have enough resources available. I don’t have enough workflow and experience pages remaining.

Is it possible to backup my entire experience so I can restore everything (including data) if I run into problems while I rebuild everything using CPF?

The only way I saw was to do individual backups.

Thank you,  
John

---

<div class="post-metadata">

**Author:** ![Brandon\_Cannaday](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/brandon_cannaday/32/14_2.png) [@Brandon\_Cannaday](https://forums.losant.com/u/Brandon_Cannaday)\
**Post date:** [February 22, 2024, 4:22pm UTC](https://forums.losant.com/t/how-to-build-an-experience-api-newbie-problem/5418/5 "2024-02-22T16:22:11Z")

</div>

There is not an easy way to restore device data. You can backup all other application resources using application export:

[https://docs.losant.com/applications/import-export/#exporting-an-application](https://docs.losant.com/applications/import-export/#exporting-an-application)

You can then delete just the experience resources and import the CPF into your existing application:

[https://docs.losant.com/experiences/overview/#deleting-experience-resources](https://docs.losant.com/experiences/overview/#deleting-experience-resources)

Here’s a zip of the CPF with the devices and non-experience workflows removed. You can import this into your current application:

[export-65d76fed07e33416b819da2e-1708617930597-cpfExport.zip](https://forums.losant.com/uploads/short-url/znFSOfWkW3GBdaDKLHbP7XEbqGX.zip) (466.9 KB)

[https://docs.losant.com/applications/import-export/#import-into-an-existing-application](https://docs.losant.com/applications/import-export/#import-into-an-existing-application)

If you want to restore what you originally had, you can delete all experience resources again and import the previous application export and choose just to import just the experience resources.

---

<div class="post-metadata">

**Author:** ![Alexandre\_Pereira](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Alexandre\_Pereira](https://forums.losant.com/u/Alexandre_Pereira)\
**Post date:** [May 6, 2024, 11:49am UTC](https://forums.losant.com/t/how-to-build-an-experience-api-newbie-problem/5418/6 "2024-05-06T11:49:20Z")

</div>

Hello @Brandon_Cannaday!

Will the CPF solve Losant’s problem with time zones?  
Our customers need graphs counting data per day.  
But there are errors in the bar chart data in Losant when we select a 24h resolution.  
This resolution only provides correct data for countries located in GMT-0.  
see our July 2023 post.

> [@Timeseries graph resolution issue](https://forums.losant.com/t/timeseries-graph-resolution-issue/4924/4):
>
> I’m facing the same issue here, for a costumer analysing a maximum value for each day of the month. I have a device that already reports timestamps in UTC-3, so when I use a 24h resolution in any dashboard block, it essentially shows the wrong data. My team found some workarounds with custom charts, but to use “Time Series Graph” block correctly, I believe there’s no easy solution.

---

<div class="post-metadata">

**Author:** ![Brandon\_Cannaday](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/brandon_cannaday/32/14_2.png) [@Brandon\_Cannaday](https://forums.losant.com/u/Brandon_Cannaday)\
**Post date:** [May 6, 2024, 3:36pm UTC](https://forums.losant.com/t/how-to-build-an-experience-api-newbie-problem/5418/7 "2024-05-06T15:36:07Z")

</div>

The CPF does not directly help this issue. The built-in bucketing is performed directly in the time-series database for performance reasons and we do not yet support the ability to pass in custom timezones. This is something we’ve been investigating for a while.
