← Konfiguration API
Flags
Singular: Flag — Base-URL: https://config-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)
Jetzt ausprobieren
beta
Response (live)
Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.
Beispiel-Response (aufgezeichnet) Beispiel
Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.
{
"payload": {
"_id": "6a700d195551b2d3b321256c",
"name": "BIZARRE_AMETHYST_GRIEVOUS",
"_deployments": [],
"type": "feature",
"isDraft": true,
"createdBy": "6045f4d25704710012485569",
"children": [],
"dependencies": [],
"environments": [],
"variants": [],
"createdAt": "2026-08-03T03:38:01.372Z",
"updatedAt": "2026-08-03T03:38:01.372Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://config-api.ayoune.app/flags/6a700d195551b2d3b321256c",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"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"
}
],
"debugId": "6a83cfcb61c67fb131d6470c",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_FLAG",
"href": "https://api.ayoune.app/config/flags/6a700d195551b2d3b321256c/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_FLAG",
"href": "https://api.ayoune.app/config/flags/6a700d195551b2d3b321256c/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.145.0",
"core": "2026.307.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "1375",
"reset": "1787026578",
"resetDate": "Tue Aug 18 2026"
},
"responseTime": 147.177617,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /flags |
Liste mit Filtern/Paginierung | config.flags.view |
| GET | /flags/:id |
Einzelner Datensatz | config.flags.view |
| POST | /flags |
Neuen Datensatz erstellen | config.flags.new |
| PUT | /flags |
Datensatz aktualisieren | config.flags.edit |
| DELETE | /flags/:id |
Datensatz löschen | config.flags.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.config.flags.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.config.flags.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.config.flags.create({ name: 'Foo' });