/api/v1/bootstrapBootstrap a new org account
DEV-ONLY seeding endpoint: returns 403 unless `DEV_AUTH_BYPASS` is on, so it is unreachable in production and is not part of the signup flow. Using the service-role client (RLS bypassed) it upserts four fixed rows for the hard-coded dev identity — organization `00000000-0000-4000-8000-000000000001` (plan `free`), an `org_members` row with role `admin`, project `00000000-0000-4000-8000-000000000002`, and a `profiles` row — and returns `{orgId, projectId, userId}`. No API key is created. Repeat calls are safe because every write is an upsert on its primary key; there is no `Idempotency-Key` support. Org and project upsert failures return 500; member and profile failures are non-fatal.
Authentication
Send Authorization: Bearer YOUR_API_KEY on every request. Generate API keys at /dashboard/settings/api-keys.
Request body required
Example
{
"org_name": "string",
"owner_email": "user@example.com"
}Schema
{
"application/json": {
"schema": {
"type": "object",
"required": [
"org_name"
],
"properties": {
"org_name": {
"type": "string"
},
"owner_email": {
"type": "string",
"format": "email"
}
}
}
}
}Response
200 example
{
"success": true
}All status codes
Code samples
cURL
curl -X POST \
https://evalguard.ai/api/v1/bootstrap \
-H "Authorization: Bearer $EVALGUARD_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "org_name": "string", "owner_email": "user@example.com" }'TypeScript
// The TypeScript SDK (@evalguard/sdk) exposes TYPED methods — runEval,
// getEval, runSecurityScan, checkFirewall, … — not a generic request().
// For an arbitrary endpoint, call it directly:
const res = await fetch("https://evalguard.ai/api/v1/bootstrap", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.EVALGUARD_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"org_name": "string",
"owner_email": "user@example.com"
}),
});
console.log(res.status, await res.json());Python
# The Python SDK (pip install evalguardai) exposes TYPED methods on
# EvalGuardClient — run_eval, get_eval, … — not a generic request().
# For an arbitrary endpoint, call it directly:
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['EVALGUARD_API_KEY']}"}
headers["Content-Type"] = "application/json"
response = requests.request(
"POST",
"https://evalguard.ai/api/v1/bootstrap",
headers=headers,
json={
"org_name": "string",
"owner_email": "user@example.com"
},
)
print(response.status_code, response.json())Go
package main
import (
"context"
"fmt"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{"org_name":"string","owner_email":"user@example.com"}`)
req, _ := http.NewRequestWithContext(context.Background(), "POST", "https://evalguard.ai/api/v1/bootstrap", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("EVALGUARD_API_KEY"))
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer resp.Body.Close()
fmt.Println(resp.Status)
}