Skip to content
Wazapin
Esc
navigateopen⌘Jpreview

Smith builder reply (removed)

Removed: use POST /v1/companion/chat with mode=builder and target_agent_id. See docs/runbooks/companion-smith-migration.md.

POST/v1/ai/agents/{agentID}/smith/messagesdeprecated
Authorization
bearerAuthbearerAuthrequired
or
apiKeyAuthapiKeyAuthrequired
Path parameters
agentIDstringrequired
Request body
requiredapplication/json
messagestring
messagesAISmithMessageInput[] | null
Show properties
Array of AISmithMessageInput
contentstringrequired
Message content
rolestring
Message role (user/assistant/system)
Responses
200OK
agent_idstringrequired
confidence_scorenumber<double>
created_atstring
messagestringrequired
message_idstring
modelstringrequired
providerstringrequired
session_idstring
401Unauthorized
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
403Forbidden
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
410Gone
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
422Unprocessable Entity
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
500Internal Server Error
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
Request
curl -X POST "/v1/ai/agents/string/smith/messages" \
  -H "Content-Type: application/json" \
  -d '{
  "message": "string",
  "messages": [
    {
      "content": "string",
      "role": "string"
    }
  ]
}'
Response
{
  "agent_id": "string",
  "confidence_score": 0,
  "created_at": "string",
  "message": "string",
  "message_id": "string",
  "model": "string",
  "provider": "string",
  "session_id": "string"
}