SDK reference · Python SDK
prov.attest.verifications.create
prov.attest.verifications.create in Python SDK.
Signature
prov.attest.verifications.create(screen: Optional[bool] = …, **body: Any = …) -> AnyParameters
screenOptional[bool]**bodyAny
Request fields
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
attestation_idstringRequired- The attestation's ID.
Returns
Any The verification result, with its risk factors.
HTTP operation
POST /v1/attest/verifications: Verify an attestation
Errors
- authentication_required
- detector_not_configured
- insufficient_scope
- invalid_json
- media_too_large
- parameter_invalid
- parameter_missing
- rate_limit_exceeded
- resource_missing
- screening_provider_error
- usage_limit_reached
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/verifications`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ "attestation_id": "att_00000000000000000000000000000001" }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/attest/verifications", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
"attestation_id": "att_00000000000000000000000000000001"
}).json()