Introducing GET /apps/:id

Willy Blandin
Wit.ai
Published in
2 min readAug 6, 2018

A way to know more about your Wit.ai app

As part of our move to make Wit easier to use programmatically, we are releasing a new API endpoint today.

The engineering team has been working on rewriting the machine learning training scheduler to provide more clarity and control to our users, as well as address the scheduling issues that would sometimes occur.

As a result of this work, we are happy to announce GET /apps/:id. This new endpoint provides detailed information about the app designated by the :id path parameter. This includes basic information like your app name and language, as well as the status of the machine learning training for your app. You will now be able to know when your app is scheduled to be trained, when it was last trained and how long the last training took.

# list my apps using GET /apps
curl -XGET 'https://api.wit.ai/apps?access_token='$WIT_TOKEN'&limit=10'
[
{
"name": "mon-projet-secret",
"id": "3931450400238584",
"description": "Shhh",
"lang": "fr",
"private": true,
"created_at": "2018-07-29T18:15:50-0700"
},
{
"name": "alarm-clock",
"id": "2802177596527671",
"description": "Timers, timers everywhere!",
"lang": "en",
"private": false,
"created_at": "2018-07-29T18:15:34-0700"
}
]
# get more information for a particular app
curl -XGET 'https://api.wit.ai/apps/2802177596527671?access_token='$WIT_TOKEN
{
"name": "alarm-clock",
"id": "2802177596527671",
"description": "Timers, timers everywhere!",
"lang": "en",
"private": false,
"created_at": "2018-07-29T18:15:34-0700",
"last_training_duration_secs": 0,
"will_train_at": "2018-07-29T18:17:34-0700",
"last_trained_at": "2018-07-29T18:18:34-0700",
"training_status": "done"
}

This is the first of several updates on the machine learning front, so stay tuned.

As always, please tell us what you think and how we can improve your experience. We’re looking forward to your feedback on GitHub.

Thank you for being part of our community!

--

--