aYOUne
← Configuration API

EmailSnippets

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

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 /emailsnippets List with filters/pagination config.emailsnippets.view
GET /emailsnippets/:id Single record config.emailsnippets.view
POST /emailsnippets Create new record config.emailsnippets.new
PUT /emailsnippets Update record config.emailsnippets.edit
DELETE /emailsnippets/:id Delete record config.emailsnippets.delete

SDK

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

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

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

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

See also