Submit a native service authority envelope
Only enabled with service endpoints; otherwise 404 before all guards. Fresh JSON proof is verified by kind, never by a loopback capability. Account/space mismatch yields a native denied result. Protocol denials echo coordinates and state=denied: 401 unauthenticated/proof-mismatch; 409 conflict or registration/proposal state; 422 bad-request, closure-invalid, unsupported-runtime or unsupported; 429 resource-exhausted/rate-limited; other authority denials 403. Native envelope/parser errors are plain 400 errors. revoke and describe-view are currently unsupported (422). Transport, 5xx or unknown effects never justify changing the mutation identity. Origin is refused. registered, credential, ready and status answer 200; approval-required and pending answer 202.
UTF-8 JSON; maximum 2097152 bytes. An Authorization header does not replace the JSON proof.
application/json- body
Proof matrix: register=idp; activate=idp or service-renewal; renew=service-renewal; ready=service-access; status=any proof kind; revoke=idp or service-renewal; describe-view=service-access. revoke and describe-view parse but are currently denied as unsupported (422). The native parser also closes every request arm and enforces nested contracts.
request*Transport envelope only. Nested native fields and operation-specific constraints are defined by ServiceAuthorityRequest in the linked source; this schema is not a complete native command contract.
proof*Successful response.
application/json- response
Transport envelope only. Nested native fields and operation-specific constraints are defined by ServiceAuthorityResult in the linked source; this schema is not a complete native command contract.
v*unknownkind*unknownrequestId*string^[0-9a-f]{32}$space*string1 <= lengthaccountPublicKey*string1 <= lengthendpoint*string1 <= lengthinstanceId*string1 <= lengthoperation*string"register""activate""renew""ready""revoke""status""describe-view"state*string"approval-required""pending""registered""credential""ready""status""retired""view""denied"reason?stringwitness?Transport envelope only. Nested native fields and operation-specific constraints are defined by ServiceRegistrationWitness in the linked source; this schema is not a complete native command contract.
status?curl -X POST 'https://auth.example.invalid/service-endpoint-authority' \ -H 'Content-Type: application/json' \ -d '{ "request": { "v": 1, "kind": "service-endpoint-authority", "requestId": "string", "space": "string", "accountPublicKey": "string", "endpoint": "string", "instanceId": "string", "operation": "register" }, "proof": { "kind": "idp", "token": "string" }}'{ "v": 1, "kind": "service-endpoint-authority", "requestId": "string", "space": "string", "accountPublicKey": "string", "endpoint": "string", "instanceId": "string", "operation": "register", "reason": "string", "witness": { "accountPublicKey": "string", "space": "string", "endpoint": "string", "instanceId": "string", "principal": { "owner": "string", "actor": "string", "lifecycleUid": "string" }, "rootCredentialId": "string", "approvalDigest": "string", "processEpoch": 0, "registrationRevision": 0, "nameAuthorityRevision": 0, "registrationRequestId": "string", "registrationProof": "string" }, "status": { "state": "proposed" }, "state": "denied"}See the HTTP interface overview for authentication and access requirements.
Complete HTTP contract
Endpoint
POST /service-endpoint-authorityOnly enabled with service endpoints; otherwise 404 before all guards. Fresh JSON proof is verified by kind, never by a loopback capability. Account/space mismatch yields a native denied result. Protocol denials echo coordinates and state=denied: 401 unauthenticated/proof-mismatch; 409 conflict or registration/proposal state; 422 bad-request, closure-invalid, unsupported-runtime or unsupported; 429 resource-exhausted/rate-limited; other authority denials 403. Native envelope/parser errors are plain 400 errors. revoke and describe-view are currently unsupported (422). Transport, 5xx or unknown effects never justify changing the mutation identity. Origin is refused. registered, credential, ready and status answer 200; approval-required and pending answer 202.
Parameters
No operation parameters.
Request body
UTF-8 JSON; maximum 2097152 bytes. An Authorization header does not replace the JSON proof.
Required: yes.
Content type: application/json.
{
"$ref": "#/components/schemas/ServiceEnvelope"
}Responses
HTTP 200
Successful response.
Content type: application/json.
{
"$ref": "#/components/schemas/ServiceResult"
}HTTP 202
Native approval-required or pending result with echoed coordinates; replay the same request after approval.
Content type: application/json.
{
"$ref": "#/components/schemas/ServiceResult"
}HTTP 400
JSON error from a named request refusal. Route guards run before proof evaluation; parser failures are 400 and byte overflow is 413.
Content type: application/json.
{
"$ref": "#/components/schemas/Error"
}HTTP 401
Native denied result with echoed coordinates, state=denied and reason.
Content type: application/json.
{
"$ref": "#/components/schemas/ServiceResult"
}HTTP 403
Native denied result for account or authority refusal, or a plain error when Origin is present before envelope parsing.
Content type: application/json.
{
"oneOf": [
{
"$ref": "#/components/schemas/ServiceResult"
},
{
"$ref": "#/components/schemas/Error"
}
]
}HTTP 404
JSON error from a named request refusal. Route guards run before proof evaluation; parser failures are 400 and byte overflow is 413.
Content type: application/json.
{
"$ref": "#/components/schemas/Error"
}HTTP 405
JSON error from a named request refusal. Route guards run before proof evaluation; parser failures are 400 and byte overflow is 413.
Content type: application/json.
{
"$ref": "#/components/schemas/Error"
}HTTP 409
Native denied result with echoed coordinates, state=denied and reason.
Content type: application/json.
{
"$ref": "#/components/schemas/ServiceResult"
}HTTP 413
JSON error from a named request refusal. Route guards run before proof evaluation; parser failures are 400 and byte overflow is 413.
Content type: application/json.
{
"$ref": "#/components/schemas/Error"
}HTTP 415
JSON error from a named request refusal. Route guards run before proof evaluation; parser failures are 400 and byte overflow is 413.
Content type: application/json.
{
"$ref": "#/components/schemas/Error"
}HTTP 422
Native denied result with echoed coordinates, state=denied and reason.
Content type: application/json.
{
"$ref": "#/components/schemas/ServiceResult"
}HTTP 429
Native denied result with echoed coordinates, state=denied and reason.
Content type: application/json.
{
"$ref": "#/components/schemas/ServiceResult"
}HTTP 500
Server failure. An unexpected failure reaching the listener boundary returns only {"error":"internal server error"}; details are logged server-side. A route's named server failure may include its error code and outcome.
Content type: application/json.
{
"$ref": "#/components/schemas/Error"
}Example:
{
"error": "internal server error"
}HTTP 503
Public admission cap (64 in flight), 10 second request deadline, or a route-specific unavailable read/effect. A service authority 503 may follow a binding; retain the request identity.
Content type: application/json.
{
"$ref": "#/components/schemas/Error"
}Authentication and access: HTTP interface of the stock auth public listener: 11 paths and 12 operations. Public means reachable through the configured listener, not unauthenticated. This implementation surface uses Cotal native contracts and does not establish a stable cloud API. Description version 1.0.0 identifies this document, not the wire or npm package version.
Credentials are JSON body proofs, with no loopback capability required. No CORS headers are sent. All POST routes and service authority GET reject any Origin header. Health, JWKS and mesh discovery GET permit Origin headers.
The listener binds 127.0.0.1; an operator HTTPS proxy supplies the external origin. Service endpoint routes require service endpoints enabled. Route lookup uses the exact request target: query strings and trailing slashes do not match and return JSON 404. Unknown paths and loopback-only lifecycle, enrollment verification, human-proof and consent routes return JSON 404. Configuration and route-specific native parser checks remain authoritative.
POST JSON bodies default to 65536 bytes; service authority accepts 2097152 bytes. Public work has 64 concurrent admissions and a 10000 ms deadline. Its separate rolling 30-refusal/minute peer budget is bounded to 1024 peer entries. Failure accounting is route-specific. Manager dispatch failures and chat native or store failures can consume the budget after valid proof verification. Otherwise successful requests are still evaluated when the refusal budget is full. Peer is socket address unless trusted proxy mode selects the last X-Forwarded-For hop.
OpenAPI specification contains the referenced response schemas. Complete Markdown reference.