All Docs

REST API Reference

The Cognova REST API lives at https://cognova.dev/api/v1. All endpoints require an API key via the Authorization: Bearer header.

Authentication

Every request must include your API key:

curl -H "Authorization: Bearer cg_YOUR_KEY" \
  https://cognova.dev/api/v1/agents

Invalid or missing keys return 401 Unauthorized.

Base URL

https://cognova.dev/api/v1

Response Format

All endpoints return JSON with a data wrapper:

{
  "data": { ... }
}

Errors return standard HTTP status codes with a message field.

Endpoints Overview

Agents

MethodEndpointDescription
GET/api/v1/agentsList agents
POST/api/v1/agents/askAsk an agent

Tasks

MethodEndpointDescription
GET/api/v1/tasksList tasks
POST/api/v1/tasksCreate task
PUT/api/v1/tasks/:idUpdate task

Memory

MethodEndpointDescription
GET/api/v1/memory/searchSearch memories
POST/api/v1/memoryStore memory

Knowledge

MethodEndpointDescription
GET/api/v1/knowledgeList files
GET/api/v1/knowledge/:pathGet file

Skill

MethodEndpointDescription
GET/api/v1/skillDownload the Python skill script

Rate Limits

There are currently no rate limits enforced. This may change in future releases.

Token Usage

Agent invocations (/api/v1/agents/ask) consume credits from your workspace pool. Usage is logged and visible in the dashboard under Settings > Billing.