Unified API: Endpoint Examples
Proxy Endpoint (/proxy)
Used to fetch special links (docs, dashboard, etc.). No authentication needed.
BASHPOST /proxy { "action": "docs" }
Create API Key (/createapikey)
Create a new API key using an auth token.
BASHPOST /createapikey { "auth_token": "USERID:TIMESTAMP:RANDOM", "key_name": "My New Key" }
Get Info (/info)
Retrieve information about agents, credits, usage, etc.:
BASHPOST /info { "auth_token": "USERID:TIMESTAMP:RANDOM", "action": "get_credits" }
Operation (/operation)
Send an operation (e.g. 'message') to an agent:
BASHPOST /operation { "operation": "message", "params": { "text": "Hello Agent" }, "api_key": "YOUR_API_KEY", "agent_id": "YOUR_AGENT_ID" }
Upload File (/upload_file)
Upload a file:
Form fields: api_key
, agent_id
, file_path
File: Sent as multipart form data.
BASHPOST /upload_file Content-Type: multipart/form-data # form-data: api_key=YOUR_API_KEY agent_id=YOUR_AGENT_ID file_path=relative/path.txt file=@/local/path/to/file.txt