aYOUne
← Configuration API

ApiKeys

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

SDK

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

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

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

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

See also