← ads API
AdBids
Singular: AdBid — Base URL: https://ads-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": "6aa370f9dde790fa6ce3bf67",
"createdBy": "6045f4d25704710012485569",
"shares": [],
"createdAt": "2026-09-11T03:09:45.095Z",
"updatedAt": "2026-09-11T03:09:45.095Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://ads-api.ayoune.app/adbids/6aa370f9dde790fa6ce3bf67",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "AdAuctions",
"title": "MODEL_ADAUCTION",
"href": "https://api.ayoune.app/ads/adauctions",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ads.adauctions"
},
{
"rel": "AdBookings",
"title": "MODEL_ADBOOKING",
"href": "https://api.ayoune.app/ads/adbookings",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ads.adbookings"
}
],
"debugId": "6aa370fadde790fa6ce3bfb1",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_ADBID",
"href": "https://api.ayoune.app/ads/adbids/6aa370f9dde790fa6ce3bf67/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_ADBID",
"href": "https://api.ayoune.app/ads/adbids/6aa370f9dde790fa6ce3bf67",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.13.2",
"core": "2026.335.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "2376",
"reset": "1789099737",
"resetDate": "Fri Sep 11 2026"
},
"responseTime": 351.43078,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /adbids |
List with filters/pagination | ads.adbids.view |
| GET | /adbids/:id |
Single record | ads.adbids.view |
| POST | /adbids |
Create new record | ads.adbids.new |
| PUT | /adbids |
Update record | ads.adbids.edit |
| DELETE | /adbids/:id |
Delete record | ads.adbids.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.ads.adBids.find().limit(10).exec();
// Single record
const one = await ay.ads.adBids.findById('OBJECT_ID').exec();
// Create
const created = await ay.ads.adBids.create({ name: 'Foo' });