aYOUne
← communication API

CallQueues

Singular: CallQueue — 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": "6a618bcb95e36f53b3fc99b8",
    "name": "ANGRY_GREEN_JABBA DESILIJIC TIURE",
    "strategy": "round-robin",
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2026-07-23T03:34:35.694Z",
    "updatedAt": "2026-07-23T03:34:35.694Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://communication-api.ayoune.app/callqueues/6a618bcb95e36f53b3fc99b8",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "PhoneNumbers",
        "title": "MODEL_PHONENUMBER",
        "href": "https://api.ayoune.app/communication/phonenumbers",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "voice.phonenumbers"
      }
    ],
    "debugId": "6a62dcae715b92602aca5b6a",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_CALLQUEUE",
        "href": "https://api.ayoune.app/communication/callqueues/6a618bcb95e36f53b3fc99b8/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_CALLQUEUE",
        "href": "https://api.ayoune.app/communication/callqueues/6a618bcb95e36f53b3fc99b8/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.12.2",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2370",
      "reset": "1784867498",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 193.657059,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend