Cotal Manager Service Authority API

The Manager Service Authority API from Cotal — 2 operation(s) for manager service authority.

GitHub OpenAPI

Operations 2

POST /manager-service-authority/verify-enrollment Verify a managed agent host decision #
POST /manager-service-authority Dispatch a native manager authority request #

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-manager-service-authority-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-manager-service-authority-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cotal Ai Manager Service Authority API
  version: '1.0'
  description: 'Operations tagged Manager Service Authority across 4 of this provider''s published API definitions: cotal-ai-auth-host-openapi.json, cotal-ai-auth-openapi.json, cotal-ai-auth-host-openapi.yml, cotal-ai-auth-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://127.0.0.1:{port}
  description: The owner-private auth-service discovery record supplies the actual loopback port.
  variables:
    port:
      default: '12345'
      description: Example only. Replace with the port announced by the running service or its owner-private discovery record.
- url: https://auth.example.invalid
  description: Replace with the configured HTTPS public authority URL; TLS terminates at the operator proxy.
tags:
- name: Manager Service Authority
paths:
  /manager-service-authority/verify-enrollment:
    post:
      operationId: auth-host-verify-enrollment
      summary: Verify a managed agent host decision
      description: Verify enrollment, retirement preparation, runtime creation or runtime status. Forward the participant request verbatim. The host derives the interactive actor scope from its own ledger; the caller cannot supply scope.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                owner:
                  type: string
                  pattern: ^u_[a-z2-7]{26}$
                request:
                  $ref: '#/components/schemas/ManagedDecisionRequest'
              required:
              - owner
              - request
              additionalProperties: false
      responses:
        '200':
          description: The host decision completed.
          content:
            application/json:
              schema:
                oneOf:
                - type: object
                  properties:
                    authorized:
                      const: true
                    owner:
                      type: string
                      pattern: ^u_[a-z2-7]{26}$
                    actor:
                      type: string
                      pattern: ^[A-Za-z0-9_]+$
                      minLength: 1
                    instanceId:
                      type: string
                      pattern: ^[a-z0-9]{26,32}$
                    serveEpoch:
                      type: integer
                  required:
                  - authorized
                  - owner
                  - actor
                  - instanceId
                  - serveEpoch
                - type: object
                  properties:
                    authorized:
                      const: true
                    v:
                      const: 1
                    kind:
                      type: string
                      enum:
                      - manager-managed-agent-runtime-create
                      - manager-managed-agent-runtime-status
                    space:
                      type: string
                    owner:
                      type: string
                      pattern: ^u_[a-z2-7]{26}$
                    actor:
                      type: string
                      pattern: ^[A-Za-z0-9_]+$
                      minLength: 1
                    instanceId:
                      type: string
                      pattern: ^[a-z0-9]{26,32}$
                    managerLifecycleUid:
                      type: string
                      pattern: ^[a-z0-9]{26,32}$
                    requestId:
                      type: string
                    target:
                      $ref: '#/components/schemas/LifecycleTarget'
                    state:
                      type: string
                      enum:
                      - reserved
                      - creating
                      - bound
                      - create-unknown
                      - closing
                      - closed
                    readiness:
                      type: string
                      enum:
                      - ready
                      - bound-not-ready
                      - none
                    retirementPhase:
                      type: string
                      enum:
                      - intent
                      - released
                      - retired
                      - deprovisioned
                      - terminal
                  required:
                  - authorized
                  - v
                  - kind
                  - space
                  - owner
                  - actor
                  - instanceId
                  - managerLifecycleUid
                  - requestId
                  - target
                  - state
                  - readiness
        '400':
          description: Malformed JSON or invalid request fields.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid loopback capability.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: An Origin header or failed authority/proof check is refused.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Only POST is accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Native conflict.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '412':
          description: Native failed precondition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Request exceeds the 65536-byte body limit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: Content-Type must be application/json.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Invalid-capability attempts exceeded the rolling-minute limit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Manager Service Authority
      security:
      - HostCapability: []
    servers:
    - url: http://127.0.0.1:{port}
      description: The owner-private auth-service discovery record supplies the actual loopback port.
      variables:
        port:
          default: '12345'
          description: Example only. Replace with the port announced by the running service or its owner-private discovery record.
  /manager-service-authority:
    post:
      operationId: auth-manager-service-authority
      summary: Dispatch a native manager authority request
      description: Fresh JSON idpToken derives the owner; request.actor is checked against its current interactive ledger grant. Native request kinds and phase-specific results are not a stable cloud API. Manager lifecycle prepare/activate/renew/retire, enrollment, retirement preparation, retained validation, goal-index scan, admin authorization and run operations dispatch to their native contracts. Stock runtime-create/runtime-status and delegated intent kinds require host interception; the HTTP wrapper currently reports those refusals as 403 (not 501). Missing IdP proof is 400; a native conflict, such as a name another lifecycle holds or a stale serve epoch, is 409; failed proof, native parser/authority/unsupported failures are 403. A 403 or 409 refusal is 429 instead when the peer is throttled. Origin is refused. Credential verification and native dispatch failures share the public peer refusal budget.
      security: []
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagerResult'
        '400':
          $ref: '#/components/responses/RequestError'
        '403':
          $ref: '#/components/responses/RequestError'
        '405':
          $ref: '#/components/responses/RequestError'
        '409':
          $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/ManagerRequest'
        description: UTF-8 JSON; maximum 65536 bytes. An Authorization header does not replace the JSON proof.
      tags:
      - Manager Service Authority
    servers:
    - url: https://auth.example.invalid
      description: Replace with the configured HTTPS public authority URL; TLS terminates at the operator proxy.
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        outcome:
          type: string
          enum:
          - not-executed
          - executed
          - unknown
        details: {}
      required:
      - error
    ManagedDecisionRequest:
      oneOf:
      - type: object
        properties:
          v:
            const: 1
          kind:
            const: manager-managed-agent-enrollment
          space:
            type: string
          actor:
            type: string
            pattern: ^[A-Za-z0-9_]+$
            minLength: 1
          instanceId:
            type: string
            pattern: ^[a-z0-9]{26,32}$
          managerLifecycleUid:
            type: string
            pattern: ^[a-z0-9]{26,32}$
          requestId:
            type: string
            pattern: ^[A-Za-z0-9_-]{22,64}$
          registrationProof:
            type: string
            pattern: ^sha256:[0-9a-f]{64}$
          serveEpoch:
            type: integer
            minimum: 0
          target:
            type: object
            properties:
              actor:
                type: string
                pattern: ^[A-Za-z0-9_]+$
                minLength: 1
              tokenHash:
                type: string
                pattern: ^[a-f0-9]{64}$
              role:
                type: string
                pattern: ^[A-Za-z0-9_-]{1,64}$
              label:
                type: string
                minLength: 1
                maxLength: 256
              capabilities:
                type: array
                items:
                  type: string
                  minLength: 1
                maxItems: 64
              subscribe:
                type: array
                items:
                  type: string
                  minLength: 1
                maxItems: 64
              allowSubscribe:
                type: array
                items:
                  type: string
                  minLength: 1
                maxItems: 64
              allowPublish:
                type: array
                items:
                  type: string
                  minLength: 1
                maxItems: 64
            required:
            - actor
            - tokenHash
            additionalProperties: false
          identities:
            type: object
            properties:
              supervisor:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              executor:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              serve:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              goalWriter:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              sessionLedger:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
            required:
            - supervisor
            - executor
            - serve
            - goalWriter
            - sessionLedger
            additionalProperties: false
        required:
        - v
        - kind
        - space
        - actor
        - instanceId
        - managerLifecycleUid
        - requestId
        - registrationProof
        - serveEpoch
        - target
        - identities
        additionalProperties: false
      - type: object
        properties:
          v:
            const: 1
          kind:
            const: manager-managed-agent-prepare-retirement
          space:
            type: string
          actor:
            type: string
            pattern: ^[A-Za-z0-9_]+$
            minLength: 1
          instanceId:
            type: string
            pattern: ^[a-z0-9]{26,32}$
          managerLifecycleUid:
            type: string
            pattern: ^[a-z0-9]{26,32}$
          requestId:
            type: string
            pattern: ^[A-Za-z0-9_-]{22,64}$
          registrationProof:
            type: string
            pattern: ^sha256:[0-9a-f]{64}$
          serveEpoch:
            type: integer
            minimum: 0
          target:
            $ref: '#/components/schemas/LifecycleTarget'
          identities:
            type: object
            properties:
              supervisor:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              executor:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              serve:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              goalWriter:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              sessionLedger:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
            required:
            - supervisor
            - executor
            - serve
            - goalWriter
            - sessionLedger
            additionalProperties: false
          opId:
            type: string
        required:
        - v
        - kind
        - space
        - actor
        - instanceId
        - managerLifecycleUid
        - requestId
        - registrationProof
        - serveEpoch
        - target
        - identities
        - opId
        additionalProperties: false
      - type: object
        properties:
          v:
            const: 1
          kind:
            const: manager-managed-agent-runtime-create
          space:
            type: string
          actor:
            type: string
            pattern: ^[A-Za-z0-9_]+$
            minLength: 1
          instanceId:
            type: string
            pattern: ^[a-z0-9]{26,32}$
          managerLifecycleUid:
            type: string
            pattern: ^[a-z0-9]{26,32}$
          requestId:
            type: string
            pattern: ^[A-Za-z0-9_-]{22,64}$
          registrationProof:
            type: string
            pattern: ^sha256:[0-9a-f]{64}$
          serveEpoch:
            type: integer
            minimum: 0
          target:
            $ref: '#/components/schemas/LifecycleTarget'
          identities:
            type: object
            properties:
              supervisor:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              executor:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              serve:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              goalWriter:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              sessionLedger:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
            required:
            - supervisor
            - executor
            - serve
            - goalWriter
            - sessionLedger
            additionalProperties: false
        required:
        - v
        - kind
        - space
        - actor
        - instanceId
        - managerLifecycleUid
        - requestId
        - registrationProof
        - serveEpoch
        - target
        - identities
        additionalProperties: false
      - type: object
        properties:
          v:
            const: 1
          kind:
            const: manager-managed-agent-runtime-status
          space:
            type: string
          actor:
            type: string
            pattern: ^[A-Za-z0-9_]+$
            minLength: 1
          instanceId:
            type: string
            pattern: ^[a-z0-9]{26,32}$
          managerLifecycleUid:
            type: string
            pattern: ^[a-z0-9]{26,32}$
          requestId:
            type: string
            pattern: ^[A-Za-z0-9_-]{22,64}$
          registrationProof:
            type: string
            pattern: ^sha256:[0-9a-f]{64}$
          serveEpoch:
            type: integer
            minimum: 0
          target:
            $ref: '#/components/schemas/LifecycleTarget'
          identities:
            type: object
            properties:
              supervisor:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              executor:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              serve:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              goalWriter:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
              sessionLedger:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^U[A-Z2-7]{55}$
                required:
                - id
                additionalProperties: false
            required:
            - supervisor
            - executor
            - serve
            - goalWriter
            - sessionLedger
            additionalProperties: false
        required:
        - v
        - kind
        - space
        - actor
        - instanceId
        - managerLifecycleUid
        - requestId
        - registrationProof
        - serveEpoch
        - target
        - identities
        additionalProperties: false
      description: Native requests from packages/core/src/remote-manager-authority.ts. Forward verbatim; the host derives caller scope from its ledger.
    LifecycleTarget:
      type: object
      properties:
        owner:
          type: string
          pattern: ^u_[a-z2-7]{26}$
        actor:
          type: string
          pattern: ^[A-Za-z0-9_]+$
          minLength: 1
        lifecycleUid:
          type: string
          pattern: ^[a-z0-9]{26,32}$
      required:
      - owner
      - actor
      - lifecycleUid
      additionalProperties: false
    ManagerRequest:
      type: object
      properties:
        idpToken:
          type: string
          minLength: 1
        request:
          type: object
          properties:
            v:
              const: 1
            kind:
              type: string
              minLength: 1
            actor:
              type: string
          required:
          - actor
          description: Transport envelope only. Nested native fields and operation-specific constraints are defined by RemoteManagerAuthorityRequest and dispatchManagerAuthorityRequest request union in the linked source; this schema is not a complete native command contract.
          x-native-contract:
            name: RemoteManagerAuthorityRequest and dispatchManagerAuthorityRequest request union
            url: https://github.com/Cotal-AI/Cotal/blob/main/implementations/auth/src/service.ts
      required:
      - idpToken
      - request
    Error_2:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        outcome:
          type: string
          enum:
          - not-executed
          - executed
          - unknown
      required:
      - error
    ManagerResult:
      type: object
      properties:
        v:
          const: 1
        kind:
          type: string
        operation:
          type: string
        space:
          type: string
          minLength: 1
        owner:
          type: string
          minLength: 1
        actor:
          type: string
          minLength: 1
        instanceId:
          type: string
          minLength: 1
        lifecycleUid:
          type: string
          minLength: 1
        requestId:
          type: string
          minLength: 1
        issuedAt:
          type: integer
          minimum: 0
        expiresAt:
          type: integer
          minimum: 0
        credentials:
          type: object
          properties:
            supervisor:
              type: object
              required:
              - jwt
              - exp
              properties:
                jwt:
                  type: string
                  minLength: 1
                exp:
                  type: integer
                  minimum: 0
            executor:
              type: object
              required:
              - jwt
              - exp
              properties:
                jwt:
                  type: string
                  minLength: 1
                exp:
                  type: integer
                  minimum: 0
            serve:
              type: object
              required:
              - jwt
              - exp
              properties:
                jwt:
                  type: string
                  minLength: 1
                exp:
                  type: integer
                  minimum: 0
            goalWriter:
              type: object
              required:
              - jwt
              - exp
              properties:
                jwt:
                  type: string
                  minLength: 1
                exp:
                  type: integer
                  minimum: 0
            sessionLedger:
              type: object
              required:
              - jwt
              - exp
              properties:
                jwt:
                  type: string
                  minLength: 1
                exp:
                  type: integer
                  minimum: 0
            runDriver:
              type: object
              required:
              - jwt
              - exp
              properties:
                jwt:
                  type: string
                  minLength: 1
                exp:
                  type: integer
                  minimum: 0
            runMediator:
              type: object
              required:
              - jwt
              - exp
              properties:
                jwt:
                  type: string
                  minLength: 1
                exp:
                  type: integer
                  minimum: 0
            sessionServing:
              type: object
              required:
              - jwt
              - exp
              properties:
                jwt:
                  type: string
                  minLength: 1
                exp:
                  type: integer
                  minimum: 0
            retirementRequester:
              type: object
              required:
              - jwt
              - exp
              properties:
                jwt:
                  type: string
                  minLength: 1
                exp:
                  type: integer
                  minimum: 0
            transferReader:
              type: object
              required:
              - jwt
              - exp
              properties:
                jwt:
                  type: string
                  minLength: 1
                exp:
                  type: integer
                  minimum: 0
      required:
      - v
      - kind
      - requestId
      description: Native dispatch result union. The optional documented fields describe RemoteManagerAuthorityMaterial, including prepare credentials; other dispatched result arms use their own native contracts. This schema validates the object transport envelope, not every phase-specific result.
      x-native-contract:
        name: dispatchManagerAuthorityRequest return union; RemoteManagerAuthorityMaterial and native result types
        url: https://github.com/Cotal-AI/Cotal/blob/main/implementations/auth/src/service.ts
    Error_3:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        outcome:
          type: string
          enum:
          - not-executed
          - executed
          - unknown
      required:
      - error
  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_2'
    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_2'
          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_2'
    RequestError_2:
      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_3'
    InternalServerError_2:
      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_3'
          example:
            error: internal server error
    Unavailable_2:
      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_3'
  securitySchemes:
    HostCapability:
      type: http
      scheme: bearer
      description: Exact exchange capability from the owner-private auth-service discovery record. This is not an IdP JWT or actor bearer.
x-refined-from:
- cotal-ai-auth-host-openapi.json
- cotal-ai-auth-openapi.json
- cotal-ai-auth-host-openapi.yml
- cotal-ai-auth-openapi.yml
x-source: implementations/auth/src/service.ts ROUTES and loopback handlers