Skip to main content
The Deyta Gateway API provides programmatic access to Deyta Platform’s memory operations and namespace management. All endpoints are available over HTTPS and return JSON responses.

Base URL

https://api.deyta.ai/gateway/v1

Authentication

All requests require a Bearer token in the Authorization header. You can generate API keys from the Deyta Console.
curl https://api.deyta.ai/gateway/v1/namespaces \
  -H "Authorization: Bearer YOUR_API_KEY"

Response format

Every response follows a consistent envelope:
{
  "success": true,
  "data": { ... }
}
Paginated endpoints include an additional pagination object:
{
  "success": true,
  "data": [ ... ],
  "pagination": {
    "page": 1,
    "pageSize": 20,
    "total": 45,
    "totalPages": 3
  }
}

Error codes

HTTP StatusCodeDescription
400BAD_REQUESTInvalid request parameters
401UNAUTHORIZEDMissing or invalid API key
404NOT_FOUNDResource does not exist
409CONFLICTResource already exists (e.g. duplicate namespace name)
500INTERNAL_SERVER_ERRORServer-side error

Namespace resolution

Memory operations (/remember, /recall, /forget, /ask) require a target namespace. Provide exactly one of:
  • namespace_id — the namespace’s internal ID
  • external_reference_id — your own external identifier linked to the namespace
Providing both or neither will return a 400 BAD_REQUEST.