Skip to content
aYOUne
← Marketing API

MarketingCampaigns

Singular: MarketingCampaign — Base URL: https://marketing-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)

Try it now beta

Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.

Endpoints

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

SDK

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

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

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

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

See also