Skip to content
aYOUne
← CRM API

MailLabels

Singular: MailLabel — Base URL: https://crm-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 /maillabels List with filters/pagination crm.maillabels.view
GET /maillabels/:id Single record crm.maillabels.view
POST /maillabels Create new record crm.maillabels.new
PUT /maillabels Update record crm.maillabels.edit
DELETE /maillabels/:id Delete record crm.maillabels.delete

SDK

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

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

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

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

See also