Current source preview reference
POST /v1/auth/ide/enrollments
Create ide enrollment. Permissions, parameters, responses and examples.
Read pinned handler: apps/api/kodesec_api/auth.py:1846
Create ide enrollment
Create one browser-reviewed pending authority without a pasted secret.
Source preview; no stable third-party integration promise. This page makes no request to a local installation.
Authority
Pending IDE enrollment entry. Exact loopback control Host and authentication rate limits apply.
Parameters and headers
No explicit path, query or header parameters are declared here. The authority boundary still applies.
Request body
JSON body · required · IdeEnrollmentRequest
| Field | Type | Presence |
|---|---|---|
client_name | string | Required |
client_slot | string | Required |
expected_active_generation | integer | Required |
Complete declared request schema
{
"additionalProperties": false,
"properties": {
"client_name": {
"maxLength": 120,
"minLength": 1,
"title": "Client Name",
"type": "string"
},
"client_slot": {
"pattern": "^ks1_[A-Za-z0-9_-]{43}$",
"title": "Client Slot",
"type": "string"
},
"expected_active_generation": {
"maximum": 2147483647,
"minimum": 0,
"title": "Expected Active Generation",
"type": "integer"
}
},
"required": [
"client_name",
"client_slot",
"expected_active_generation"
],
"title": "IdeEnrollmentRequest",
"type": "object"
}Responses
| Status | Meaning and declared shape |
|---|---|
201 | Successful Response application/json · IdeEnrollmentResponse |
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 |
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.
No literal handler errors were found by the bounded source extractor. Middleware and dependent operations can still fail.
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
{
"client_name": "synthetic",
"client_slot": "ks1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"expected_active_generation": 1
}Response 201 JSON
{
"activation_expires_at": "2026-01-01T00:00:00Z",
"capability": "synthetic",
"client_slot": "synthetic",
"generation": 1,
"request_id": "ker1_AAAAAAAAAAAAAAAAAAAAAAAA",
"requested_at": "2026-01-01T00:00:00Z",
"scopes": [],
"verification_code": "AAAA-AAAA"
}All referenced models remain in its components section. Browse control model definitions.