Cotal Service Endpoint Authority API
The Service Endpoint Authority API from Cotal — 1 operation(s) for service endpoint authority.
The Service Endpoint Authority API from Cotal — 1 operation(s) for service endpoint authority.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/cotal-ai:cotal-ai-service-endpoint-authority-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Cotal Ai Service Endpoint Authority API
version: 1.0.0
description: 'Operations tagged Service Endpoint Authority across 2 of this provider''s published API definitions: cotal-ai-auth-openapi.json, cotal-ai-auth-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://auth.example.invalid
description: Replace with the configured HTTPS public authority URL; TLS terminates at the operator proxy.
tags:
- name: Service Endpoint Authority
paths:
/service-endpoint-authority:
get:
operationId: auth-service-endpoint-authority-info
summary: Read enabled service authority metadata
description: Requires service endpoints enabled; disabled route returns 404 before other guards. Origin is refused even for GET. This metadata grants no authority.
security: []
responses:
'200':
description: Successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceInfo'
headers:
Cache-Control:
schema:
const: no-store
type: string
'400':
$ref: '#/components/responses/RequestError'
'403':
$ref: '#/components/responses/RequestError'
'404':
$ref: '#/components/responses/RequestError'
'405':
$ref: '#/components/responses/RequestError'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/Unavailable'
tags:
- Service Endpoint Authority
post:
operationId: auth-service-endpoint-authority
summary: Submit a native service authority envelope
description: '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.'
security: []
responses:
'200':
description: Successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceResult'
'202':
description: Native approval-required or pending result with echoed coordinates; replay the same request after approval.
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceResult'
'400':
$ref: '#/components/responses/RequestError'
'401':
description: Native denied result with echoed coordinates, state=denied and reason.
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceResult'
'403':
description: Native denied result for account or authority refusal, or a plain error when Origin is present before envelope parsing.
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/ServiceResult'
- $ref: '#/components/schemas/Error'
'404':
$ref: '#/components/responses/RequestError'
'405':
$ref: '#/components/responses/RequestError'
'409':
description: Native denied result with echoed coordinates, state=denied and reason.
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceResult'
'413':
$ref: '#/components/responses/RequestError'
'415':
$ref: '#/components/responses/RequestError'
'422':
description: Native denied result with echoed coordinates, state=denied and reason.
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceResult'
'429':
description: Native denied result with echoed coordinates, state=denied and reason.
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceResult'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/Unavailable'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceEnvelope'
description: UTF-8 JSON; maximum 2097152 bytes. An Authorization header does not replace the JSON proof.
tags:
- Service Endpoint Authority
servers:
- url: https://auth.example.invalid
description: Replace with the configured HTTPS public authority URL; TLS terminates at the operator proxy.
components:
schemas:
ServiceResult:
type: object
properties:
v:
const: 1
kind:
const: service-endpoint-authority
requestId:
type: string
pattern: ^[0-9a-f]{32}$
space:
type: string
minLength: 1
accountPublicKey:
type: string
minLength: 1
endpoint:
type: string
minLength: 1
instanceId:
type: string
minLength: 1
operation:
type: string
enum:
- register
- activate
- renew
- ready
- revoke
- status
- describe-view
state:
type: string
enum:
- approval-required
- pending
- registered
- credential
- ready
- status
- retired
- view
- denied
reason:
type: string
witness:
$ref: '#/components/schemas/ServiceWitness'
status:
type: object
properties:
state:
type: string
enum:
- proposed
- approved-unregistered
- registering
- revoking
- registered
- ready
- retired
- refused
- superseded
required:
- state
required:
- v
- kind
- requestId
- space
- accountPublicKey
- endpoint
- instanceId
- operation
- state
description: 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.
x-native-contract:
name: ServiceAuthorityResult
url: https://github.com/Cotal-AI/Cotal/blob/main/packages/core/src/remote-service-authority.ts
allOf:
- if:
properties:
state:
const: denied
required:
- state
then:
required:
- reason
ServiceInfo:
type: object
properties:
v:
const: 1
kind:
const: service-endpoint-authority-info
space:
type: string
minLength: 1
accountPublicKey:
type: string
minLength: 1
issuer:
type: string
minLength: 1
keys:
type: array
items:
$ref: '#/components/schemas/PublicKey'
maxItems: 16
required:
- v
- kind
- space
- accountPublicKey
- issuer
- keys
ServiceRequest:
type: object
properties:
v:
const: 1
kind:
const: service-endpoint-authority
requestId:
type: string
pattern: ^[0-9a-f]{32}$
space:
type: string
minLength: 1
accountPublicKey:
type: string
minLength: 1
endpoint:
type: string
minLength: 1
instanceId:
type: string
minLength: 1
operation:
type: string
enum:
- register
- activate
- renew
- ready
- revoke
- status
- describe-view
witness:
$ref: '#/components/schemas/ServiceWitness'
registration:
type: object
properties:
clusterDigests:
type: array
items:
type: string
minLength: 1
minItems: 1
contractArtifacts:
type: array
items:
type: object
minItems: 1
required:
- clusterDigests
- contractArtifacts
expected:
type: object
properties:
state:
type: string
enum:
- unregistered
- registered
witness:
$ref: '#/components/schemas/ServiceWitness'
required:
- state
target:
type: object
properties:
kind:
type: string
enum:
- instance
- operation
operation:
type: string
enum:
- register
- activate
- renew
- ready
- revoke
requestId:
type: string
minLength: 1
required:
- kind
observation:
type: object
properties:
subject:
type: string
minLength: 1
fingerprint:
type: string
minLength: 1
required:
- subject
- fingerprint
required:
- v
- kind
- requestId
- space
- accountPublicKey
- endpoint
- instanceId
- operation
description: 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.
x-native-contract:
name: ServiceAuthorityRequest
url: https://github.com/Cotal-AI/Cotal/blob/main/packages/core/src/remote-service-authority.ts
Error:
type: object
properties:
error:
type: string
code:
type: string
outcome:
type: string
enum:
- not-executed
- executed
- unknown
required:
- error
ServiceWitness:
type: object
properties:
accountPublicKey:
type: string
minLength: 1
space:
type: string
minLength: 1
endpoint:
type: string
minLength: 1
instanceId:
type: string
minLength: 1
principal:
type: object
properties:
owner:
type: string
minLength: 1
actor:
type: string
minLength: 1
lifecycleUid:
type: string
minLength: 1
required:
- owner
- actor
- lifecycleUid
rootCredentialId:
type: string
minLength: 1
approvalDigest:
type: string
minLength: 1
processEpoch:
type: integer
minimum: 0
registrationRevision:
type: integer
minimum: 0
nameAuthorityRevision:
type: integer
minimum: 0
registrationRequestId:
type: string
minLength: 1
registrationProof:
type: string
minLength: 1
required:
- accountPublicKey
- space
- endpoint
- instanceId
- principal
- rootCredentialId
- approvalDigest
- processEpoch
- registrationRevision
- nameAuthorityRevision
- registrationRequestId
- registrationProof
description: 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.
x-native-contract:
name: ServiceRegistrationWitness
url: https://github.com/Cotal-AI/Cotal/blob/main/packages/core/src/remote-service-authority.ts
ServiceEnvelope:
type: object
properties:
request:
$ref: '#/components/schemas/ServiceRequest'
proof:
type: object
properties:
kind:
type: string
enum:
- idp
- service-renewal
- service-access
token:
type: string
minLength: 1
required:
- kind
- token
additionalProperties: false
required:
- request
- proof
description: '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.'
additionalProperties: false
PublicKey:
type: object
properties:
kty:
const: OKP
crv:
const: Ed25519
kid:
type: string
minLength: 1
x:
type: string
minLength: 1
required:
- kty
- crv
- kid
- x
responses:
RequestError:
description: JSON error from a named request refusal. Route guards run before proof evaluation; parser failures are 400 and byte overflow is 413.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
InternalServerError:
description: 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:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: internal server error
Unavailable:
description: 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:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-refined-from:
- cotal-ai-auth-openapi.json
- cotal-ai-auth-openapi.yml
x-source: implementations/auth/src/service.ts ROUTES and loopback handlers