aYOUne
← Konfiguration API

Credentials

Singular: Credential — Base-URL: https://config-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

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": {
    "sharedWith": {
      "rights": [],
      "teams": []
    },
    "audit": {
      "decryptCount": 0
    },
    "config": {
      "username": "",
      "clientId": "",
      "channelId": "",
      "webhookUrl": "",
      "host": "",
      "scope": "",
      "tokenUrl": "",
      "authUrl": "",
      "callbackUrl": ""
    },
    "secrets": {
      "secret": "***",
      "apiKey": "***",
      "token": "",
      "password": "",
      "refreshToken": ""
    },
    "_id": "6a700c000a810b587c9f410b",
    "name": "twilio-subaccount-5ee06fc2860473001cfb290a",
    "provider": "twilio",
    "type": "api_key",
    "vault": "server",
    "active": true,
    "refreshInterval": 0,
    "tags": [],
    "createdAt": "2026-08-03T03:33:20.738Z",
    "updatedAt": "2026-08-03T03:33:20.738Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/credentials/6a700c000a810b587c9f410b",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Consumers",
        "title": "MODEL_CONSUMER",
        "href": "https://api.ayoune.app/crm/consumers",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "crm.consumers"
      }
    ],
    "debugId": "6a76a82cde4f592db243712e",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_CREDENTIAL",
        "href": "https://api.ayoune.app/config/credentials/6a700c000a810b587c9f410b/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_CREDENTIAL",
        "href": "https://api.ayoune.app/config/credentials/6a700c000a810b587c9f410b/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.123.1",
      "core": "2026.283.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "82",
      "reset": "1786161649",
      "resetDate": "Sat Aug 08 2026"
    },
    "responseTime": 213.627766,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend