aYOUne
← CRM API

Messages

Singular: Message — Base-URL: https://crm-api.ayoune.app — Zugriff: CRUD

play_circle Jetzt ausprobieren beta

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": "6a618ea0f23360035fa1c719",
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2026-07-23T03:46:40.365Z",
    "updatedAt": "2026-07-23T03:46:40.365Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://crm-api.ayoune.app/messages/6a618ea0f23360035fa1c719",
        "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": "6a62df7bd98fe96440cc9079",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_MESSAGE",
        "href": "https://api.ayoune.app/crm/messages/6a618ea0f23360035fa1c719/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_MESSAGE",
        "href": "https://api.ayoune.app/crm/messages/6a618ea0f23360035fa1c719/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.46.1",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2319",
      "reset": "1784868196",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 85.040587,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
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' });

Weiterführend