Docs / APIREST · v1

API Reference

The dnawerkes REST API gives you direct programmatic access to agent execution, vector memory, and mesh orchestration. Base URL: api.dnawerkes.ai/v1

AUTH

All endpoints require a bearer token. Include your API key as Authorization: Bearer <API_KEY> in every request header.

Authentication guide →
POST
/v1/agents/run

Execute a task against a specified agent configuration. Returns a result object with output, token usage, and latency.

GET
/v1/agents/{id}/status

Retrieve the current execution status of a running or completed agent task.

POST
/v1/memory/upsert

Insert or update documents into a named vector memory index. Supports batch operations up to 512 documents.

POST
/v1/memory/query

Semantic similarity search over a named index. Returns ranked chunks with relevance scores.

DELETE
/v1/memory/{index}

Permanently delete a named memory index and all associated vectors.

GET
/v1/telemetry/metrics

Retrieve live performance metrics: latency percentiles, token throughput, and task success rates.

POST
/v1/mesh/delegate

Route a subtask to a specific agent node or allow the orchestrator to select the optimal node.

GET
/v1/mesh/topology

Returns the current agent mesh topology: active nodes, load distribution, and health status.