Referência da API
Teste grátis
O site estático do período de teste.
GET
/api/v1/free-siteSituação do teste grátis
escopo: leitura
Situação do site estático gratuito de 7 dias: available (ainda não usado), active (no ar) ou ended (expirado ou removido, com o motivo em endedReason). Publicar e remover o site grátis só pelo painel.
Requisição
curl https://cloudbrasil.tec.br/api/v1/free-site \
-H "Authorization: Bearer cb_live_SUA_CHAVE"Resposta · 200
{
"ok": true,
"data": {
"state": "active",
"endedReason": null,
"site": {
"slug": "maria",
"url": "https://site.cloudbrasil.tec.br/maria/",
"status": "ACTIVE",
"fileCount": 12,
"sizeBytes": 482113,
"startedAt": "2026-11-21T10:00:00.000Z",
"expiresAt": "2026-11-28T10:00:00.000Z",
"lastPublishedAt": "2026-11-21T10:00:05.000Z",
"deletedAt": null,
"secondsLeft": 322560
},
"limits": {
"days": 7,
"maxZipBytes": 26214400,
"maxFiles": 3000
}
}
}Erros possíveis (2)
- 401
unauthorizedChave ausente, inválida, revogada ou expirada. - 429
rate_limitedLimite de requisições da chave excedido.