Cotal Tool Result Consent API

The Tool Result Consent API from Cotal — 1 operation(s) for tool result consent.

GitHub OpenAPI

Operations 1

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-tool-result-consent-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-tool-result-consent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cotal Ai Tool Result Consent API
  version: '1'
  license:
    name: Apache-2.0
  description: 'Operations tagged Tool Result Consent 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: Tool Result Consent
paths:
  /tool-result-consent/issue:
    post:
      operationId: auth-host-issue-consent
      summary: Issue tool result consent
      description: Issue signed consent for the exact holder and target after verifying a fresh human proof. This route never returns private result content. ttlMs is bounded to 24 hours. Source parser and contract are packages/core/src/private-tool-results.ts and implementations/auth/src/tool-result-consent.ts.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConsentRequest'
      responses:
        '200':
          description: The host decision completed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  consent:
                    $ref: '#/components/schemas/Consent'
                required:
                - consent
                additionalProperties: false
          headers:
            Cache-Control:
              schema:
                const: no-store
              description: Consent responses are not cached.
        '400':
          description: Malformed input or any request-body read failure, including a body over 65536 bytes.
          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 consent ID is already recorded.
          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'
        '503':
          description: Consent signer is unavailable or issuance outcome is unknown.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Tool Result Consent
    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:
    ConsentRequest:
      type: object
      properties:
        id:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,200}$
        idpToken:
          type: string
          minLength: 1
          maxLength: 16384
        subject:
          type: string
          minLength: 1
          maxLength: 512
        accountPublicKey:
          type: string
        holder:
          type: object
          properties:
            actor:
              type: string
              pattern: ^[A-Za-z0-9_]+$
              minLength: 1
            lifecycleUid:
              type: string
              pattern: ^[a-z0-9]{26,32}$
          required:
          - actor
          - lifecycleUid
          additionalProperties: false
        target:
          $ref: '#/components/schemas/LifecycleTarget'
        ttlMs:
          type: integer
          minimum: 1
          maximum: 86400000
      required:
      - id
      - idpToken
      - subject
      - accountPublicKey
      - holder
      - target
      - ttlMs
      additionalProperties: false
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        outcome:
          type: string
          enum:
          - not-executed
          - executed
          - unknown
        details: {}
      required:
      - error
    Consent:
      type: object
      properties:
        v:
          const: 1
        kind:
          const: tool-result-consent
        id:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,200}$
        space:
          type: string
        target:
          $ref: '#/components/schemas/LifecycleTarget'
        holder:
          type: object
          properties:
            owner:
              type: string
              pattern: ^u_[a-z2-7]{26}$
            actor:
              type: string
              pattern: ^[A-Za-z0-9_]+$
              minLength: 1
          required:
          - owner
          - actor
          additionalProperties: false
        iat:
          type: integer
          minimum: 0
        exp:
          type: integer
          minimum: 0
        issuer:
          type: object
          properties:
            keyId:
              type: string
          required:
          - keyId
          additionalProperties: false
        sig:
          type: string
          pattern: ^[A-Za-z0-9_-]{86}$
      required:
      - v
      - kind
      - id
      - space
      - target
      - holder
      - iat
      - exp
      - issuer
      - sig
      additionalProperties: false
    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