aYOUne
← ads API

aYOUneAdvertisements

Singular: aYOUneAdvertisement — Base URL: https://ads-api.ayoune.app — Access: CRUD

play_circle Try it now beta

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": "6a6188c2c1db0fd99fd7ce5e",
    "name": "ATOMIC_APRICOT_LUKE SKYWALKER",
    "regions": [],
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2026-07-23T03:21:38.984Z",
    "updatedAt": "2026-07-23T03:21:38.984Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ads-api.ayoune.app/ayouneadvertisements/6a6188c2c1db0fd99fd7ce5e",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Documents",
        "title": "MODEL_DOCUMENT",
        "href": "https://api.ayoune.app/crm/documents",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "crm.documents"
      }
    ],
    "debugId": "6a62da65d08337d94871e7b9",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AYOUNEADVERTISEMENT",
        "href": "https://api.ayoune.app/ads/ayouneadvertisements/6a6188c2c1db0fd99fd7ce5e/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AYOUNEADVERTISEMENT",
        "href": "https://api.ayoune.app/ads/ayouneadvertisements/6a6188c2c1db0fd99fd7ce5e/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.6.1",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2493",
      "reset": "1784866928",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 1204.808357,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

MethodPathDescriptionRight
GET /ayouneadvertisements List with filters/pagination ads.ayouneadvertisements.view
GET /ayouneadvertisements/:id Single record ads.ayouneadvertisements.view
POST /ayouneadvertisements Create new record ads.ayouneadvertisements.new
PUT /ayouneadvertisements Update record ads.ayouneadvertisements.edit
DELETE /ayouneadvertisements/:id Delete record ads.ayouneadvertisements.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// List all
const list = await ay.ads.aYOUneAdvertisements.find().limit(10).exec();

// Single record
const one = await ay.ads.aYOUneAdvertisements.findById('OBJECT_ID').exec();

// Create
const created = await ay.ads.aYOUneAdvertisements.create({ name: 'Foo' });

See also