TrustFabric Consent API

Per-rail consent matrix, grant ledger, and foregone-value (shadow-value) estimates

GitHub OpenAPI

Operations 8

GET /v1/accounts/{id}/consent-grants List consent grant records #
POST /v1/accounts/{id}/consent-grants Record a consent decision #
GET /v1/accounts/{id}/consent-matrix Get the per-rail consent matrix #
GET /v1/accounts/{id}/rail-fallback-notice Get structural fallback-gap notices #
POST /v1/accounts/{id}/rail-fallback-notice/dismiss Dismiss a fallback-gap notice #
GET /v1/accounts/{id}/shadow-value/digest Get the monthly per-disabled-rail digest #
GET /v1/accounts/{id}/shadow-value/{rail} Get foregone-value estimate for a rail #
GET /v1/admin/consent-grants/verify-chain Verify the consent-grant hash chain (admin) #

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/trustfabric-ai:trustfabric-ai-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

trustfabric-ai-consent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    name: No Fate Platform
  description: 'Complete payment processing platform with PSP parity: payments, settlements, disputes, billing, payouts, verification, webhooks, and platform management. Supports date-based API versioning via the API-Version header (default: 2025-01-01). All amounts are in minor units (cents). All timestamps are RFC 3339 UTC.'
  title: No Fate Payment Platform Consent API
  version: 1.0.0
  x-api-versioning: Date-based (YYYY-MM-DD) via API-Version header. See /v1/versions for all supported versions.
servers:
- description: Current environment
  url: /
security:
- BearerAuth: []
tags:
- description: Per-rail consent matrix, grant ledger, and foregone-value (shadow-value) estimates
  name: Consent
paths:
  /v1/accounts/{id}/consent-grants:
    get:
      description: Returns every recorded consent decision (granted, declined, revoked) for this account, hash-chained and ISO 27560 receipt-carrying.
      responses:
        '200':
          description: Success
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: List consent grant records
      tags:
      - Consent
      operationId: getV1AccountsByIdConsentGrants
      x-operation-id-source: derived
    post:
      description: Records a grant, decline, or revocation for one (rail, permission) pair. A refused subsequent operation on an ungranted permission returns apierror code=missing_grant with a detail.grant_url pointing back at this endpoint's UI surface.
      responses:
        '200':
          description: Success
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: Record a consent decision
      tags:
      - Consent
      operationId: postV1AccountsByIdConsentGrants
      x-operation-id-source: derived
  /v1/accounts/{id}/consent-matrix:
    get:
      description: 'Joins connection status with the consentmatrix grant ledger for every rail x permission pair. Every permission row carries recommended_enforcement plus inline disclosure template text/hash/id, even for not-yet-offered permissions -- an agent can render or reason about the full consent surface from this one call. Also carries coverage_tier: the founder''s derived Tier 0-5 ladder position (CAND-UCM-COVERAGE-TIER-READMODEL) -- education/basic_receive/multi_rail/orchestration/tf_admitted/tf_certified, with the specific signals that produced it in coverage_tier.reasons.'
      responses:
        '200':
          description: Success
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: Get the per-rail consent matrix
      tags:
      - Consent
      operationId: getV1AccountsByIdConsentMatrix
      x-operation-id-source: derived
  /v1/accounts/{id}/rail-fallback-notice:
    get:
      description: 'Event-anchored notices: recent terminal payment failures on a rail for which the merchant has zero other connected rails as a fallback. A structural signal derived from the merchant''s own failure history, never a ''would have succeeded'' prediction.'
      responses:
        '200':
          description: Success
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: Get structural fallback-gap notices
      tags:
      - Consent
      operationId: getV1AccountsByIdRailFallbackNotice
      x-operation-id-source: derived
  /v1/accounts/{id}/rail-fallback-notice/dismiss:
    post:
      description: Rate-limits (30 days) re-surfacing this rail's fallback-gap notice.
      responses:
        '200':
          description: Success
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: Dismiss a fallback-gap notice
      tags:
      - Consent
      operationId: postV1AccountsByIdRailFallbackNoticeDismiss
      x-operation-id-source: derived
  /v1/accounts/{id}/shadow-value/digest:
    get:
      description: Computes a shadow-value figure for every rail with a declined or revoked money_move.charge grant -- the always-on in-app digest tile.
      responses:
        '200':
          description: Success
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: Get the monthly per-disabled-rail digest
      tags:
      - Consent
      operationId: getV1AccountsByIdShadowValueDigest
      x-operation-id-source: derived
  /v1/accounts/{id}/shadow-value/{rail}:
    get:
      description: The T2 backtest / T3 estimate of what an alternative rail would have cost or saved -- shown when a merchant declines or revokes a rail's consent grant, so the tradeoff is concrete rather than abstract.
      responses:
        '200':
          description: Success
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: Get foregone-value estimate for a rail
      tags:
      - Consent
      operationId: getV1AccountsByIdShadowValueByRail
      x-operation-id-source: derived
  /v1/admin/consent-grants/verify-chain:
    get:
      description: Re-walks the entire append-only consent-grant ledger from genesis, recomputing every hash and confirming the prev_hash linkage across every account -- the tamper-evidence check an examiner or court relies on. Admin-only.
      responses:
        '200':
          description: Success
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: Verify the consent-grant hash chain (admin)
      tags:
      - Consent
      operationId: getV1AdminConsentGrantsVerifyChain
      x-operation-id-source: derived
components:
  securitySchemes:
    BearerAuth:
      bearerFormat: API Key
      description: 'API key authentication: sk_live_* (legacy) or rk_live_* (scoped)'
      scheme: bearer
      type: http
    SessionAuth:
      description: Session-based authentication for dashboard access
      in: cookie
      name: session_id
      type: apiKey