Submit a native service authority envelope
const url = 'https://auth.example.invalid/service-endpoint-authority';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"request":{"v":1,"kind":"service-endpoint-authority","requestId":"example","space":"example","accountPublicKey":"example","endpoint":"example","instanceId":"example","operation":"register","witness":{"accountPublicKey":"example","space":"example","endpoint":"example","instanceId":"example","principal":{"owner":"example","actor":"example","lifecycleUid":"example"},"rootCredentialId":"example","approvalDigest":"example","processEpoch":1,"registrationRevision":1,"nameAuthorityRevision":1,"registrationRequestId":"example","registrationProof":"example"},"registration":{"clusterDigests":["example"],"contractArtifacts":[{}]},"expected":{"state":"unregistered","witness":{"accountPublicKey":"example","space":"example","endpoint":"example","instanceId":"example","principal":{"owner":"example","actor":"example","lifecycleUid":"example"},"rootCredentialId":"example","approvalDigest":"example","processEpoch":1,"registrationRevision":1,"nameAuthorityRevision":1,"registrationRequestId":"example","registrationProof":"example"}},"target":{"kind":"instance","operation":"register","requestId":"example"},"observation":{"subject":"example","fingerprint":"example"}},"proof":{"kind":"idp","token":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://auth.example.invalid/service-endpoint-authority \ --header 'Content-Type: application/json' \ --data '{ "request": { "v": 1, "kind": "service-endpoint-authority", "requestId": "example", "space": "example", "accountPublicKey": "example", "endpoint": "example", "instanceId": "example", "operation": "register", "witness": { "accountPublicKey": "example", "space": "example", "endpoint": "example", "instanceId": "example", "principal": { "owner": "example", "actor": "example", "lifecycleUid": "example" }, "rootCredentialId": "example", "approvalDigest": "example", "processEpoch": 1, "registrationRevision": 1, "nameAuthorityRevision": 1, "registrationRequestId": "example", "registrationProof": "example" }, "registration": { "clusterDigests": [ "example" ], "contractArtifacts": [ {} ] }, "expected": { "state": "unregistered", "witness": { "accountPublicKey": "example", "space": "example", "endpoint": "example", "instanceId": "example", "principal": { "owner": "example", "actor": "example", "lifecycleUid": "example" }, "rootCredentialId": "example", "approvalDigest": "example", "processEpoch": 1, "registrationRevision": 1, "nameAuthorityRevision": 1, "registrationRequestId": "example", "registrationProof": "example" } }, "target": { "kind": "instance", "operation": "register", "requestId": "example" }, "observation": { "subject": "example", "fingerprint": "example" } }, "proof": { "kind": "idp", "token": "example" } }'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.
Request Bodyrequired
Section titled “Request Bodyrequired”UTF-8 JSON; maximum 2097152 bytes. An Authorization header does not replace the JSON proof.
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.
object
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.
object
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.
object
object
object
object
object
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.
object
object
object
object
object
Responses
Section titled “Responses”Successful 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.
object
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.
object
object
object
Example
{ "v": 1, "kind": "service-endpoint-authority", "operation": "register", "state": "approval-required", "status": { "state": "proposed" }}Native approval-required or pending result with echoed coordinates; replay the same request after approval.
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.
object
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.
object
object
object
Example
{ "v": 1, "kind": "service-endpoint-authority", "operation": "register", "state": "approval-required", "status": { "state": "proposed" }}JSON error. Route guards run before proof evaluation; parser failures are 400 and byte overflow is 413. An unexpected failure is 400 unless a route handles it separately.
object
Example
{ "outcome": "not-executed"}Native denied result with echoed coordinates, state=denied and reason.
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.
object
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.
object
object
object
Example
{ "v": 1, "kind": "service-endpoint-authority", "operation": "register", "state": "approval-required", "status": { "state": "proposed" }}Native denied result for account or authority refusal, or a plain error when Origin is present before envelope parsing.
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.
object
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.
object
object
object
object
Example
{ "v": 1, "kind": "service-endpoint-authority", "operation": "register", "state": "approval-required", "status": { "state": "proposed" }}JSON error. Route guards run before proof evaluation; parser failures are 400 and byte overflow is 413. An unexpected failure is 400 unless a route handles it separately.
object
Example
{ "outcome": "not-executed"}JSON error. Route guards run before proof evaluation; parser failures are 400 and byte overflow is 413. An unexpected failure is 400 unless a route handles it separately.
object
Example
{ "outcome": "not-executed"}Native denied result with echoed coordinates, state=denied and reason.
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.
object
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.
object
object
object
Example
{ "v": 1, "kind": "service-endpoint-authority", "operation": "register", "state": "approval-required", "status": { "state": "proposed" }}JSON error. Route guards run before proof evaluation; parser failures are 400 and byte overflow is 413. An unexpected failure is 400 unless a route handles it separately.
object
Example
{ "outcome": "not-executed"}JSON error. Route guards run before proof evaluation; parser failures are 400 and byte overflow is 413. An unexpected failure is 400 unless a route handles it separately.
object
Example
{ "outcome": "not-executed"}Native denied result with echoed coordinates, state=denied and reason.
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.
object
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.
object
object
object
Example
{ "v": 1, "kind": "service-endpoint-authority", "operation": "register", "state": "approval-required", "status": { "state": "proposed" }}Native denied result with echoed coordinates, state=denied and reason.
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.
object
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.
object
object
object
Example
{ "v": 1, "kind": "service-endpoint-authority", "operation": "register", "state": "approval-required", "status": { "state": "proposed" }}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.
object
Example
{ "outcome": "not-executed"}