Skip to main content
POST
/
v1
/
agents
/
{agent_id}
/
chat
Chat with agent
curl --request POST \
  --url https://api.gigabrain.gg/v1/agents/{agent_id}/chat \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "What positions are you currently monitoring?",
  "session_id": "<string>",
  "stream": false
}
'
{
  "content": "<string>",
  "session_id": "<string>"
}

Authorizations

Authorization
string
header
required

Your Gigabrain API key. Get one at https://gigabrain.gg/profile?tab=api. Format: gb_sk_...

Path Parameters

agent_id
string<uuid>
required

The agent's unique identifier

Body

application/json
message
string
required

Message to send to the agent

Example:

"What positions are you currently monitoring?"

session_id
string

Omit to start a new session

stream
boolean
default:false

Set to true for SSE streaming response

Response

Agent response (non-streaming)

Non-streaming response. For streaming, set stream: true to receive SSE events.

content
string
session_id
string