aYOUne
← ads API

CreativeTemplates

Singular: CreativeTemplate — 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": "6a618a22c1db0fd99fd7d2a1",
    "name": "ACCURATE_BROWN_OWEN LARS",
    "status": "draft",
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2026-07-23T03:27:30.385Z",
    "updatedAt": "2026-07-23T03:27:30.385Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ads-api.ayoune.app/creativetemplates/6a618a22c1db0fd99fd7d2a1",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "ProductFeeds",
        "title": "MODEL_PRODUCTFEED",
        "href": "https://api.ayoune.app/pim/productfeeds",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "pim.productfeeds"
      },
      {
        "rel": "ImageGenerators",
        "title": "MODEL_IMAGEGENERATOR",
        "href": "https://api.ayoune.app/cms/imagegenerators",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "cms.imagegenerators"
      },
      {
        "rel": "VideoGenerators",
        "title": "MODEL_VIDEOGENERATOR",
        "href": "https://api.ayoune.app/cms/videogenerators",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "cms.videogenerators"
      },
      {
        "rel": "AdCampaigns",
        "title": "MODEL_ADCAMPAIGN",
        "href": "https://api.ayoune.app/marketing/adcampaigns",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "marketing.adcampaigns"
      },
      {
        "rel": "AdGroups",
        "title": "MODEL_ADGROUP",
        "href": "https://api.ayoune.app/marketing/adgroups",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "marketing.adgroups"
      },
      {
        "rel": "aYOUneAdvertisements",
        "title": "MODEL_AYOUNEADVERTISEMENT",
        "href": "https://api.ayoune.app/ads/ayouneadvertisements",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ads.ayouneadvertisements"
      }
    ],
    "debugId": "6a62dbd1d08337d94871ebd1",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_CREATIVETEMPLATE",
        "href": "https://api.ayoune.app/ads/creativetemplates/6a618a22c1db0fd99fd7d2a1/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_CREATIVETEMPLATE",
        "href": "https://api.ayoune.app/ads/creativetemplates/6a618a22c1db0fd99fd7d2a1/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.6.1",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2424",
      "reset": "1784866928",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 294.394169,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

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

SDK

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

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

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

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

See also