aYOUne
← coding API

CodeAgentSessions

Singular: CodeAgentSession — Base URL: https://coding-api.ayoune.app — Access: CRUD

play_circle Try it now beta

Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.

Endpoints

MethodPathDescriptionRight
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' });

See also