Skip to main content

Send Message

Send a message and Snorbe’s research agent will execute a research task and return the result as text. Internally, this creates a user chat, runs the agent, and returns the response in a single call.
Agent execution may take up to several minutes. Set a generous timeout.

Request

POST /api/trpc/chat.sendMessageWithApiKey

Headers

HeaderRequiredDescription
AuthorizationYesAPI key in Bearer snorbe_... format
Content-TypeYesapplication/json

Request Body

Following tRPC conventions, wrap input in a json key:
{
  "json": {
    "message": "Research the latest semiconductor trends",
    "modelName": "snorbe-fast",
    "locale": "en",
    "fileUrls": []
  }
}

Parameters

ParameterTypeRequiredDescription
messagestringYesMessage to send to the agent
modelNamestringYesModel name (see below)
localestringNoResponse language: "ja" or "en". Default: "ja"
fileUrlsstring[]NoAttached file URLs (max 10)

Model Names

ModelDescription
snorbe-fastFast model (recommended, low cost, quick response)
snorbe-qualityHigh quality model (accuracy-focused)
Individual model IDs from OpenAI, Anthropic, Gemini, DeepSeek, etc. are also supported.

Response

{
  "result": {
    "data": {
      "json": {
        "text": "Here are the latest semiconductor trends..."
      }
    }
  }
}

Response Fields

FieldTypeDescription
textstringAgent response text

Examples

curl -X POST "https://app.snorbe.com/api/trpc/chat.sendMessageWithApiKey" \
  -H "Authorization: Bearer snorbe_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{"json":{"message":"Research the latest semiconductor trends","modelName":"snorbe-fast","locale":"en"}}'

Error Responses

HTTP StatusCodeDescription
400BAD_REQUESTValidation error (invalid model name, etc.)
401UNAUTHORIZEDInvalid, expired, or missing API key
429TOO_MANY_REQUESTSRate limit exceeded
500INTERNAL_SERVER_ERRORAgent execution error