MolTrust Delegation API

The Delegation API from MolTrust — 3 operation(s) for delegation.

Operations 3

POST /delegation/configure Configure Delegation #
POST /delegation/create Delegation Create #
POST /delegation/verify Delegation Verify #

Documentation

Specifications

Other Resources

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/moltrust-ch:moltrust-ch-delegation-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

moltrust-ch-delegation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MolTrust Delegation API
  version: '2.5'
tags:
- name: Delegation
paths:
  /delegation/configure:
    post:
      summary: Configure Delegation
      description: Configure delegation permissions for an agent. Admin or agent owner.
      operationId: configure_delegation_delegation_configure_post
      parameters:
      - name: X-API-Key
        in: header
        required: true
        schema:
          type: string
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Delegation
  /delegation/create:
    post:
      tags:
      - Delegation
      summary: Delegation Create
      description: 'Mint a UCAN 0.10.0 delegation JWT (capabilities, attenuation, proof chain).

        Bounded by the delegator''s agent_delegation_config.'
      operationId: delegation_create_delegation_create_post
      parameters:
      - name: X-API-Key
        in: header
        required: true
        schema:
          type: string
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DelegationCreateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /delegation/verify:
    post:
      tags:
      - Delegation
      summary: Delegation Verify
      description: 'Verify a UCAN JWT + embedded proof chain: signature, time bounds, iss/aud

        chain alignment, attenuation monotonicity, and revocation.'
      operationId: delegation_verify_delegation_verify_post
      parameters:
      - name: X-API-Key
        in: header
        required: true
        schema:
          type: string
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DelegationVerifyRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DelegationCreateRequest:
      properties:
        delegator_did:
          type: string
          maxLength: 128
          title: Delegator Did
        audience_did:
          type: string
          maxLength: 128
          title: Audience Did
        capabilities:
          additionalProperties: true
          type: object
          title: Capabilities
          description: UCAN cap map {resource:{ability:[caveats]}}
        ttl_seconds:
          type: integer
          maximum: 31536000.0
          minimum: 1.0
          title: Ttl Seconds
          default: 3600
        nonce:
          anyOf:
          - type: string
            maxLength: 128
          - type: 'null'
          title: Nonce
        facts:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Facts
        proofs:
          items:
            type: string
          type: array
          title: Proofs
          description: Embedded parent UCAN JWTs
      type: object
      required:
      - delegator_did
      - audience_did
      - capabilities
      title: DelegationCreateRequest
    DelegationVerifyRequest:
      properties:
        token:
          type: string
          maxLength: 100000
          title: Token
        expected_audience:
          anyOf:
          - type: string
            maxLength: 128
          - type: 'null'
          title: Expected Audience
      type: object
      required:
      - token
      title: DelegationVerifyRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError