aYOUne
← Automation API

CallProcedures

Singular: CallProcedure — Base-URL: https://automation-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": "65e0afbe121b7d48fe1552ec",
    "ayoune_fp": [],
    "ayoune_ac": "",
    "status": "Neu",
    "topic": "Support",
    "name": "",
    "email": "",
    "goal": "",
    "rating": 0,
    "locale": "de_DE",
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2024-02-29T16:24:30.896Z",
    "updatedAt": "2024-02-29T16:24:30.896Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://automation-api.ayoune.app/callprocedures/65e0afbe121b7d48fe1552ec",
        "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": "6a62dc4ef9f895648ea72903",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_CALLPROCEDURE",
        "href": "https://api.ayoune.app/automation/callprocedures/65e0afbe121b7d48fe1552ec/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_CALLPROCEDURE",
        "href": "https://api.ayoune.app/automation/callprocedures/65e0afbe121b7d48fe1552ec/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.19.0",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2425",
      "reset": "1784867403",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 19.297668,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend