List commands

Chat commands of your channel with reply, aliases, level, cooldowns, cost and whether they are on.

GET https://cotlet.dev/api/v1/streamelements/commands

read

Returns the custom commands of your channel, ordered by name, with the reply text, aliases, who may use it, global and user cooldowns in seconds, point cost and response type. Search matches the command name and the reply text. Pass command_id to update_command.

Parameters

Parameters: list_commands
NameTypeDescription
search string string Only commands whose name or reply contains this text.
enabled boolean boolean Only commands that are on (true) or off (false).
limit integer integer 1 to 100. Default: 50.
cursor string string Next page cursor from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/streamelements/commands \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("streamelements", "list_commands")
Node.js
const result = await cotlet.call('streamelements', 'list_commands');
CLI
cotlet call streamelements list_commands

Example response

JSON

{
  "commands": [
    {
      "command_id": "c_4b19e0",
      "trigger": "!schedule",
      "aliases": [
        "!stream"
      ],
      "reply": "Streams this week: Mon-Fri 19:00 CET.",
      "level": "Everyone",
      "cooldown": {
        "global": 5,
        "user": 15
      },
      "cost": 0,
      "response_type": "say",
      "enabled": true
    }
  ],
  "next_cursor": null
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.