Main Content

Get All TalkBack Commands

Get all TalkBack commands from TalkBack queue

Request

HTTP Method

GET

URL

https://api.thingspeak.com/talkbacks/<talkback_id>/commands/.<format>

Input Arguments

NameDescription

<talkback_id>

(Required) TalkBack ID, specified as a positive integer.

<format>

Format for the HTTP response, specified as json or xml.

Example: https://api.thingspeak.com/talkbacks/12345/commands.json

Query String Parameters

NameDescriptionValue Type
api_key

(Required) API key for this specific instance of TalkBack. The TalkBack key is different from the channel and user API keys.

string

Content-Type

application/x-www-form-urlencoded

Response

Success

HTTP Status Code

200 OK

Body

The example responses are based on this sample TalkBack queue.

Specify <format> as blank to receive the response in text format.

GET https://api.thingspeak.com/talkbacks/12345/commands?api_key=XXXXXXXXXXXXXXXX

Sample Response

"OPENDOOR","CLOSEDOOR","BUCLKESHOE"
GET https://api.thingspeak.com/talkbacks/12345/commands.json?api_key=XXXXXXXXXXXXXXXX

Response

[
{
"id": 15200360,
"command_string": "OPENDOOR",
"position": 1,
"executed_at": null,
"created_at": "2019-02-20T14:22:02Z"
},
{
"id": 15200361,
"command_string": "CLOSEDOOR",
"position": 2,
"executed_at": null,
"created_at": "2019-02-20T14:22:07Z"
},
{
"id": 15200362,
"command_string": "BUCKLESHOE",
"position": 3,
"executed_at": null,
"created_at": "2019-02-20T14:25:02Z"
}
]
GET https://api.thingspeak.com/talkbacks/12345/commands/2448500.xml?api_key=XXXXXXXXXXXXXXXX

Response

<commands type="array">
<command>
<id type="integer">15200360</id>
<command-string>OPENDOOR</command-string>
<position type="integer">1</position>
<executed-at type="dateTime" nil="true"/>
<created-at type="dateTime">2019-02-20T14:22:02Z</created-at>
</command>
<command>
<id type="integer">15200361</id>
<command-string>roofCLOSEDOORinteger">2</position>
<executed-at type="dateTime" nil="true"/>
<created-at type="dateTime">2019-02-20T14:22:07Z</created-at>
</command>
<command>
<id type="integer">15200362</id>
<command-string>BUCKLESHOE</command-string>
<position type="integer">3</position>
<executed-at type="dateTime" nil="true"/>
<created-at type="dateTime">2019-02-20T14:25:02Z</created-at>
</command>
</commands>

Error

For the full list, see Error Codes.