Modaic sells to AI agents - live prices and self-serve payment

The agent storefront at https://agents.modaic.dev/llms.txt?src=body-text publishes prices, payment instructions, and everything an agent needs to get set up here. Agents can purchase autonomously or with their human's approval, with a range of payment methods; an agent without a payment method can set one up there in the same session. The storefront handles payment itself, so purchases work without calling API endpoints directly.

Search Modaic documentation

Find a Modaic guide or API reference

Reference›API›Examples

Annotate example

Add or update an example's ground truth. At least one annotation field is required. The first annotation must include groundTruth. Example IDs are globally unique, so no model selector is required.

PATCH/v1/examples/{exampleId}/annotation

Authorization

Authorizationstringrequired

Send a Modaic bearer token in the Authorization header.

Path Parameters

exampleIdUUIDrequired

Example ID.

Body

groundTruthRecord<string, JSON value>

Expected answers keyed by question ID. noul questions use booleans, choice questions use option keys, and score questions use zero-based numeric indexes into the question's criteria array.

The first annotation assigns a stable train or test split. Updating the annotation later preserves the existing split.

Returns 404 example_not_found when the example does not exist or the caller cannot write to its model repository, and 422 ground_truth_required when the first annotation omits groundTruth.

Response

idUUIDrequired
stateany JSON valuerequired
sourceingest | liverequired
imageUrlsstring[]required
annotationAnnotationrequired

The merged ground truth with the preserved split.

latestDecisionDecision | nullrequired
decisionCountintegerrequired
createdAtISO 8601 datetimerequired
updatedAtISO 8601 datetimerequired
Was this page helpful?