← coding API
Repositories
Singular: Repository — 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": "6ac4c83b5846861d734a7f5f",
"_project": "6ab226ff497e7e1a34056763",
"provider": "bitbucket",
"workspace": "ayoune",
"repoSlug": "companion-demo-pipeline",
"repoURL": "https://bitbucket.org/ayoune/companion-demo-pipeline",
"repoFullName": "ayoune/companion-demo-pipeline",
"description": "",
"language": "",
"isPrivate": true,
"friendlyName": "",
"showOnDashboard": false,
"tags": [],
"_deployments": [],
"syncEnabled": true,
"syncError": "",
"defaultBranch": "master",
"localPath": "",
"localPathVerified": false,
"pipelineSuccessRate": 0,
"codeIndexingEnabled": false,
"docGenerationEnabled": false,
"createdBy": "5a76d07e2d8b3270ff6df587",
"foundationPins": [],
"branches": [],
"shares": [],
"createdAt": "2026-10-06T10:06:51.434Z",
"updatedAt": "2026-10-06T10:06:51.434Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://coding-api.ayoune.app/repositories/6ac4c83b5846861d734a7f5f",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "Projects",
"title": "MODEL_PROJECT",
"href": "https://api.ayoune.app/pm/projects/6ab226ff497e7e1a34056763",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pm.projects"
}
],
"relations": [
{
"rel": "Projects",
"title": "MODEL_PROJECT",
"href": "https://api.ayoune.app/pm/projects",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pm.projects"
},
{
"rel": "Modules",
"title": "MODEL_MODULE",
"href": "https://api.ayoune.app/pm/modules",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pm.modules"
},
{
"rel": "Components",
"title": "MODEL_COMPONENT",
"href": "https://api.ayoune.app/pm/components",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pm.components"
},
{
"rel": "WebReceivers",
"title": "MODEL_WEBRECEIVER",
"href": "https://api.ayoune.app/config/webreceivers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.webreceivers"
},
{
"rel": "Checks",
"title": "MODEL_CHECK",
"href": "https://api.ayoune.app/monitoring/checks",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "monitoring.checks"
},
{
"rel": "MicroServices",
"title": "MODEL_MICROSERVICE",
"href": "https://api.ayoune.app/config/microservices",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.microservices"
},
{
"rel": "K8Clusters",
"title": "MODEL_K8CLUSTER",
"href": "https://api.ayoune.app/devops/k8clusters",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "devops.k8clusters"
},
{
"rel": "KnowledgeSources",
"title": "MODEL_KNOWLEDGESOURCE",
"href": "https://api.ayoune.app/ai/knowledgesources",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.knowledgesources"
},
{
"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": "6acaffb67093e8b9fc30e26c",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_REPOSITORY",
"href": "https://api.ayoune.app/coding/repositories/6ac4c83b5846861d734a7f5f/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_REPOSITORY",
"href": "https://api.ayoune.app/coding/repositories/6ac4c83b5846861d734a7f5f",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.74.0",
"core": "2026.368.1"
},
"rateLimit": {
"limit": "10000",
"remaining": "9996",
"reset": "1791692231",
"resetDate": "Sun Oct 11 2026"
},
"responseTime": 25.478335,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /repositories |
List with filters/pagination | coding.repositories.view |
| GET | /repositories/:id |
Single record | coding.repositories.view |
| POST | /repositories |
Create new record | coding.repositories.new |
| PUT | /repositories |
Update record | coding.repositories.edit |
| DELETE | /repositories/:id |
Delete record | coding.repositories.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.coding.repositories.find().limit(10).exec();
// Single record
const one = await ay.coding.repositories.findById('OBJECT_ID').exec();
// Create
const created = await ay.coding.repositories.create({ name: 'Foo' });