Cotal Service Endpoint Host API

The Service Endpoint Host API from Cotal — 1 operation(s) for service endpoint host.

GitHub OpenAPI

Operations 1

POST /service-endpoint-host Submit an owner-scoped native host operation #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cotal-ai:cotal-ai-service-endpoint-host-api"
All apis
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.

Get an API 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 Specification

cotal-ai-service-endpoint-host-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cotal Ai Service Endpoint Host API
  version: 1.0.0
  description: 'Operations tagged Service Endpoint Host 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 Host
paths:
  /service-endpoint-host:
    post:
      operationId: auth-service-endpoint-host
      summary: Submit an owner-scoped native host operation
      description: 'Only enabled with service endpoints; otherwise 404 before method/media/Origin guards. JSON idpToken derives owner and native granter. Caller-supplied granter is rejected. Operator-only operations are refused publicly (403). Native host outcomes, including denied/held/pending/refused, are returned with HTTP 200; inspect state. denied is a point-in-time no-binding observation, while held alone does not prove execution or authority. Native parser failures are 400, unexpected engine failures 500 or 503. Successful engine replies use Cache-Control: no-store. Origin is refused. instance-read returns only the proved owner''s selector, and instance-list returns only that owner''s native assignments with cursor pagination. Missing and foreign instance reads both answer absent. proposal-list remains unsupported.'
      security: []
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HostResult'
        '400':
          $ref: '#/components/responses/RequestError'
        '403':
          $ref: '#/components/responses/RequestError'
        '404':
          $ref: '#/components/responses/RequestError'
        '405':
          $ref: '#/components/responses/RequestError'
        '413':
          $ref: '#/components/responses/RequestError'
        '415':
          $ref: '#/components/responses/RequestError'
        '429':
          $ref: '#/components/responses/RequestError'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/Unavailable'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HostRequest'
        description: UTF-8 JSON; maximum 65536 bytes. An Authorization header does not replace the JSON proof.
      tags:
      - Service Endpoint Host
    servers:
    - url: https://auth.example.invalid
      description: Replace with the configured HTTPS public authority URL; TLS terminates at the operator proxy.
components:
  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'
  schemas:
    HostResult:
      type: object
      properties:
        v:
          const: 1
        kind:
          const: service-endpoint-host
        operation:
          type: string
          enum:
          - proposal-read
          - proposal-list
          - instance-read
          - instance-list
          - operation-read
          - name-read
          - decide
          - revoke
          - caller-policy-read
          - caller-policy-list
          - caller-grant
          - caller-revoke
        requestId:
          type: string
          minLength: 1
        space:
          type: string
          minLength: 1
        accountPublicKey:
          type: string
          minLength: 1
        state:
          type: string
          enum:
          - present
          - absent
          - page
          - approved
          - refused
          - retired
          - granted
          - revoked
          - pending
          - held
          - denied
        reason:
          type: string
      required:
      - v
      - kind
      - operation
      - requestId
      - space
      - accountPublicKey
      - state
      description: Transport envelope only. Nested native fields and operation-specific constraints are defined by ServiceHostResult in the linked source; this schema is not a complete native command contract.
      x-native-contract:
        name: ServiceHostResult
        url: https://github.com/Cotal-AI/Cotal/blob/main/implementations/auth/src/service-host-contract.ts
      allOf:
      - if:
          properties:
            state:
              const: denied
          required:
          - state
        then:
          required:
          - reason
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        outcome:
          type: string
          enum:
          - not-executed
          - executed
          - unknown
      required:
      - error
    HostRequest:
      type: object
      properties:
        idpToken:
          type: string
          minLength: 1
        request:
          type: object
          properties:
            v:
              const: 1
            kind:
              const: service-endpoint-host
            requestId:
              type: string
              pattern: ^[0-9a-f]{32}$
            operation:
              type: string
              enum:
              - proposal-read
              - proposal-list
              - instance-read
              - instance-list
              - operation-read
              - name-read
              - decide
              - revoke
              - caller-policy-read
              - caller-policy-list
              - caller-grant
              - caller-revoke
            input:
              type: object
              properties:
                proposalId:
                  type: string
                endpoint:
                  type: string
                instanceId:
                  type: string
                operationId:
                  type: string
                owner:
                  type:
                  - string
                  - 'null'
                cursor:
                  type:
                  - string
                  - 'null'
                limit:
                  type: integer
                  minimum: 0
              required: []
              description: Transport envelope only. Nested native fields and operation-specific constraints are defined by ServiceHostInputs[operation] in the linked source; this schema is not a complete native command contract.
              x-native-contract:
                name: ServiceHostInputs[operation]
                url: https://github.com/Cotal-AI/Cotal/blob/main/implementations/auth/src/service-host-contract.ts
          required:
          - v
          - kind
          - requestId
          - operation
          - input
          description: Transport envelope only. Nested native fields and operation-specific constraints are defined by ServiceHostRequest (HTTP omits granter) in the linked source; this schema is not a complete native command contract.
          x-native-contract:
            name: ServiceHostRequest (HTTP omits granter)
            url: https://github.com/Cotal-AI/Cotal/blob/main/implementations/auth/src/service-host-contract.ts
      required:
      - idpToken
      - request
      description: Never provide request.granter. The route derives it from idpToken. name-bind, quarantine-restored, admission-open, and revoke causes other than owner-request are loopback operator actions and return 403 publicly; they are excluded from the accepted operation enum.
x-refined-from:
- cotal-ai-auth-openapi.json
- cotal-ai-auth-openapi.yml
x-source: implementations/auth/src/service.ts ROUTES and loopback handlers