Skip to content
aYOUne
← HR API

Visits

Singular: Visit — Base URL: https://hr-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)

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

SDK

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

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

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

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

See also