Cotal Managed Lifecycle API

The Managed Lifecycle API from Cotal — 2 operation(s) for managed lifecycle.

GitHub OpenAPI

Operations 2

POST /managed-lifecycle/activate Activate a managed lifecycle #
POST /managed-lifecycle/retire Retire a managed lifecycle #

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-managed-lifecycle-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-managed-lifecycle-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cotal Ai Managed Lifecycle API
  version: '1'
  license:
    name: Apache-2.0
  description: 'Operations tagged Managed Lifecycle across 2 of this provider''s published API definitions: cotal-ai-auth-host-openapi.json, cotal-ai-auth-host-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.
security:
- HostCapability: []
tags:
- name: Managed Lifecycle
paths:
  /managed-lifecycle/activate:
    post:
      operationId: auth-host-activate-managed
      summary: Activate a managed lifecycle
      description: Activate the exact host-issued lifecycle UID. accountPublicKey must name this authority or the request returns 403 before mutation. Native already-exists is 409. Native refusals preserve code, outcome and optional details. An unexpected failure returns 500 with outcome unknown.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Activation'
      responses:
        '200':
          description: The host decision completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Activated'
        '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: The lifecycle already exists or a native conflict was refused.
          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'
        '500':
          description: Unexpected activation failure; outcome is unknown.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Native authority refusal classified by its error code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Managed Lifecycle
    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.
  /managed-lifecycle/retire:
    post:
      operationId: auth-host-retire-managed
      summary: Retire a managed lifecycle
      description: Complete terminal retirement of an exact managed lifecycle after its grant was revoked. This host recovery door is used when the responsible remote manager is gone.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LifecycleTarget'
      responses:
        '200':
          description: The host decision completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Retirement'
        '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 retirement conflict.
          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'
        '500':
          description: Unexpected retirement failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Managed Lifecycle
    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.
components:
  schemas:
    Activation:
      type: object
      properties:
        accountPublicKey:
          type: string
          description: Assigned account authority public key.
        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:
      - accountPublicKey
      - owner
      - actor
      - lifecycleUid
      additionalProperties: false
    Activated:
      type: object
      properties:
        accountPublicKey:
          type: string
          description: Assigned account authority public key.
        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}$
        activated:
          const: true
      required:
      - accountPublicKey
      - owner
      - actor
      - lifecycleUid
      - activated
      additionalProperties: false
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        outcome:
          type: string
          enum:
          - not-executed
          - executed
          - unknown
        details: {}
      required:
      - error
    Retirement:
      type: object
      properties:
        retired:
          type: boolean
        lifecycleUid:
          type: string
          pattern: ^[a-z0-9]{26,32}$
        notStarted:
          type: boolean
        alreadyRetired:
          type: boolean
      required:
      - retired
      - lifecycleUid
    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
  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-host-openapi.yml
x-source: implementations/auth/src/service.ts ROUTES and loopback handlers