aYOUne
← coding API

CodeAgents

Singular: CodeAgent — 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 /codeagents List with filters/pagination coding.agents.view
GET /codeagents/:id Single record coding.agents.view
POST /codeagents Create new record coding.agents.new
PUT /codeagents Update record coding.agents.edit
DELETE /codeagents/:id Delete record coding.agents.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// List all
const list = await ay.coding.codeAgents.find().limit(10).exec();

// Single record
const one = await ay.coding.codeAgents.findById('OBJECT_ID').exec();

// Create
const created = await ay.coding.codeAgents.create({ name: 'Foo' });

See also