Get content awaiting validation
curl --request GET \
--url https://api.yalg.ai/v1/statistics/pending-validation \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.yalg.ai/v1/statistics/pending-validation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.yalg.ai/v1/statistics/pending-validation"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "SCRIPT",
"title": "How to build a great team",
"createdAt": "2026-01-22T10:30:00.000Z",
"createdAtFormatted": "2 hours ago"
},
{
"id": "456e7890-e89b-12d3-a456-426614174001",
"type": "CAROUSEL",
"title": "Leadership lessons from...",
"createdAt": "2026-01-22T09:15:00.000Z",
"createdAtFormatted": "3 hours ago"
},
{
"id": "789e1234-e89b-12d3-a456-426614174002",
"type": "SHORT",
"title": "Quick tip on productivity",
"createdAt": "2026-01-22T08:00:00.000Z",
"createdAtFormatted": "4 hours ago"
}
],
"count": 3
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request",
"code": "validation_failed"
}{
"statusCode": 401,
"message": "Invalid or missing API key",
"error": "Unauthorized",
"code": "unauthorized"
}{
"statusCode": 403,
"message": "Access denied",
"error": "Forbidden",
"code": "forbidden"
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"error": "Too Many Requests",
"code": "rate_limit_exceeded",
"retryAfter": 60
}{
"statusCode": 500,
"message": "Internal server error",
"error": "Internal Server Error",
"code": "internal_server_error"
}statistics
Get content awaiting validation
Retrieves all content items (scripts, carousels, shorts) that are awaiting user validation
GET
/
v1
/
statistics
/
pending-validation
Get content awaiting validation
curl --request GET \
--url https://api.yalg.ai/v1/statistics/pending-validation \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.yalg.ai/v1/statistics/pending-validation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.yalg.ai/v1/statistics/pending-validation"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "SCRIPT",
"title": "How to build a great team",
"createdAt": "2026-01-22T10:30:00.000Z",
"createdAtFormatted": "2 hours ago"
},
{
"id": "456e7890-e89b-12d3-a456-426614174001",
"type": "CAROUSEL",
"title": "Leadership lessons from...",
"createdAt": "2026-01-22T09:15:00.000Z",
"createdAtFormatted": "3 hours ago"
},
{
"id": "789e1234-e89b-12d3-a456-426614174002",
"type": "SHORT",
"title": "Quick tip on productivity",
"createdAt": "2026-01-22T08:00:00.000Z",
"createdAtFormatted": "4 hours ago"
}
],
"count": 3
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request",
"code": "validation_failed"
}{
"statusCode": 401,
"message": "Invalid or missing API key",
"error": "Unauthorized",
"code": "unauthorized"
}{
"statusCode": 403,
"message": "Access denied",
"error": "Forbidden",
"code": "forbidden"
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"error": "Too Many Requests",
"code": "rate_limit_exceeded",
"retryAfter": 60
}{
"statusCode": 500,
"message": "Internal server error",
"error": "Internal Server Error",
"code": "internal_server_error"
}Authorizations
ApiKeyAuthbearer
YALG Developer API key. Send it in the x-api-key header from a server-side environment only.
Response
Pending validation items retrieved successfully
⌘I