← Configuration API
LockChallenges
Singular: LockChallenge — Base URL: https://config-api.ayoune.app — Access: read-only — Machine-readable spec (JSON · YAML)
Try it now
beta
Response (live)
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": "6a7c923413ce90d66e20bc88",
"_user": "5a76d07e2d8b3270ff6df587",
"status": "pending",
"expiresAt": "2026-08-12T15:34:38.519Z",
"isDraft": true,
"createdAt": "2026-08-12T15:33:08.524Z",
"updatedAt": "2026-08-12T15:33:08.524Z",
"shares": []
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://config-api.ayoune.app/lockchallenges/6a7c923413ce90d66e20bc88",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Terminals",
"title": "MODEL_TERMINAL",
"href": "https://api.ayoune.app/config/terminals",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.terminals"
}
],
"debugId": "6acb0485639a90c47927127e",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_LOCKCHALLENGE",
"href": "https://api.ayoune.app/config/lockchallenges/6a7c923413ce90d66e20bc88/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_LOCKCHALLENGE",
"href": "https://api.ayoune.app/config/lockchallenges/6a7c923413ce90d66e20bc88",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.170.1",
"core": "2026.368.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "8693",
"reset": "1791691321",
"resetDate": "Sun Oct 11 2026"
},
"responseTime": 115.367137,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /lockchallenges |
List with filters/pagination | config.lockchallenges.view |
| GET | /lockchallenges/:id |
Single record by ID | config.lockchallenges.view |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.config.lockChallenges.find().limit(10).exec();
// Single record
const one = await ay.config.lockChallenges.findById('OBJECT_ID').exec();