Skip to main content
POST
Attest Model
Creates a cryptographically anchored attestation for an AI model. The attestation captures the model’s framework, training lineage, hyperparameters, and evaluation metrics. It is linked to the originating agent and anchored in the transparency log. Model attestations provide an auditable record of what was trained, how it was trained, and what data was used — enabling compliance teams and downstream consumers to verify model provenance before deployment.

Authentication

string
required
API key with models:write scope. Alternatively, pass a Bearer JWT token in the Authorization header.
string
required
Tenant identifier for multi-tenant isolation.

Request

string
required
MAIP agent identifier that trained or owns this model.
string
required
Human-readable model name. Must be unique within the agent’s namespace per version.
string
Semantic version of the model (e.g. 2.1.0). Defaults to 1.0.0 if omitted.
string
ML framework used to train the model. Accepted values: pytorch, tensorflow, onnx, custom.
string
SHA-256 hex digest of the serialized model weights. Used for integrity verification at deployment time.
string[]
Array of dataset attestation identifiers (maip-ds:ULID) used to train this model. Creates lineage edges automatically.
object
Key-value map of hyperparameters used during training (e.g. learning_rate, batch_size, epochs).
object
Key-value map of evaluation metrics (e.g. accuracy, f1_score, auc_roc).

Response

string
Unique model attestation identifier in MAIP format (maip-model:ULID).
string
The agent that attested this model.
string
Model name as provided in the request.
string
Resolved version of the model.
string
ML framework identifier.
string
SHA-256 hex digest stored for integrity verification.
string[]
Linked training dataset attestation identifiers.
string
Attestation status. Always attested on creation.
string
Transparency-log receipt anchoring this attestation.
string
ISO 8601 timestamp of creation.

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Body

application/json
name
string
required

Model name

hash
string
required

SHA-256 hash of the model weights

framework
string
required

ML framework (e.g. pytorch, tensorflow, onnx)

version
string
required

Model version string

agent_id
string<uuid>
required

Attesting agent

training_dataset_ids
string<uuid>[]

IDs of attested training datasets

Response

Model attested

model_id
string<uuid>
receipt_id
string<uuid>
name
string
hash
string
framework
string
version
string
agent_id
string<uuid>
training_dataset_ids
string<uuid>[]
created_at
string<date-time>