Rhun REST API

You will need an API Key to access the Rhun REST API. Get your API Key at https://beta.rhun.io/account

The Rhun REST API provides programmatic access to the core functionality of the Rhun trading and research platform. Designed for developers, quants, and crypto analysts, this API enables seamless integration with Rhun’s suite of financial intelligence tools.

Key Features:

  • Access real-time and historical market data

  • Analyze token trends, movements, and sentiment

  • Execute custom research queries through AI-enhanced endpoints

  • Integrate Rhun tools into custom dashboards, bots, or trading strategies

Chat with the AI

post
Authorizations
Body
Responses
200
Chat response
application/json
post
POST /api/chat HTTP/1.1
Host: beta.rhun.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 85

{
  "messages": [
    {
      "role": "user",
      "content": "text"
    }
  ],
  "agent": {
    "id": "text",
    "userId": "text"
  }
}
{
  "response": "text"
}

List agents

get
Authorizations
Responses
200
List of agents
application/json
get
GET /api/agents HTTP/1.1
Host: beta.rhun.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "id": "text",
    "userId": "text",
    "name": "text",
    "description": "text",
    "imageUrl": "text",
    "createdAt": "2025-06-30T16:22:25.007Z",
    "updatedAt": "2025-06-30T16:22:25.007Z",
    "model": "claude-3-5-sonnet-20240620",
    "configuration": {
      "coreCapabilities": "text",
      "interactionStyle": "text",
      "analysisApproach": "text",
      "riskCommunication": "text",
      "responseFormat": "text",
      "limitationsDisclaimers": "text",
      "prohibitedBehaviors": "text",
      "knowledgeUpdates": "text",
      "specialInstructions": "text",
      "wallets": [
        {
          "address": "text",
          "network": "text",
          "type": "text"
        }
      ]
    }
  }
]

Create new agent

post
Authorizations
Body
imagestring · binaryOptional

Agent profile image (optional)

Responses
201
Agent created successfully
application/json
post
POST /api/agents HTTP/1.1
Host: beta.rhun.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 780

{
  "data": {
    "name": "Crypto Analyst",
    "description": "A crypto analyst providing insights on market trends",
    "model": "claude-3-5-sonnet-20240620",
    "configuration": {
      "coreCapabilities": "Deep expertise in cryptocurrency markets...",
      "interactionStyle": "Professional yet approachable tone...",
      "analysisApproach": "Consider multiple perspectives...",
      "riskCommunication": "Always highlight potential risks...",
      "responseFormat": "1. Context\n2. Analysis\n3. Considerations\n4. Next Steps",
      "limitationsDisclaimers": "Clearly state when information is insufficient...",
      "prohibitedBehaviors": "Never make specific price predictions...",
      "knowledgeUpdates": "Base analysis on available historical data...",
      "specialInstructions": "When analyzing trends: 1. Start with longer timeframes..."
    }
  },
  "image": "binary"
}
{
  "message": "text",
  "agentId": "text",
  "userId": "text",
  "imageUrl": "text"
}

List watchers

get
Authorizations
Responses
200
List of watchers
application/json
get
GET /api/watchers HTTP/1.1
Host: beta.rhun.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "id": "text",
    "name": "text",
    "type": "text",
    "status": "text"
  }
]

Create new watcher

post
Authorizations
Body
namestringOptional
typestringOptional
configurationobjectOptional
Responses
201
Watcher created successfully
application/json
post
POST /api/watchers HTTP/1.1
Host: beta.rhun.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 48

{
  "name": "text",
  "type": "text",
  "configuration": {}
}
{
  "id": "text",
  "name": "text",
  "type": "text",
  "status": "text"
}

Last updated