← Configuration API
DataTargets
Singular: DataTarget — Base URL: https://config-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": "69defe9666010199d6bf4def",
"name": "E2E Local Mongo",
"description": "",
"type": "mongodb",
"connectionUri": "mongodb://localhost:27017",
"database": "ayoune_sync",
"writeMode": "upsert",
"batchSize": 1000,
"active": true,
"tags": [
"local"
],
"createdBy": "5ee06fc3860473001cfb290e",
"createdAt": "2026-04-15T02:57:26.998Z",
"updatedAt": "2026-04-15T03:59:20.396Z",
"slug": "e2e-local-mongo",
"lastError": "",
"lastResultCount": 0,
"lastStatus": "success",
"lastUsed": "2026-04-15T03:59:19.490Z",
"modifiedBy": "5ee06fc3860473001cfb290e"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://config-api.ayoune.app/datatargets/69defe9666010199d6bf4def",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [],
"debugId": "6a62df38f27d6098834b2c33",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_DATATARGET",
"href": "https://api.ayoune.app/config/datatargets/69defe9666010199d6bf4def/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_DATATARGET",
"href": "https://api.ayoune.app/config/datatargets/69defe9666010199d6bf4def/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.95.0",
"core": "2026.258.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "115",
"reset": "1784865648",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 99.630884,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /datatargets |
List with filters/pagination | config.datatargets.view |
| GET | /datatargets/:id |
Single record | config.datatargets.view |
| POST | /datatargets |
Create new record | config.datatargets.new |
| PUT | /datatargets |
Update record | config.datatargets.edit |
| DELETE | /datatargets/:id |
Delete record | config.datatargets.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.config.dataTargets.find().limit(10).exec();
// Single record
const one = await ay.config.dataTargets.findById('OBJECT_ID').exec();
// Create
const created = await ay.config.dataTargets.create({ name: 'Foo' });