Skip to Content
API referenceOverview & Authentication

API reference

Use the runtime API for SDK telemetry and governed actions. Use customer operations for authorized queries, configuration, and evidence exports. These paths use different credentials. An API key does not grant a person’s portal permissions.

Choose the API

PurposeStarting pointAuthentication
Record application activity or request a policy decisionConfigured VeriProof runtime endpointAPI key
Query or manage customer recordsCustomer Portal API for the deploymentSupported authenticated user or workload flow
Automate supported customer operationsCLI or MCPUser sign-in or registered workload identity

Hosted runtime defaults to https://ingest.veriproof.app. For Customer-managed Azure, use the ingest base URL supplied for that environment. The portal address and ingest endpoint are not interchangeable.

Runtime authentication

Pass the complete issued API key to the SDK. It sets the protected-request headers required by the endpoint.

vp_cust_<customer-slug>.<functions-key>.<application-key>

For direct HTTP requests to the Azure runtime, split the issued key into two headers:

HeaderValue
x-functions-keyThe middle segment: <functions-key>
X-API-KeyThe last segment: <application-key>

The customer slug is not an authorization claim. Services resolve organization and application scope from validated credentials.

The example below uses placeholders for both credentials. Keep real values in your client’s secret store.

curl -X POST "https://ingest.veriproof.app/v1/ingest/otlp" \ -H "x-functions-key: <functions-key>" \ -H "X-API-Key: <application-key>" \ -H "Content-Type: application/json" \ --data @session.json

Azure validates the Functions key before the request reaches VeriProof. A missing or invalid x-functions-key returns HTTP 401 with an empty response body. Send each segment in its own header, not the complete issued key in either header.

Local development can run without Functions host-key validation. The API key is still required; use both headers when calling the Azure runtime.

Keep credentials out of browser code, source control, command history, logs, and examples. Package access and application runtime calls do not use the same credentials.

Customer operations

The portal uses its supported sign-in flow and authenticated session. For automation, prefer the documented CLI or MCP flow for the operation. Do not script a presumed email-and-password token endpoint or assume a fixed token lifetime.

Confirm organization, role, application, and audit-engagement scope before sending a request. A valid identity can still be denied access to a specific record.

Read the response

StatusFirst check
200Inspect the operation result; HTTP success is not necessarily a policy allowance or completed business action.
400 or 422Read the returned validation code and field details. Their meaning depends on the endpoint.
401Check the credential, expiry or revocation state, and intended endpoint.
403Check the caller’s scope and permission for the operation.
413Compare the request size with the endpoint’s configured limit.
429Follow the retry instructions and the SDK’s bounded retry contract.
503Read the returned error code and service state. Do not infer one cause from the status alone. platform_write_freeze means VeriProof has paused writes on every organization: nothing was saved, reads still work, and you can resend the same request after Retry-After.

Never treat an unavailable policy service as permission to execute a protected action. For an uncertain business outcome, reconcile the original request before attempting another action.

Payloads and retries

Use the endpoint contract for body size, supported media, attachment handling, and batch limits. A batch limit applies to the entire request, not each item independently.

To record a file with a session, upload it to POST /v1/ingest/upload and point a session step at the returned refId, or send a small image, audio file, or PDF inline as a data URL. Attach files to a session gives the request formats and limits. Keep uploaded content within the application’s approved data-handling scope.

Honor Retry-After when the operation permits a retry. Preserve the original semantic request and idempotency key. Authentication failures, policy denials, and changed-input conflicts are not ordinary transport retries.

Sandbox and test data

The shared portal demo uses example records. It is not an SDK ingest destination or a substitute for testing your own integration. Use a development application for write tests, with its assigned key and endpoint. See Explore the demo.

Versions and endpoint coverage

Versioned routes identify a contract family. Use the selected release record for compatibility and supported fields; do not infer a support period from the URL.

The HTTP endpoint catalog is generated from declared routes. It is an inventory, not proof of permissions or completed runtime qualification. Check the request and response contract and the relevant workflow guide before implementation.

Last updated on