Skip to main content
POST
Create command

Autorizações

X-Api-Key
string
header
obrigatório

Parâmetros de caminho

agentPublicId
string<uuid>
obrigatório

Corpo

application/json

Body for creating a new slash command on an agent.

command
string

Slash command identifier. Lowercase alphanumeric with optional hyphens (not leading or trailing).

Maximum string length: 100
Pattern: ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$
Exemplo:

"summarize-invoices"

description
string

Short description shown in the command picker.

Maximum string length: 500
Exemplo:

"Summarizes recent invoices grouped by month."

name
string

Display name of the command.

Maximum string length: 150
Exemplo:

"Summarize invoices"

prompt
string

Prompt template injected when the command is invoked.

Maximum string length: 10000
Exemplo:

"Summarize the user's last 10 invoices grouped by month."

Resposta

Command created

Slash command on an agent.

command
string
createdAt
string<date-time>
description
string
lastUsedAt
string<date-time>
name
string
prompt
string
publicId
string<uuid>
status
enum<string>
Opções disponíveis:
active,
inactive
updatedAt
string<date-time>
usageCount
integer<int64>