← AI API
AIConversations
Singular: AIConversation — Base URL: https://ai.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)
Try it now
beta
Response (live)
Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.
Example response (recorded) sample
A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.
{
"payload": {
"_id": "6a76a3c3f4e027b69331c5ee",
"_user": "6045f4d25704710012485569",
"subject": "New conversation",
"initialized": false,
"ragEnabled": false,
"mode": "text",
"sessionState": "active",
"planMode": false,
"isDraft": true,
"reviewGates": [],
"createdAt": "2026-08-08T03:34:27.737Z",
"updatedAt": "2026-08-08T03:34:27.737Z",
"shares": []
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://ai.ayoune.app/aiconversations/6a76a3c3f4e027b69331c5ee",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Consumers",
"title": "MODEL_CONSUMER",
"href": "https://api.ayoune.app/crm/consumers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.consumers"
},
{
"rel": "AIAgents",
"title": "MODEL_AIAGENT",
"href": "https://api.ayoune.app/ai/aiagents",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.aiagents"
},
{
"rel": "AIConversations",
"title": "MODEL_AICONVERSATION",
"href": "https://api.ayoune.app/ai/aiconversations",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.aiconversations"
},
{
"rel": "AIWorkflows",
"title": "MODEL_AIWORKFLOW",
"href": "https://api.ayoune.app/ai/aiworkflows",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.aiworkflows"
},
{
"rel": "AIWorkflowRuns",
"title": "MODEL_AIWORKFLOWRUN",
"href": "https://api.ayoune.app/ai/aiworkflowruns",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.aiworkflowruns"
}
],
"debugId": "6aa0cf081d5f163b722c8500",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_AICONVERSATION",
"href": "https://api.ayoune.app/ai/aiconversations/6a76a3c3f4e027b69331c5ee/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_AICONVERSATION",
"href": "https://api.ayoune.app/ai/aiconversations/6a76a3c3f4e027b69331c5ee",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.172.0",
"core": "2026.334.1"
},
"rateLimit": {
"limit": "10000",
"remaining": "9841",
"reset": "1788927245",
"resetDate": "Wed Sep 09 2026"
},
"responseTime": 102.797854,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /aiconversations |
List with filters/pagination | ai.aiconversations.view |
| GET | /aiconversations/:id |
Single record | ai.aiconversations.view |
| POST | /aiconversations |
Create new record | ai.aiconversations.new |
| PUT | /aiconversations |
Update record | ai.aiconversations.edit |
| DELETE | /aiconversations/:id |
Delete record | ai.aiconversations.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.ai.aIConversations.find().limit(10).exec();
// Single record
const one = await ay.ai.aIConversations.findById('OBJECT_ID').exec();
// Create
const created = await ay.ai.aIConversations.create({ name: 'Foo' });