API to get and filter command request status
Status list for a command request
Authorization information is missing or invalid.
Internal server error
curl -i -X GET \ 'https://develop-api.esper.cloud/api/commands/v0/status/?request=string&device=string&state=Command%20Queued&exclude_internal_commands=false&limit=0&offset=0' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "code": 0,
- "message": "string",
- "content": {
- "count": 0,
- "previous": "string",
- "next": "string",
- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "request": "60448f3a-8291-43df-9526-c3d4a574e4d2",
- "device": "8dca31e6-c85b-4a6b-bfb4-205d45d9b3bd",
- "state": "Command Queued",
- "reason": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
}
API to get a command status
Command status information
Authorization information is missing or invalid.
Not Found.
Internal server error
curl -i -X GET \ 'https://develop-api.esper.cloud/api/commands/v0/status/{id}/' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "code": 0,
- "message": "string",
- "content": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "request": "60448f3a-8291-43df-9526-c3d4a574e4d2",
- "device": "8dca31e6-c85b-4a6b-bfb4-205d45d9b3bd",
- "state": "Command Queued",
- "reason": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
API to update a command status state
Command status successfully updated.
Bad request
Authorization information is missing or invalid.
Internal server error
{- "state": "Command Acknowledged",
- "reason": "string"
}
{- "code": 0,
- "message": "string",
- "content": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "request": "60448f3a-8291-43df-9526-c3d4a574e4d2",
- "device": "8dca31e6-c85b-4a6b-bfb4-205d45d9b3bd",
- "state": "Command Queued",
- "reason": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
API to get Queued Commands for a Device
List of Queued Command Status
Bad request
Authorization information is missing or invalid.
Internal server error
curl -i -X GET \ 'https://develop-api.esper.cloud/api/v2/command-inbox/?device_id=string' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "code": 0,
- "message": "string",
- "content": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "command": "string",
- "command_args": {
- "script": "string"
}, - "device_meta": {
- "platform": "string"
}, - "state": "Command Queued",
- "created_on": "2019-08-24T14:15:22Z",
- "updated_on": "2019-08-24T14:15:22Z"
}
}