aYOUne
← Configuration API

HookTemplates

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

SDK

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

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

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

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

See also