← CRM API
OutgoingMails
Singular: OutgoingMail — Base-URL: https://crm-api.ayoune.app — Zugriff: read-only
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": "65e0b0a7121b7d48fe158501",
"recieved": false,
"editor": "6045f4d25704710012485569",
"createdBy": "6045f4d25704710012485569",
"outdate": "2024-02-29T16:28:23.261Z",
"createdAt": "2024-02-29T16:28:23.262Z",
"updatedAt": "2024-02-29T16:28:23.262Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://crm-api.ayoune.app/outgoingmails/65e0b0a7121b7d48fe158501",
"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"
},
{
"rel": "Documents",
"title": "MODEL_DOCUMENT",
"href": "https://api.ayoune.app/crm/documents",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.documents"
},
{
"rel": "Shippings",
"title": "MODEL_SHIPPING",
"href": "https://api.ayoune.app/sale/shippings",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.shippings"
}
],
"debugId": "6a62df80d98fe96440cc92b7",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_OUTGOINGMAIL",
"href": "https://api.ayoune.app/crm/outgoingmails/65e0b0a7121b7d48fe158501/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_OUTGOINGMAIL",
"href": "https://api.ayoune.app/crm/outgoingmails/65e0b0a7121b7d48fe158501/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.46.1",
"core": "2026.258.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "2289",
"reset": "1784868196",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 63.655769,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /outgoingmails |
Liste mit Filtern/Paginierung | crm.outgoingmails.view |
| GET | /outgoingmails/:id |
Einzelner Datensatz via ID | crm.outgoingmails.view |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.crm.outgoingMails.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.crm.outgoingMails.findById('OBJECT_ID').exec();