Endpoints Reference
Reference for the Simple Proof API v2 endpoints: create batch verification jobs, track their progress, receive callbacks and read the results JSON.
Proofs
Endpoints related to proof verification workflows, including batch processing and asynchronous job management.
- Verify Batches — Create an asynchronous job to verify a batch of files or hashes.
- Jobs — Retrieve the status, progress, and results of verification jobs, including partial results while processing.
All endpoints require authentication using a developer API key. See Authorization documentation.
Batch Verification
/api/v2/proofs/verify-batchesCreate an asynchronous job to verify multiple proofs belonging to the same category.
Headers
x-api-key(string, required): Developer API key used to authenticate the request.Content-Type: application/json
{
"proofCategoryId": 123,
"hashes": [
"825f759...",
"825f759...",
"825f759..."
],
"callbackUrl": "https://example.com/webhook"
}
Body Parameters
proofCategoryId (number, required): Identifier of the proof category under which the provided hashes will be verified. To find the categories of your account and their identifiers, use the API v1 List proof categories endpoint. All hashes in the request must belong to the same category.hashes (array of strings, required): List of sha256 hex hashes to be verified. Each hash represents a previously submitted file or data fingerprint.callbackUrl (string, optional): A publicly accessible URL that will be notified once the job has completed. This can be used to know when the results are ready instead of polling the job endpoint.
Success Response
Status Code: 202 Accepted
{
"status": "success",
"data": {
"jobId": "b9c720de-XYZ-49c5-ABCD-8dc0000003f4",
"submittedHashes": 3,
"totalDocumentsFound": 3
}
}
Response Fields
status (string): Indicates the result of the request. A value of "success" means the job was successfully created.data.jobId (string): Unique identifier of the asynchronous job. This ID can be used to query the job status, progress, and results.data.submittedHashes (number): The total count of hashes included in the user's request, representing the raw input size before processing.data.totalDocumentsFound (number): The aggregate number of certified documents matching the submitted hashes. This value accounts for all occurrences found in the database and defines the final scope of the job.
Notes
- Upon initiating a batch, the system performs a matching analysis. If a submitted hash is associated with multiple certified documents, the Job's
totalHashescounter will reflect the total number of documents found to ensure 100% traceability. - The request is processed asynchronously. A successful response only confirms that the job has been created, not that the verification has completed.
- Use the
/api/v2/proofs/jobs/:jobIdendpoint to track progress and retrieve results (including partial results).
Error Responses
The following errors may be returned when calling this endpoint:
400 Bad Request - Missing Hashes in Category
{
"status": "error",
"name": "BadRequestError",
"message": "Validation failed: 2 hashes were not found in this category. Missing: 0xabc123..., 0xdef456...",
"statusCode": 400
}
Description:
This error occurs when the "All-or-Nothing" validation policy fails. To ensure data integrity, the system requires that every hash submitted in the batch must already exist within the specified category. If one or more hashes cannot be found in the database, the entire job creation is aborted.
Key features of the response:
- Atomic Operation: No partial jobs are created.
- Detailed Feedback: The error message explicitly lists the hashes that caused the failure, allowing for immediate correction.
403 Forbidden
{
"status": "error",
"message": "Category not found or does not belong to your account"
}
{
"status": "error",
"message": "Invalid or revoked API key"
}
Description:
- The provided
proofCategoryIddoes not exist or does not belong to your account. - The API key is invalid, expired, or has been revoked.
500 Internal Server Error
{
"status": "error",
"message": "Could not initialize verification process"
}
Description:
- An unexpected error occurred while creating the verification job.
Jobs
Retrieve the status, progress, and results of a verification job.
/api/v2/proofs/jobs/:jobIdHeaders
x-api-key(string, required): Developer API key used to authenticate the request.
Path Parameters
jobId (string, required): Unique identifier of the job to retrieve.
Success Response
Status Code: 202 Accepted
{
"jobId": "b9c720de-XYZ-49c5-ABCD-8dc0000003f4",
"status": "PROCESSING",
"totalHashes": 100,
"verifiedHashes": 0,
"progress": "0%",
"createdAt": "2026-04-21T00:42:41.782Z",
"updatedAt": "2026-04-21T02:06:42.661Z",
"resultsUrl": "https://results..../batches/b9c720de-XYZ-49c5-ABCD-8dc0000003f4.json",
"ttl": 1777336961
}
Response Fields
jobId (string): Unique identifier of the job.status (string): Current state of the job. Possible values:PENDING: The job has been created but processing has not started yet.PROCESSING: The verification process is currently running.COMPLETED: All hashes have been successfully verified.FAILED: The job could not be processed.
totalHashes (number): The total number of document matches identified for this job. This corresponds to thetotalDocumentsFoundvalue reported during job creation.verifiedHashes (number): Number of hashes that have been processed so far.progress (string): Completion percentage of the job (e.g., "0%", "50%", "100%").createdAt (string, ISO 8601): Timestamp indicating when the job was created.updatedAt (string, ISO 8601): Timestamp of the last update to the job status.resultsUrl (string | null): URL where the verification results can be retrieved. This may be available before the job is fully completed, allowing access to partial results.ttl (number): Expiration timestamp (Unix time) indicating how long the job data and results will remain available.
Notes
- This endpoint supports retrieving partial results while the job is still in progress.
- If a
callbackUrlwas provided when creating the job, a notification is sent to it once the job has completed. - Clients can poll this endpoint to follow the progress, or rely on the callback to know when the job has completed.
Callbacks (Webhooks)
If a callbackUrl is provided when creating a batch verification job, the API will send an HTTP POST request to the specified URL once the job has completed. The callback is sent a single time, when the job finishes; it is not sent for intermediate status changes.
Callback Payload
{
"jobId": "b9c720de-XYZ-49c5-ABCD-8dc0000003f4",
"status": "COMPLETED",
"resultsUrl": "https://results..../batches/b9c720de-XYZ-49c5-ABCD-8dc0000003f4.json",
"completedAt": "2026-04-21T02:42:42.853Z"
}
Payload Fields
jobId (string): Unique identifier of the job.status (string): Final status of the job. Typically COMPLETED or FAILED.resultsUrl (string | null): URL where the verification results can be retrieved.completedAt (string, ISO 8601): Timestamp indicating when the job finished processing.
Data Retention Policy (Important)
- Jobs and their associated results are available for 7 days from creation.
- The
resultsUrl, as well as any URLs contained within the results JSON, will expire after this period. - After expiration, the data will no longer be accessible and must be regenerated if needed.
Results JSON Structure
The resultsUrl returns a JSON array containing the verification results for each submitted hash or file.
[
{
"document_id": 123,
"hash": "804e9a327484...",
"name": "source-superfile.pdf",
"creation_date": "2026-04-21T00:38:31.856Z",
"confirmed": true,
"confirmation_detail": [
{
"calendar": "https://bob.btc.calendar.opentimestamps.org",
"blockHeight": 945805,
"transaction": "2041f...",
"merkleRoot": "08be5e..."
},
{
"calendar": "https://alice.btc.calendar.opentimestamps.org",
"blockHeight": 945800,
"transaction": "da7d5...",
"merkleRoot": "31322..."
},
],
"file_download_url": "https://...",
"ots_download_url": "https://...",
"download_url_expiration_time": 604800
}
]
Fields Description
Top-Level Object (per result)
document_id (number): Unique identifier of the document associated with the hash.hash (string): Hash of the verified file or data.name (string): Source file name, if available or hashcreation_date (string, ISO 8601): Timestamp indicating when the proof was originally created.confirmed (boolean): Indicates whether the proof has been successfully anchored and confirmed on the Bitcoin blockchain.
confirmation_detail (array)
calendar (string): URL of the calendar (witness) that processed the timestamp.blockHeight (number): Bitcoin block height where the proof was anchored.transaction (string): Transaction ID associated with the proof.merkleRoot (string): Merkle root used in the anchoring process.
confirmed Behavior
- When
confirmedistrue, theconfirmation_detailarray will contain one or more entries with blockchain anchoring information. - When
confirmedisfalse, theconfirmation_detailarray will be empty.
"confirmed": false,
"confirmation_detail": []
Download URLs
file_download_url (string, optional): Pre-signed URL to download the original file.
This field is only included if:- The original file is not hidden, and
- The proof is not of type hash-only
ots_download_url (string): Pre-signed URL to download the OpenTimestamps (.ots) proof file.download_url_expiration_time (number): Time in seconds for which the download URLs remain valid.
Active Development
This API version is available in production and under active development.
Features, response formats, and field names may evolve as improvements are introduced. While we aim to maintain backward compatibility whenever possible, breaking changes may occur.
New updates to this version are being released to production over the coming weeks.
We welcome feedback to help improve the API. Please share any issues, suggestions, or questions with our team at support@simpleproof.com.