Current source preview reference
POST /v1/auth/bootstrap
Bootstrap. Permissions, parameters, responses and examples.
Read pinned handler: apps/api/kodesec_api/auth.py:1737
Bootstrap
Bootstrap through POST /v1/auth/bootstrap. The parameters and declared response shapes below come from this exact source snapshot.
Source preview; no stable third-party integration promise. This page makes no request to a local installation.
Authority
One-time browser bootstrap or invitation protocol. Exact control origin required; existing-session handling is source-defined.
Parameters and headers
No explicit path, query or header parameters are declared here. The authority boundary still applies.
Request body
JSON body · required · BootstrapRequest
| Field | Type | Presence |
|---|---|---|
bootstrap_token | string | Required |
Complete declared request schema
{
"additionalProperties": false,
"properties": {
"bootstrap_token": {
"maxLength": 256,
"minLength": 1,
"title": "Bootstrap Token",
"type": "string"
}
},
"required": [
"bootstrap_token"
],
"title": "BootstrapRequest",
"type": "object"
}Responses
| Status | Meaning and declared shape |
|---|---|
200 | Successful Response application/json · object |
400 | Exact host, malformed request or URL credential refusal application/json · object |
401 | Missing or invalid membership application/json · object |
403 | Exact origin, CSRF or route authority refusal application/json · object |
409 | Refresh current revision and identity. A conflicting command must not be blindly repeated. See source-linked error catalog. |
422 | Validation Error application/json · HTTPValidationError |
429 | Authentication rate or connection limit application/json · object |
An empty or broad schema preserves the source contract. It is not a promise of an empty response.
Source-linked errors
Literal HTTP errors in this handler and same-file helper call graph, plus control middleware. Dynamic and cross-module failures may add other errors; source links are authoritative.
6 source error observations
| Status | Source detail | Recovery |
|---|---|---|
| 409 ↗ | browser membership identity is unavailable | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 401 ↗ | browser member is missing or revoked, or its local cookie was removed | Reconcile the exact browser or IDE membership through the normal owner workflow. |
| 401 ↗ | browser member is missing or revoked, or its local cookie was removed | Reconcile the exact browser or IDE membership through the normal owner workflow. |
| 409 ↗ | one-time credential already consumed | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
| 401 ↗ | invalid one-time credential | Reconcile the exact browser or IDE membership through the normal owner workflow. |
| 409 ↗ | one-time credential already consumed | Refresh current revision and identity. A conflicting command must not be blindly repeated. |
Synthetic examples
These examples validate declared JSON shapes and formats. They contain no real installation data and do not prove runtime admission, cross-field validation, authority or successful work.
Request JSON
{
"bootstrap_token": "synthetic"
}Response 200 JSON
{}All referenced models remain in its components section. Browse control model definitions.