aYOUne
← communication API

CallAgentAssignments

Singular: CallAgentAssignment — Base-URL: https://communication-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": "6a618bc795e36f53b3fc9841",
    "_user": "6045f4d25704710012485569",
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2026-07-23T03:34:31.091Z",
    "updatedAt": "2026-07-23T03:34:31.091Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://communication-api.ayoune.app/callagentassignments/6a618bc795e36f53b3fc9841",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "CallQueues",
        "title": "MODEL_CALLQUEUE",
        "href": "https://api.ayoune.app/communication/callqueues",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "voice.callqueues"
      }
    ],
    "debugId": "6a62dcaa715b92602aca5a3e",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_CALLAGENTASSIGNMENT",
        "href": "https://api.ayoune.app/communication/callagentassignments/6a618bc795e36f53b3fc9841/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_CALLAGENTASSIGNMENT",
        "href": "https://api.ayoune.app/communication/callagentassignments/6a618bc795e36f53b3fc9841/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.12.2",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2387",
      "reset": "1784867498",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 186.135252,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend