aYOUne
← Configuration API

ExternalConversations

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

SDK

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

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

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

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

See also