aYOUne
← AI API

AILogs

Singular: AILog — Base URL: https://ai.ayoune.app — Access: read-onlyMachine-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": {
    "usage": {
      "completion_tokens": 0,
      "prompt_tokens": 0,
      "total_tokens": 0
    },
    "_id": "6a7947129e6d789eda19a6cd",
    "_userID": "6045f4d25704710012485569",
    "provider": "openai",
    "prompt": "auto-layout",
    "rawResult": {
      "scene": "No specific elements were provided to optimize. Please provide details about the scene elements for optimization."
    },
    "result": "\"No specific elements were provided to optimize. Please provide details about the scene elements for optimization.\"",
    "complianceFlags": [],
    "isDraft": true,
    "createdAt": "2026-08-10T03:35:46.756Z",
    "updatedAt": "2026-08-10T03:35:46.756Z",
    "shares": []
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ai.ayoune.app/ailogs/6a7947129e6d789eda19a6cd",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "AIAgents",
        "title": "MODEL_AIAGENT",
        "href": "https://api.ayoune.app/ai/aiagents",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aiagents"
      },
      {
        "rel": "AIWorkflows",
        "title": "MODEL_AIWORKFLOW",
        "href": "https://api.ayoune.app/ai/aiworkflows",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aiworkflows"
      },
      {
        "rel": "AIHooks",
        "title": "MODEL_AIHOOK",
        "href": "https://api.ayoune.app/ai/aihooks",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aihooks"
      },
      {
        "rel": "AITools",
        "title": "MODEL_AITOOL",
        "href": "https://api.ayoune.app/ai/aitools",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aitools"
      },
      {
        "rel": "AICommands",
        "title": "MODEL_AICOMMAND",
        "href": "https://api.ayoune.app/ai/aicommands",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aicommands"
      }
    ],
    "debugId": "6aa0cf1c1d5f163b722c8ec4",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AILOG",
        "href": "https://api.ayoune.app/ai/ailogs/6a7947129e6d789eda19a6cd/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AILOG",
        "href": "https://api.ayoune.app/ai/ailogs/6a7947129e6d789eda19a6cd",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.172.0",
      "core": "2026.334.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9615",
      "reset": "1788927245",
      "resetDate": "Wed Sep 09 2026"
    },
    "responseTime": 442.382983,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

MethodPathDescriptionRight
GET /ailogs List with filters/pagination ai.ailogs.view
GET /ailogs/:id Single record by ID ai.ailogs.view

SDK

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

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

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

See also