aYOUne
← Export API

ConsumerChannels

Singular: ConsumerChannel — Base URL: https://export-api.ayoune.app — Access: CRUD

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": {
    "restrictions": {
      "teams": [],
      "users": []
    },
    "_id": "65e0b0b8121b7d48fe1586cc",
    "check": false,
    "valid": false,
    "share": false,
    "key": "",
    "url": "",
    "booleanAs": "yn",
    "delimiter": ",",
    "quotes": "\"",
    "hasCSVColumnTitle": true,
    "ending": "default",
    "encoding": "utf8",
    "flag_export": "none",
    "flag_export_date": "none",
    "createdBy": "6045f4d25704710012485569",
    "fields": [],
    "createdAt": "2024-02-29T16:28:40.673Z",
    "updatedAt": "2024-02-29T16:28:40.673Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://export-api.ayoune.app/consumerchannels/65e0b0b8121b7d48fe1586cc",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6a62dffac18c2749f553f74f",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_CONSUMERCHANNEL",
        "href": "https://api.ayoune.app/export/consumerchannels/65e0b0b8121b7d48fe1586cc/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_CONSUMERCHANNEL",
        "href": "https://api.ayoune.app/export/consumerchannels/65e0b0b8121b7d48fe1586cc/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.0.2",
      "core": "2026.234.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2474",
      "reset": "1784868359",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 95.15438,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

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

SDK

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

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

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

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

See also