aYOUne
← Configuration API

Credentials

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

SDK

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

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

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

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

See also