← Configuration API
NotificationPreferences
Singular: NotificationPreference — Base URL: https://config-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)
Try it now
beta
Response (live)
Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.
Example response (recorded) sample
A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.
{
"payload": {
"_id": "6ab73cb83e4ac8da656efda5",
"level": "*",
"entityType": "*",
"user": "6045f4d25704710012485569",
"createdAt": "2026-09-26T03:32:08.907Z",
"shares": [],
"updatedAt": "2026-10-24T03:43:35.861Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://config-api.ayoune.app/notificationpreferences/6ab73cb83e4ac8da656efda5",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [],
"debugId": "6adec7d362556e5404c0d703",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_NOTIFICATIONPREFERENCE",
"href": "https://api.ayoune.app/config/notificationpreferences/6ab73cb83e4ac8da656efda5/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_NOTIFICATIONPREFERENCE",
"href": "https://api.ayoune.app/config/notificationpreferences/6ab73cb83e4ac8da656efda5",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.170.1",
"core": "2026.388.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "7129",
"reset": "1792987338",
"resetDate": "Mon Oct 26 2026"
},
"responseTime": 103.308115,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /notificationpreferences |
List with filters/pagination | config.notificationpreferences.view |
| GET | /notificationpreferences/:id |
Single record | config.notificationpreferences.view |
| POST | /notificationpreferences |
Create new record | config.notificationpreferences.new |
| PUT | /notificationpreferences |
Update record | config.notificationpreferences.edit |
| DELETE | /notificationpreferences/:id |
Delete record | config.notificationpreferences.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.config.notificationPreferences.find().limit(10).exec();
// Single record
const one = await ay.config.notificationPreferences.findById('OBJECT_ID').exec();
// Create
const created = await ay.config.notificationPreferences.create({ name: 'Foo' });