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.
openapi: 3.2.0
info:
title: Teppi Evaluate API
description: The record of what happened when someone paid a machine service. Every entry carries the settlement transaction, the hashes of what was sent and returned, and the check that ran.
version: 0.1.0
servers:
- url: https://api.teppi.xyz
tags:
- name: Evaluate
paths:
/v1/evaluate:
post:
operationId: evaluateDelivery
summary: Checks an answer you already got from a listed endpoint against the schema its…
tags:
- Evaluate
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
capability_id:
type: string
pattern: ^cap_[0-9A-HJKMNP-TV-Z]{26}$
status:
type: integer
minimum: 100
maximum: 599
body:
type: string
maxLength: 1000000
required:
- capability_id
- status
- body
additionalProperties: false
responses:
'200':
description: ok
content:
application/json:
schema:
type: object
description: an answer you hold, judged against its seller's published schema; nothing stored
properties:
capability:
type: object
properties:
id:
type: string
description: the endpoint
url:
type: string
description: its url
method:
type: string
description: GET or POST
evaluated:
type: object
description: the answer judged, by its hash
properties:
status:
type: integer
minimum: 0
description: its status
body:
type: string
description: sha256 of its body
passed:
type: boolean
description: whole and matching the schema
checks:
type: array
items:
type: object
description: each check and its result
schema_declared:
type: boolean
description: the seller published a schema
schema_conformance:
type:
- number
- 'null'
description: share of the schema met
injection_observed:
type: boolean
description: the body tried to give instructions
honesty:
type: 'null'
description: 'not measured: nothing was paid'
correctness:
type: 'null'
description: 'not measured: nobody holds the right answer'
not_measured:
type: string
description: why
recorded:
type: boolean
const: false
description: nothing is written
verifier_version:
type: string
description: which verifier judged it
answered_at:
type: string
description: when this answer was given
signing_key_id:
type:
- string
- 'null'
description: the published key that signed this answer
canonicalization:
type: string
description: 'how the signed bytes were made: RFC8785'
signature:
type:
- string
- 'null'
description: ed25519 over the canonical bytes of everything else here
required:
- capability
- evaluated
- passed
- checks
- answered_at
- signature