Teardrop Labeling API
The Labeling API from Teardrop — 6 operation(s) for labeling.
The Labeling API from Teardrop — 6 operation(s) for labeling.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/teardrop-dev:teardrop-dev-labeling-api"
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.
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: 3.2.0
info:
title: Teardrop Labeling API
description: The open API and billing gateway for autonomous economic agents
version: 2.13.0
tags:
- name: Labeling
paths:
/labeling/definitions:
get:
tags:
- Labeling
summary: Get Labeling Definitions
operationId: get_labeling_definitions_labeling_definitions_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LabelingDefinitionListResponse'
security:
- HTTPBearer: []
/labeling/bindings:
post:
tags:
- Labeling
summary: Bind Labeling Definition
operationId: bind_labeling_definition_labeling_bindings_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LabelingBindingRequest'
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LabelingBindingResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/labeling/predictions:
get:
tags:
- Labeling
summary: Get Labeling Predictions
operationId: get_labeling_predictions_labeling_predictions_get
security:
- HTTPBearer: []
parameters:
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 50
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LabelingPredictionListResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Labeling
summary: Submit Labeling Prediction
description: Commit a signed external prediction; the server assigns its timestamp.
operationId: submit_labeling_prediction_labeling_predictions_post
security:
- HTTPBearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PredictionSubmitRequest'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PredictionSubmitResponse'
'200':
description: Idempotent replay of an existing submission.
'401':
description: Signature does not match the canonical payload.
'403':
description: Signer wallet is not linked to the organization.
'409':
description: Idempotency key was reused with a different payload.
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/labeling/predictions/{prediction_id}/proof:
get:
tags:
- Labeling
summary: Get Labeling Prediction Proof
description: Return the commitment leaf and, once sealed, its Merkle inclusion proof and anchor.
operationId: get_labeling_prediction_proof_labeling_predictions__prediction_id__proof_get
security:
- HTTPBearer: []
parameters:
- name: prediction_id
in: path
required: true
schema:
type: string
title: Prediction Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PredictionProofResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/labeling/results:
get:
tags:
- Labeling
summary: Get Labeling Results
operationId: get_labeling_results_labeling_results_get
security:
- HTTPBearer: []
parameters:
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 50
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LabelingResultListResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/labeling/results/{target_id}/override:
post:
tags:
- Labeling
summary: Override Labeling Result
operationId: override_labeling_result_labeling_results__target_id__override_post
security:
- HTTPBearer: []
parameters:
- name: target_id
in: path
required: true
schema:
type: string
title: Target Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ScoreResult'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LabelingOverrideResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
PredictionSubmitRequest:
properties:
definition_key:
type: string
pattern: ^[a-z0-9][a-z0-9_.-]{0,127}$
title: Definition Key
definition_version:
type: integer
exclusiveMinimum: 0.0
title: Definition Version
idempotency_key:
type: string
pattern: ^[A-Za-z0-9._:-]{1,128}$
title: Idempotency Key
signer_address:
type: string
pattern: ^0x[0-9a-fA-F]{40}$
title: Signer Address
signature:
type: string
pattern: ^0x[0-9a-fA-F]{130}$
title: Signature
predictions:
additionalProperties: true
type: object
title: Predictions
additionalProperties: false
type: object
required:
- definition_key
- definition_version
- idempotency_key
- signer_address
- signature
- predictions
title: PredictionSubmitRequest
LabelingDefinitionListResponse:
properties:
items:
items:
$ref: '#/components/schemas/LabelingDefinitionItem'
type: array
title: Items
type: object
required:
- items
title: LabelingDefinitionListResponse
LabelingPredictionItem:
properties:
id:
type: string
title: Id
source_kind:
type: string
title: Source Kind
source_id:
type: string
title: Source Id
run_id:
type: string
title: Run Id
schedule_id:
type: string
title: Schedule Id
definition_key:
type: string
title: Definition Key
definition_version:
type: integer
title: Definition Version
predictions:
additionalProperties: true
type: object
title: Predictions
payload_sha256:
type: string
title: Payload Sha256
prediction_at:
type: string
title: Prediction At
status:
type: string
title: Status
parse_error:
type: string
title: Parse Error
created_at:
type: string
title: Created At
type: object
required:
- id
- source_kind
- source_id
- run_id
- schedule_id
- definition_key
- definition_version
- predictions
- payload_sha256
- prediction_at
- status
- parse_error
- created_at
title: LabelingPredictionItem
PredictionProofResponse:
properties:
prediction_id:
type: string
title: Prediction Id
status:
type: string
enum:
- pending
- submitted
- anchored
title: Status
hash_algorithm:
type: string
const: rfc6962-sha256
title: Hash Algorithm
leaf_version:
type: integer
title: Leaf Version
leaf_preimage:
additionalProperties: true
type: object
title: Leaf Preimage
salt:
type: string
title: Salt
leaf_sha256:
type: string
title: Leaf Sha256
anchor:
anyOf:
- $ref: '#/components/schemas/PredictionProofAnchor'
- type: 'null'
type: object
required:
- prediction_id
- status
- hash_algorithm
- leaf_version
- leaf_preimage
- salt
- leaf_sha256
- anchor
title: PredictionProofResponse
LabelingBindingResponse:
properties:
id:
type: string
title: Id
schedule_id:
type: string
title: Schedule Id
definition_key:
type: string
title: Definition Key
definition_version:
type: integer
title: Definition Version
status:
type: string
const: created
title: Status
type: object
required:
- id
- schedule_id
- definition_key
- definition_version
- status
title: LabelingBindingResponse
PredictionSubmitResponse:
properties:
id:
type: string
title: Id
payload_sha256:
type: string
title: Payload Sha256
status:
type: string
const: accepted
title: Status
created:
type: boolean
title: Created
type: object
required:
- id
- payload_sha256
- status
- created
title: PredictionSubmitResponse
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
LabelingDefinitionItem:
properties:
definition_key:
type: string
title: Definition Key
definition_version:
type: integer
title: Definition Version
prediction_schema:
additionalProperties: true
type: object
title: Prediction Schema
target_schema:
additionalProperties: true
type: object
title: Target Schema
outcome_schema:
additionalProperties: true
type: object
title: Outcome Schema
active:
type: boolean
title: Active
created_at:
type: string
title: Created At
type: object
required:
- definition_key
- definition_version
- prediction_schema
- target_schema
- outcome_schema
- active
- created_at
title: LabelingDefinitionItem
PredictionProofAnchor:
properties:
batch_id:
type: string
title: Batch Id
leaf_index:
type: integer
title: Leaf Index
tree_size:
type: integer
title: Tree Size
merkle_root:
type: string
title: Merkle Root
audit_path:
items:
type: string
type: array
title: Audit Path
chain_id:
type: integer
title: Chain Id
tx_hash:
anyOf:
- type: string
- type: 'null'
title: Tx Hash
anchor_address:
anyOf:
- type: string
- type: 'null'
title: Anchor Address
block_number:
anyOf:
- type: integer
- type: 'null'
title: Block Number
anchored_at:
anyOf:
- type: string
- type: 'null'
title: Anchored At
type: object
required:
- batch_id
- leaf_index
- tree_size
- merkle_root
- audit_path
- chain_id
- tx_hash
- anchor_address
- block_number
- anchored_at
title: PredictionProofAnchor
ScoreResult:
properties:
label:
type: string
maxLength: 128
minLength: 1
title: Label
score:
anyOf:
- type: number
- type: 'null'
title: Score
status:
type: string
enum:
- correct
- incorrect
- neutral
- inconclusive
- unavailable
- invalid
title: Status
actual:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Actual
rationale:
type: string
maxLength: 2000
title: Rationale
default: ''
source:
type: string
enum:
- automatic
- external
- manual
title: Source
default: automatic
additionalProperties: false
type: object
required:
- label
- status
title: ScoreResult
LabelingBindingRequest:
properties:
schedule_id:
type: string
maxLength: 256
minLength: 1
title: Schedule Id
definition_key:
type: string
maxLength: 128
minLength: 1
title: Definition Key
definition_version:
type: integer
exclusiveMinimum: 0.0
title: Definition Version
type: object
required:
- schedule_id
- definition_key
- definition_version
title: LabelingBindingRequest
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
LabelingResultItem:
properties:
id:
type: string
title: Id
target_id:
type: string
title: Target Id
scorer_key:
type: string
title: Scorer Key
scorer_version:
type: string
title: Scorer Version
observation_id:
anyOf:
- type: string
- type: 'null'
title: Observation Id
actual:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Actual
label:
type: string
title: Label
score:
anyOf:
- type: number
- type: 'null'
title: Score
status:
type: string
title: Status
source:
type: string
title: Source
rationale:
type: string
title: Rationale
created_at:
type: string
title: Created At
type: object
required:
- id
- target_id
- scorer_key
- scorer_version
- observation_id
- actual
- label
- score
- status
- source
- rationale
- created_at
title: LabelingResultItem
LabelingOverrideResponse:
properties:
status:
type: string
const: recorded
title: Status
type: object
required:
- status
title: LabelingOverrideResponse
LabelingPredictionListResponse:
properties:
items:
items:
$ref: '#/components/schemas/LabelingPredictionItem'
type: array
title: Items
type: object
required:
- items
title: LabelingPredictionListResponse
LabelingResultListResponse:
properties:
items:
items:
$ref: '#/components/schemas/LabelingResultItem'
type: array
title: Items
type: object
required:
- items
title: LabelingResultListResponse
securitySchemes:
HTTPBearer:
type: http
scheme: bearer