Crea una entrada verificada y devuelve una URL única de visualización.
Request Body (JSON)
| Campo | Tipo | Req | Descripción |
|---|---|---|---|
| apiKey | string | YES | Shared secret API key |
| identifier | string | YES | Unique ID (e.g. email or hash) |
| type | string | YES | Enforce `social` for this endpoint |
| username | string | YES | Display name (e.g. @FranDev) |
| theme | string | OPT | e.g. aura, zima, midnight |
| layout | string | OPT | e.g. compact, deep-dive... |
| platform | string | YES | `x`, `tiktok`, `instagram`, `linkedin` |
| followers | number | YES | Total follow count |
| views | number | OPT | Impressions/Views total |
| posts | number | OPT | Total content count |
| reposts | number | OPT | Shares total |
| replies | number | OPT | Comments total |
| growth | number | OPT | Growth in last 30d (%) |
Ejemplo de Invocación REST (JS / cURL)
fetch("https://statsreceipt.com/api/receipt/create-from-agent", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
apiKey: "stats-mcp-v1",
identifier: "user_identifier_123",
type: "social",
username: "StatsAura",
platform: "tiktok",
followers: 125000,
theme: "zima",
layout: "deep-dive"
})
})
.then(res => res.json())
.then(data => console.log("Your URL:", data.url));Ejemplo de Respuesta HTTP (Webhooks/Apps)
{
"success": true,
"id": "abc123xyz",
"url": "https://statsreceipt.com/r/abc123xyz",
"rank": "TOP 5% 🚀",
"diagnosis": "Viral Machine"
}