← coding API
CodeAgentSessions
Singular: CodeAgentSession — Base URL: https://coding-api.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": "6ac06ada691c65aecd503079",
"_codeAgent": "6a030b77641d93836fd3e06d",
"_user": "5a76d07e2d8b3270ff6df587",
"status": "never-started",
"prompt": "[abnahme] never-started cancel probe � darf geloescht werden",
"createdBy": "5a76d07e2d8b3270ff6df587",
"shares": [],
"createdAt": "2026-10-03T02:39:22.464Z",
"updatedAt": "2026-10-03T02:40:49.227Z",
"endedAt": "2026-10-03T02:39:56.350Z",
"metadata": {
"cancelReason": "abnahme never-started",
"cancelRequestedAt": "2026-10-03T02:39:56.350Z",
"notificationDedupe": {
"cancelled_fe83dbc14846aa10338355c3": {
"state": "sent",
"sentAt": "2026-10-03T02:40:49.227Z"
}
}
},
"terminationReason": "cancelled-before-start"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://coding-api.ayoune.app/codeagentsessions/6ac06ada691c65aecd503079",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "CodeAgents",
"title": "MODEL_CODEAGENT",
"href": "https://api.ayoune.app/coding/codeagents/6a030b77641d93836fd3e06d",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "coding.agents"
}
],
"relations": [
{
"rel": "CodeAgents",
"title": "MODEL_CODEAGENT",
"href": "https://api.ayoune.app/coding/codeagents",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "coding.agents"
},
{
"rel": "Tasks",
"title": "MODEL_TASK",
"href": "https://api.ayoune.app/pm/tasks",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pm.tasks"
},
{
"rel": "ComputingEntities",
"title": "MODEL_COMPUTINGENTITY",
"href": "https://api.ayoune.app/config/computingentities",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.computingentities"
},
{
"rel": "CodingJobs",
"title": "MODEL_CODINGJOB",
"href": "https://api.ayoune.app/coding/codingjobs",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "coding.jobs"
},
{
"rel": "CodeAccounts",
"title": "MODEL_CODEACCOUNT",
"href": "https://api.ayoune.app/coding/codeaccounts",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "coding.accounts"
},
{
"rel": "Repositories",
"title": "MODEL_REPOSITORY",
"href": "https://api.ayoune.app/coding/repositories",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "coding.repositories"
},
{
"rel": "CodeAgentSessions",
"title": "MODEL_CODEAGENTSESSION",
"href": "https://api.ayoune.app/coding/codeagentsessions",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "coding.sessions"
},
{
"rel": "CodeAgentSessions",
"title": "MODEL_CODEAGENTSESSION",
"href": "https://api.ayoune.app/coding/codeagentsessions",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "coding.sessions"
},
{
"rel": "CodeAgentSessions",
"title": "MODEL_CODEAGENTSESSION",
"href": "https://api.ayoune.app/coding/codeagentsessions",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "coding.sessions"
},
{
"rel": "AIWorkflowRuns",
"title": "MODEL_AIWORKFLOWRUN",
"href": "https://api.ayoune.app/ai/aiworkflowruns",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.aiworkflowruns"
},
{
"rel": "Stories",
"title": "MODEL_STORY",
"href": "https://api.ayoune.app/pm/stories",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pm.stories"
}
],
"debugId": "6adec459cf1843466679f80d",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_CODEAGENTSESSION",
"href": "https://api.ayoune.app/coding/codeagentsessions/6ac06ada691c65aecd503079/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_CODEAGENTSESSION",
"href": "https://api.ayoune.app/coding/codeagentsessions/6ac06ada691c65aecd503079",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.74.0",
"core": "2026.388.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "9982",
"reset": "1792987752",
"resetDate": "Mon Oct 26 2026"
},
"responseTime": 135.143013,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /codeagentsessions |
List with filters/pagination | coding.sessions.view |
| GET | /codeagentsessions/:id |
Single record | coding.sessions.view |
| POST | /codeagentsessions |
Create new record | coding.sessions.new |
| PUT | /codeagentsessions |
Update record | coding.sessions.edit |
| DELETE | /codeagentsessions/:id |
Delete record | coding.sessions.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.coding.codeAgentSessions.find().limit(10).exec();
// Single record
const one = await ay.coding.codeAgentSessions.findById('OBJECT_ID').exec();
// Create
const created = await ay.coding.codeAgentSessions.create({ name: 'Foo' });