Docs
Releases

Yayını doğrula

POST
/releases/validate

Bir yayın paketini (tema + sayfalar + menü) mutasyonsuz doğrular. Üç yazma scope'unu birden gerektirir: themes:write + pages:write + navigation:write — biri eksikse 403 forbidden_scope.

AuthorizationBearer <token>

Site'a özel API anahtarı. Panelden Ayarlar → Bağlantılar ve anahtarlar ile üretilir.

Yeni anahtarlar blcf_k2_ ile başlar (eski blcf_live_ anahtarlar çalışmaya devam eder). blocofy login ile alınan CLI girişi de bu API'de Bearer olarak geçer; tarayıcıyla bağlanan bir yapay zekâ aracının (MCP) erişim anahtarı geçmez (401 audience_mismatch).

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Yayın paketi girdisi.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/releases/validate" \  -H "Content-Type: application/json" \  -d '{}'
{  "ok": true,  "checks": [    {      "key": "string",      "ok": true,      "message": "string"    }  ],  "pages": [    {      "id": "string",      "ok": true,      "checks": [        {          "key": "string",          "ok": true,          "message": "string"        }      ],      "example_url": "string",      "routes_resolved": 0    }  ],  "navigation": [    {      "handle": "string",      "ok": true,      "checks": [        {          "key": "string",          "ok": true,          "message": "string"        }      ]    }  ],  "theme": {    "id": "string",    "ok": true,    "message": "string"  }}
{  "error": {    "code": "invalid_key",    "message": "API anahtarı geçersiz veya iptal edilmiş."  }}
{  "error": {    "code": "forbidden_scope",    "message": "Bu işlem 'content:read' scope'u gerektirir."  }}
{  "error": {    "code": "method_not_allowed",    "message": "Bu uç yalnız <Allow başlığındaki fiiller> kabul eder."  }}