aYOUne
← communication API

UserPresences

Singular: UserPresence — Base URL: https://communication-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)

play_circle Try it now beta

Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.

Example response (recorded) sample

A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.

{
  "payload": {
    "_id": "6aa37337c1da44adf17a6898",
    "_user": "6045f4d25704710012485569",
    "status": "offline",
    "statusMessage": "ACTIVE_GREEN_JEK TONO PORKINS",
    "createdBy": "6045f4d25704710012485569",
    "shares": [],
    "createdAt": "2026-09-11T03:19:19.931Z",
    "updatedAt": "2026-09-11T03:19:19.931Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://communication-api.ayoune.app/userpresences/6aa37337c1da44adf17a6898",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Devices",
        "title": "MODEL_DEVICE",
        "href": "https://api.ayoune.app/communication/devices",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "communication.devices"
      },
      {
        "rel": "Calls",
        "title": "MODEL_CALL",
        "href": "https://api.ayoune.app/communication/calls",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "voice.calls"
      }
    ],
    "debugId": "6aa37338c1da44adf17a68ca",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_USERPRESENCE",
        "href": "https://api.ayoune.app/communication/userpresences/6aa37337c1da44adf17a6898/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_USERPRESENCE",
        "href": "https://api.ayoune.app/communication/userpresences/6aa37337c1da44adf17a6898",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.18.0",
      "core": "2026.333.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2436",
      "reset": "1789100349",
      "resetDate": "Fri Sep 11 2026"
    },
    "responseTime": 108.932629,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

MethodPathDescriptionRight
GET /userpresences List with filters/pagination communication.userpresences.view
GET /userpresences/:id Single record communication.userpresences.view
POST /userpresences Create new record communication.userpresences.new
PUT /userpresences Update record communication.userpresences.edit
DELETE /userpresences/:id Delete record communication.userpresences.delete

SDK

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

// List all
const list = await ay.communication.userPresences.find().limit(10).exec();

// Single record
const one = await ay.communication.userPresences.findById('OBJECT_ID').exec();

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

See also