POST/api/v1/bootstrap

Bootstrap a new org account

First-run setup: creates the org, default project, default API key, owner membership row. Idempotent (ADR-0024) — calling twice with the same Idempotency-Key returns the cached state. Used by the signup flow.

Authentication

Send Authorization: Bearer YOUR_API_KEY on every request. Generate API keys at /dashboard/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

200Bootstrapped.
400(no description)
401(no description)
429(no description)

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

import { EvalGuard } from "@evalguard/sdk";

const client = new EvalGuard({ apiKey: process.env.EVALGUARD_API_KEY });

const response = await client.request({
  method: "POST",
  path: "/api/v1/bootstrap",
  body: {
    "org_name": "string",
    "owner_email": "user@example.com"
  },
});
console.log(response);

Python

from evalguard import EvalGuard
import os

client = EvalGuard(api_key=os.environ["EVALGUARD_API_KEY"])

response = client.request(
    method="POST",
    path="/api/v1/bootstrap",
    body={
    "org_name": "string",
    "owner_email": "user@example.com"
},
)
print(response)

Go

package main

import (
	"context"
	"fmt"
	"os"

	"github.com/evalguard/evalguard-go"
)

func main() {
	client := evalguard.NewClient(os.Getenv("EVALGUARD_API_KEY"))
	resp, err := client.Request(context.Background(), "POST", "/api/v1/bootstrap", map[string]any{"org_name": "string", "owner_email": "user@example.com"})
	if err != nil { panic(err) }
	fmt.Println(resp)
}

Errors

400401429

Other Admin endpoints