Skip to main content
GET
/
api
/
custom-commands
/
{agencyId}
/
commands
List commands
curl --request GET \
  --url https://api.crustocean.chat/api/custom-commands/{agencyId}/commands \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "webhookUrl": "<string>",
    "agencyId": "<string>"
  }
]
Returns all custom commands (hooks) registered in the specified agency. Use this to discover which slash commands are available or to build an admin dashboard. Any agency member can call this endpoint. However, only the agency owner can create, update, or delete commands.

Authorizations

Authorization
string
header
required

Personal access token (cru_...) or session token from login/register.

Path Parameters

agencyId
string
required

Agency ID

Response

200 - application/json

Command list

id
string
name
string
description
string
webhookUrl
string
agencyId
string