/api/v1/projects/bootstrap
Bootstrap a project (protected)
Protected bootstrap flow for managed or internal provisioning. The public documentation experience is the easiest way to create your first project and API key.
const response = await fetch("http://localhost:3000/api/v1/projects/bootstrap", {
method: "POST",
headers: {
"x-tinycv-bootstrap-secret": process.env.TINYCV_PLATFORM_BOOTSTRAP_SECRET!,
"Content-Type": "application/json",
},
body: JSON.stringify({
"api_key_label": "Production Agent Key",
"name": "Acme Recruiting Agent",
"slug": "acme-agent"
}),
});
const data = await response.json();
console.log(data);Example response
{
"apiKey": {
"key": "tcv_live_xxxxxxxxxxxxxxxxxxxxxxxx",
"keyPrefix": "tcv_live_xxxxxxxxx",
"label": "Production Agent Key"
},
"project": {
"createdAt": "2026-04-15T10:12:00.000Z",
"id": "proj_123",
"name": "Acme Recruiting Agent",
"slug": "acme-agent",
"updatedAt": "2026-04-15T10:12:00.000Z"
},
"webhookSecret": "tcv_wsec_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}