← ads API
AdSlots
Singular: AdSlot — Base URL: https://ads-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": "6a6189f7c1db0fd99fd7cfdb",
"name": "PURRING_BROWN_AYLA SECURA",
"daysOfWeek": [],
"createdBy": "6045f4d25704710012485569",
"createdAt": "2026-07-23T03:26:47.783Z",
"updatedAt": "2026-07-23T03:26:47.783Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://ads-api.ayoune.app/adslots/6a6189f7c1db0fd99fd7cfdb",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "aYOUneAdvertisementDisplays",
"title": "MODEL_AYOUNEADVERTISEMENTDISPLAY",
"href": "https://api.ayoune.app/su/ayouneadvertisementdisplays",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "su.ayouneadvertisementdisplays"
}
],
"debugId": "6a62db9ed08337d94871e971",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_ADSLOT",
"href": "https://api.ayoune.app/ads/adslots/6a6189f7c1db0fd99fd7cfdb/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_ADSLOT",
"href": "https://api.ayoune.app/ads/adslots/6a6189f7c1db0fd99fd7cfdb/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.6.1",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2456",
"reset": "1784866928",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 212.607737,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /adslots |
List with filters/pagination | ads.adslots.view |
| GET | /adslots/:id |
Single record | ads.adslots.view |
| POST | /adslots |
Create new record | ads.adslots.new |
| PUT | /adslots |
Update record | ads.adslots.edit |
| DELETE | /adslots/:id |
Delete record | ads.adslots.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.ads.adSlots.find().limit(10).exec();
// Single record
const one = await ay.ads.adSlots.findById('OBJECT_ID').exec();
// Create
const created = await ay.ads.adSlots.create({ name: 'Foo' });