API Reference

REST API endpoints for developers who want programmatic access to Autonomis.

Most users do not need the API. Everything listed here is available through the Dashboard with a friendly interface. The API is for developers who want to automate workflows or build custom integrations.

Base URL

https://api.autonomis.nexaminds.ai/api/v1

Authentication

All API requests require an API key sent in the X-API-Key header:

Example request header
X-API-Key: your-api-key-here

You can find your API key in the dashboard. Keep it secret — anyone with your key can manage your agents.

Error Responses

When something goes wrong, the API returns a JSON object with an error field describing the problem:

Error response
{
  "error": "agent not found"
}

For security reasons, server errors (5xx) always return a generic "internal server error" message without revealing internal details.

User Management

Create and manage user accounts and change plans.

MethodPathDescription
POST/api/v1/usersCreate a new user account
GET/api/v1/usersList all users
GET/api/v1/users/{user}Get user details and agents
DELETE/api/v1/users/{user}Delete user and all their data
PUT/api/v1/users/{user}/tierChange the user's plan

Agent Management

Create, list, and delete agents. Check agent health and rotate API keys.

MethodPathDescription
POST/api/v1/users/{user}/agentsCreate one or more agents
GET/api/v1/users/{user}/agentsList all agents for a user
GET/api/v1/users/{user}/agents/{agent}Get agent details
DELETE/api/v1/users/{user}/agents/{agent}Delete an agent
POST/api/v1/users/{user}/agents/{agent}/rotate-keyGenerate a new API key for the agent
GET/api/v1/users/{user}/agents/{agent}/pingCheck if the agent is online
GET/api/v1/users/{user}/agents/{agent}/connectGet gateway connection details
GET/api/v1/users/{user}/deploy/statusCheck deployment progress

Chat

Send messages to your agents and receive responses. The streaming endpoint uses Server-Sent Events (SSE) for real-time output.

MethodPathDescription
POST/api/v1/users/{user}/agents/{agent}/chatSend a message and get a response
POST/api/v1/users/{user}/agents/{agent}/chat/streamSend a message with streaming response (SSE)
Example: Send a message
POST /api/v1/users/{user}/agents/{agent}/chat

{
  "messages": [
    { "role": "user", "content": "Hello, what can you help me with?" }
  ]
}

Response:
{
  "message": "I can help you with research, writing, and analysis...",
  "agent": "manager"
}

Templates

Customize agent behavior with template files (SOUL.md, USER.md, TOOLS.md, HEARTBEAT.md). Set defaults for all agents, or override per agent.

MethodPathDescription
GET/api/v1/users/{user}/agent-templatesGet user-level default templates
PUT/api/v1/users/{user}/agent-templatesUpdate user-level default templates
GET/api/v1/users/{user}/agents/{agent}/templatesGet per-agent template overrides
PUT/api/v1/users/{user}/agents/{agent}/templatesUpdate per-agent template overrides

Secrets

Store encrypted environment variables (API keys, tokens, passwords) that your agents can use at runtime.

MethodPathDescription
PUT/api/v1/users/{user}/secretsAdd or update secrets
GET/api/v1/users/{user}/secretsList secret keys (values are masked)
DELETE/api/v1/users/{user}/secrets/{key}Delete a secret

Agent Files

Read, write, and delete files in an agent's workspace.

MethodPathDescription
GET/api/v1/users/{user}/agents/{agent}/files/*Read a file from the agent's workspace
PUT/api/v1/users/{user}/agents/{agent}/files/*Write a file to the agent's workspace
DELETE/api/v1/users/{user}/agents/{agent}/files/*Delete a file from the workspace

Skills

Upload custom skills or install pre-built ones from the ClawHub marketplace.

MethodPathDescription
PUT/api/v1/users/{user}/skills/{id}/fileUpload a custom skill
DELETE/api/v1/users/{user}/skills/{id}/fileDelete a skill
POST/api/v1/users/{user}/skills/{slug}/registry-installInstall a skill from ClawHub

Usage & Monitoring

Track token usage, view container logs, and update agent tool settings.

MethodPathDescription
GET/api/v1/users/{user}/usageGet token usage for the current month
GET/api/v1/users/{user}/logsGet container logs
PATCH/api/v1/users/{user}/agents/{agent}/configUpdate agent tool configuration

Health Check

GET /healthz
Response 200:
{
  "status": "ok"
}

Use this endpoint to verify the API is running. No authentication required.