aYOUne
← communication API

aYOUneRemoteAccessGrants

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

SDK

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

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

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

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

See also