← Configuration API
Domains
Singular: Domain — Base URL: https://config-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": {
"tls": {
"provisioned": false
},
"_id": "6a7a92efda286a9731985241",
"email": false,
"websites": false,
"landingpages": false,
"verified": false,
"isDraft": true,
"createdBy": "6045f4d25704710012485569",
"createdAt": "2026-08-11T03:11:43.468Z",
"updatedAt": "2026-08-11T03:11:43.468Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://config-api.ayoune.app/domains/6a7a92efda286a9731985241",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Websites",
"title": "MODEL_WEBSITE",
"href": "https://api.ayoune.app/cms/websites",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.websites"
}
],
"debugId": "6a83ce8561c67fb131d5e415",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_DOMAIN",
"href": "https://api.ayoune.app/config/domains/6a7a92efda286a9731985241/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_DOMAIN",
"href": "https://api.ayoune.app/config/domains/6a7a92efda286a9731985241/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.145.0",
"core": "2026.307.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "2492",
"reset": "1787026578",
"resetDate": "Tue Aug 18 2026"
},
"responseTime": 204.062246,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /domains |
List with filters/pagination | config.domains.view |
| GET | /domains/:id |
Single record | config.domains.view |
| POST | /domains |
Create new record | config.domains.new |
| PUT | /domains |
Update record | config.domains.edit |
| DELETE | /domains/:id |
Delete record | config.domains.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.config.domains.find().limit(10).exec();
// Single record
const one = await ay.config.domains.findById('OBJECT_ID').exec();
// Create
const created = await ay.config.domains.create({ name: 'Foo' });