Skip to content

Get a command request

Request

API to get a command request

Security
apiKey
Path
idstringrequired

ID of the command request object

cURL
curl -i -X GET \
  'https://develop-api.esper.io/_mock/openapi/commands/v0/commands/{id}/' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Command request information

Bodyapplication/json
codeinteger
messagestring
contentobject(CommandRequest)
Response
{ "code": 0, "message": "string", "content": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "command_type": "DEVICE", "devices": [], "groups": [], "device_type": "active", "command": "ADD_TO_WHITELIST", "command_args": {}, "schedule": "IMMEDIATE", "schedule_args": {}, "reason": "string", "created_by": "string", "created_at": "2019-08-24T14:15:22Z" } }