aYOUne
← Marketing API

NewsletterSnapshots

Singular: NewsletterSnapshot — Base URL: https://marketing-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.

Endpoints

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

SDK

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

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

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

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

See also