aYOUne
← Hub API

SavedReplies

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

SDK

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

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

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

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

See also