← CRM API
Notifications
Singular: Notification — Base-URL: https://crm-api.ayoune.app — Zugriff: CRUD
Jetzt ausprobieren
beta
Response (live)
Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.
Beispiel-Response (aufgezeichnet) Beispiel
Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.
{
"payload": {
"sensitivity": "work",
"_id": "63e1090b6818a4cf6d6e6af2",
"user": "5a76d07e2d8b3270ff6df587",
"adminNotification": false,
"userNotification": true,
"markread": false,
"icon": "info",
"mess": "Cannot increment with non-numeric argument: {freeField_15: \"--100000.00\"}",
"title": "aYOUne detected an error",
"category": "notification",
"obj": "63be8eae62b26547230f8038",
"view": "config.middlewares.edit",
"createdAt": "2023-02-06T14:04:59.450Z",
"updatedAt": "2023-02-06T14:04:59.450Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://crm-api.ayoune.app/notifications/63e1090b6818a4cf6d6e6af2",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [],
"debugId": "6a62df7ed98fe96440cc91a4",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_NOTIFICATION",
"href": "https://api.ayoune.app/crm/notifications/63e1090b6818a4cf6d6e6af2/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_NOTIFICATION",
"href": "https://api.ayoune.app/crm/notifications/63e1090b6818a4cf6d6e6af2/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.46.1",
"core": "2026.258.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "2302",
"reset": "1784868196",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 43.956509,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /notifications |
Liste mit Filtern/Paginierung | crm.notifications.view |
| GET | /notifications/:id |
Einzelner Datensatz | crm.notifications.view |
| POST | /notifications |
Neuen Datensatz erstellen | crm.notifications.new |
| PUT | /notifications |
Datensatz aktualisieren | crm.notifications.edit |
| DELETE | /notifications/:id |
Datensatz löschen | crm.notifications.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.crm.notifications.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.crm.notifications.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.crm.notifications.create({ name: 'Foo' });