← coding API
CodeAccounts
Singular: CodeAccount — Base URL: https://coding-api.ayoune.app — Access: CRUD
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": "6a618bb74b2a1b7d2c54ab61",
"_hookUser": "6045f4d25704710012485569",
"accountType": "individual",
"active": true,
"createdAt": "2026-07-23T03:34:15.164Z",
"label": "test@tolinax.com — code-hook",
"provider": "anthropic",
"updatedAt": "2026-07-23T03:34:15.164Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://coding-api.ayoune.app/codeaccounts/6a618bb74b2a1b7d2c54ab61",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Credentials",
"title": "MODEL_CREDENTIAL",
"href": "https://api.ayoune.app/config/credentials",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.credentials"
}
],
"debugId": "6a62dc95fb4fbe14b6b26c4b",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_CODEACCOUNT",
"href": "https://api.ayoune.app/coding/codeaccounts/6a618bb74b2a1b7d2c54ab61/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_CODEACCOUNT",
"href": "https://api.ayoune.app/coding/codeaccounts/6a618bb74b2a1b7d2c54ab61/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.37.0",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2457",
"reset": "1784867488",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 38.32998,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /codeaccounts |
List with filters/pagination | coding.accounts.view |
| GET | /codeaccounts/:id |
Single record | coding.accounts.view |
| POST | /codeaccounts |
Create new record | coding.accounts.new |
| PUT | /codeaccounts |
Update record | coding.accounts.edit |
| DELETE | /codeaccounts/:id |
Delete record | coding.accounts.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.coding.codeAccounts.find().limit(10).exec();
// Single record
const one = await ay.coding.codeAccounts.findById('OBJECT_ID').exec();
// Create
const created = await ay.coding.codeAccounts.create({ name: 'Foo' });