Skip to main content
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>'
{
  "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
}

Authorizations

x-api-key
string
header
default:yalg_live_your_api_key
required

YALG Developer API key. Send it in the x-api-key header from a server-side environment only.

Response

Pending validation items retrieved successfully