Unified API: Endpoint Examples

Proxy Endpoint (/proxy)

Used to fetch special links (docs, dashboard, etc.). No authentication needed.

BASH
POST /proxy { "action": "docs" }

Create API Key (/createapikey)

Create a new API key using an auth token.

BASH
POST /createapikey { "auth_token": "USERID:TIMESTAMP:RANDOM", "key_name": "My New Key" }

Get Info (/info)

Retrieve information about agents, credits, usage, etc.:

BASH
POST /info { "auth_token": "USERID:TIMESTAMP:RANDOM", "action": "get_credits" }

Operation (/operation)

Send an operation (e.g. 'message') to an agent:

BASH
POST /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.

BASH
POST /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