List of all versions of a bot. Version 0 represents the version of the bot code currently saved to scratch space.
Response format | JSON |
---|---|
Requires authentication? | Yes |
curl -X GET \
-u '[SID]:[TOKEN]' \
'https://api.essential.to/bots/v1/list/M023pJRT9yNmt-5RjTQBwQ/versions'
# Sample response
[
{
"version_id": 0,
"created_at": "2017-02-22T22:18:10.000Z",
"updated_at": "2017-02-22T22:58:27.000Z",
"sid": "tcshms-zuQVC039NSULS3A",
"bot_sid": "M023pJRT9yNmt-5RjTQBwQ"
},
{
"version_id": 1,
"created_at": "2017-02-22T23:01:49.000Z",
"updated_at": "2017-02-22T23:01:49.000Z",
"sid": "3mesNha3El_vwtUUC-iW8Q",
"bot_sid": "M023pJRT9yNmt-5RjTQBwQ"
}
]
Python coming soon.
Node coming soon.