← CRM API
Messages
Singular: Message — Base-URL: https://crm-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)
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": {
"_id": "6ab34bf46e0e0921b97e8fd1",
"message": "ALLEGED_CYAN_WICKET SYSTRI WARRICK",
"createdBy": "6045f4d25704710012485569",
"shares": [],
"createdAt": "2026-09-23T03:48:04.409Z",
"updatedAt": "2026-09-23T03:48:04.409Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://crm-api.ayoune.app/messages/6ab34bf46e0e0921b97e8fd1",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Consumers",
"title": "MODEL_CONSUMER",
"href": "https://api.ayoune.app/crm/consumers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.consumers"
}
],
"debugId": "6ac9b377faa25e94b7fd5495",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_MESSAGE",
"href": "https://api.ayoune.app/crm/messages/6ab34bf46e0e0921b97e8fd1/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_MESSAGE",
"href": "https://api.ayoune.app/crm/messages/6ab34bf46e0e0921b97e8fd1",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.79.1",
"core": "2026.368.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "9793",
"reset": "1791607056",
"resetDate": "Sat Oct 10 2026"
},
"responseTime": 1011.637537,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /messages |
Liste mit Filtern/Paginierung | crm.messages.view |
| GET | /messages/:id |
Einzelner Datensatz | crm.messages.view |
| POST | /messages |
Neuen Datensatz erstellen | crm.messages.new |
| PUT | /messages |
Datensatz aktualisieren | crm.messages.edit |
| DELETE | /messages/:id |
Datensatz löschen | crm.messages.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.crm.messages.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.crm.messages.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.crm.messages.create({ name: 'Foo' });