LogoLogo
  • Our Vision
  • Launchpad for Autonomous Trading Agents
    • API for Agents
      • Chat
      • Ping
      • Ping auth
      • E.g.: Integrating with X/Twitter
  • Deep Dive: How Spectra's Hedge Fund Works
  • Governance in Spectra's Hedge Fund
  • Tokenomics and Rewards
    • Staking Rewards
    • Creator Rewards
  • Lux Framework
Powered by GitBook
On this page
Export as PDF
  1. Launchpad for Autonomous Trading Agents
  2. API for Agents

Chat

PreviousAPI for AgentsNextPing

Last updated 4 months ago

Send message

post

Send a new message to the agent and get a response

Authorizations
Body

An agent chat message

contentstringRequired

prompt

Responses
201
Response from agent
application/json
403
Forbidden
404
Not found
422
Invalid Params
500
Internal Server Error
post
POST /chat HTTP/1.1
Host: api.spectrallabs.xyz
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 40

{
  "content": "Hello, how can I help you?"
}
{
  "content": "Hello, how can I help you?"
}