aYOUne
← AI API

AIPrompts

Singular: AIPrompt — Base URL: https://ai.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": {
    "maxOutputTokens": 1000,
    "topP": 1,
    "frequencyPenalty": 0,
    "presencePenalty": 0,
    "temperature": 0.6,
    "_id": "65e0afd5121b7d48fe155a3e",
    "type": "global",
    "status": "active",
    "category": "global",
    "tags": [],
    "editor": "6045f4d25704710012485569",
    "lang": "de",
    "state": "",
    "customerFrom": "data._customerID",
    "useContext": false,
    "contextTemplate": "",
    "maxTokens": 8192,
    "modelName": "gpt-3.5-turbo-16k-0613",
    "isDraft": true,
    "createdBy": "6045f4d25704710012485569",
    "dataSources": [],
    "messages": [],
    "createdAt": "2024-02-29T16:24:53.173Z",
    "updatedAt": "2024-02-29T16:24:53.173Z",
    "shares": []
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ai.ayoune.app/aiprompts/65e0afd5121b7d48fe155a3e",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6aa0cf00a20da3616dda1541",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AIPROMPT",
        "href": "https://api.ayoune.app/ai/aiprompts/65e0afd5121b7d48fe155a3e/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AIPROMPT",
        "href": "https://api.ayoune.app/ai/aiprompts/65e0afd5121b7d48fe155a3e",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.172.0",
      "core": "2026.334.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9970",
      "reset": "1788927245",
      "resetDate": "Wed Sep 09 2026"
    },
    "responseTime": 64.909398,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

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

SDK

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

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

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

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

See also