Zum Inhalt springen
aYOUne
← CRM API

Leads

Singular: Lead — Base-URL: https://crm-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

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": "6ab226ff497e7e1a340567c0",
    "createdAt": "2026-09-22T06:58:05.891Z",
    "updatedAt": "2026-09-22T06:58:05.891Z",
    "title": "",
    "salutation": "Herr",
    "first_name": "Laura",
    "last_name": "Lindner",
    "email": "laura.lindner@tolinaxdemo.example",
    "street": "Schulstrasse 105",
    "zip": "01067",
    "city": "Dresden",
    "phone": "+49 30 23125 58",
    "cell": "",
    "newsletter": false,
    "privacy": true,
    "last_active": "2026-09-02T09:00:00.000Z",
    "shares": []
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://crm-api.ayoune.app/leads/6ab226ff497e7e1a340567c0",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6ac9b36efaa25e94b7fd528b",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_LEAD",
        "href": "https://api.ayoune.app/crm/leads/6ab226ff497e7e1a340567c0/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_LEAD",
        "href": "https://api.ayoune.app/crm/leads/6ab226ff497e7e1a340567c0",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.79.1",
      "core": "2026.368.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9814",
      "reset": "1791607056",
      "resetDate": "Sat Oct 10 2026"
    },
    "responseTime": 1391.093752,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /leads Liste mit Filtern/Paginierung crm.leads.view
GET /leads/:id Einzelner Datensatz crm.leads.view
POST /leads Neuen Datensatz erstellen crm.leads.new
PUT /leads Datensatz aktualisieren crm.leads.edit
DELETE /leads/:id Datensatz löschen crm.leads.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// Alle abrufen
const list = await ay.crm.leads.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.crm.leads.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.crm.leads.create({ name: 'Foo' });

Weiterführend