# Losant Git Export from REST API

**URL:** <https://forums.losant.com/t/losant-git-export-from-rest-api/5868>\
**Category:** Help\
**Tags:** experience\
**Created:** [June 17, 2025, 7:39pm UTC](https://forums.losant.com/t/losant-git-export-from-rest-api/5868 "2025-06-17T19:39:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Carlstrom](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Michael\_Carlstrom](https://forums.losant.com/u/Michael_Carlstrom)\
**Post date:** [June 17, 2025, 7:39pm UTC](https://forums.losant.com/t/losant-git-export-from-rest-api/5868/1 "2025-06-17T19:39:30Z")

</div>

The recent ability to export to git repos is really useful. Is there anyway to do this automatically once a week? Looking at the REST API page for [export](https://docs.losant.com/rest-api/application/#export) it does not seem possible yet. Just curious if I was missing something or if there is some other intended solution.

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [June 17, 2025, 8:26pm UTC](https://forums.losant.com/t/losant-git-export-from-rest-api/5868/2 "2025-06-17T20:26:35Z")

</div>

Out of the box, no, there is no way to export the application to Git on a schedule.

However, it would be very simple to automate this with a workflow. Something like …

1. [Timer Trigger](https://docs.losant.com/workflows/triggers/timer/), configured to export on your desired schedule / frequency.
2. [Losant API Node](https://docs.losant.com/workflows/data/losant-api/) using the [Application: Export](https://docs.losant.com/rest-api/application/#export) action.

The body of the request would look like the following (you’ll need to delete the comments to make it valid JSON) …

```json
{
  "includeDevices": true, // or false
  "includeDataTableRows": true, // or false
  "includeFiles": true, // or false
  "email": "your-email@example.com",
  "callbackUrl": "https://callback-example.com", // can omit this or email if desired, but not both
  "exportType": "repo",
  "credentialName": "NAME_OF_GIT_CREDENTIAL", // its name, not its ID
  "repo":{
    "branch":"BRANCH_TO_COMMIT_TO",
    "directory":"directory/path", // delete this if going to root
    "commitMessage": "MY COMMIT MESSAGE"
  },
  "forceJob":true
}

```

This doesn’t account for error handling, callbacks / notifications and the like but it should be enough to get you started.
