V4 API · Authenticated beta

A fingerprint in. A receipt out.

The API accepts an exact record fingerprint and a unique request ID. Your application retains the record and materials, then assembles and verifies the complete package.

Authentication

Create an API key in the approved account workspace. Use Authorization: Bearer <API_KEY>. The key is shown once. Store it as a credential and revoke it when no longer required. Browser session cookies and CSRF tokens belong to the cabinet flow, not this Bearer API.

Request issuance once

POST https://api.timelayer-os.com/v1/notarize. Persist request_id, exact record bytes and materials before sending. Generate a new lowercase UUIDv4 for a new operation. action_hex is exactly 64 lowercase hexadecimal characters: SHA-256 of record.json. Replace the example placeholders; do not send text, a file, its name or base64 content.

{
  "request_id": "<new lowercase UUIDv4>",
  "action_hex": "<SHA-256 of exact record.json bytes>"
}

Response and recovery

A confirmed response contains request_id, action_hex, status=confirmed, cert_hex and bundle_hex. An issuance response with HTTP 202 means the outcome is unknown. GET /v1/receipts/<request_id> reads the saved state; its HTTP 200 does not mean status=confirmed. Always inspect the status field.

To check a saved reply after a verification interruption, use POST /v1/receipts/<request_id>/reconcile with JSON {} and the same account Bearer key. This verifies only the reply already stored by the service; it never contacts the issuer or spends another issuance allowance. It returns HTTP 200 for a confirmed or failed state, or 202 while unknown. If the response is missing, incomplete or cannot be verified, retain unknown and contact support with the original request ID.

The confirmed signed pair still needs full ER1 verification after it is combined with the client-held record and materials.

GET /v1/receipts/<request_id>
Authorization: Bearer <API_KEY>

POST /v1/receipts/<request_id>/reconcile
Authorization: Bearer <API_KEY>
Content-Type: application/json

{}

Errors and limits

  • 400: invalid fields, request ID or fingerprint. 401: invalid or missing API key.
  • 403: account or access allowance does not permit the operation. 409: ID conflict or unresolved subject.
  • 413: request body exceeds 16 KiB. 429: rate limit. 503: service unavailable. An explicit issuance="not_started" means this attempt was rejected before dispatch. After correcting authentication, access or rate limits, a manual retry must keep the same request_id and action_hex; an already saved result is returned instead of being issued again. Without this marker, a timeout or missing response is ambiguous: read/reconcile the original request, never blindly repeat issuance.
  • The browser workspace limits statement text to 8192 UTF-8 bytes and an optional file to 10 MiB. These bytes stay on the device. Receipt responses are bounded separately.

Complete the client flow

Retain the request ID even after an error. Check the returned fingerprint against the saved record. Build the package locally and run the matching offline verifier with trusted inputs.