Skip to content
Public

Check the signatures of a version on the server

public, no keySee also:Authentication ·Errors ·Pagination ·Rate limits
GET
/public/passports/{passportId}/verify

No authentication. A convenience: the same check works offline with the public JSON and /.well-known/batterypass/keys.json (ADR-004, ADR-013). Without version_no, the current version.

Path Parameters

passportId*string

The UUID of the passport identifier urn:dpp:{uuid}.

Formatuuid

Query Parameters

version_no?integer
Range1 <= value

Response Body

The result.

application/json
  1. response
checked_at*string
Formatdate-time
key_id*string
public_document_valid*boolean
signed_at*string
Formatdate-time
snapshot_valid*boolean
valid*boolean

Both signatures verify and both hashes match the stored documents.

version_no*integer
Example Request
curl -X GET 'https://example.com/api/v1/public/passports/497f6eca-6276-4993-bfeb-53cbbbba6f08/verify'
Example Response
{  "checked_at": "2019-08-24T14:15:22Z",  "key_id": "string",  "public_document_valid": true,  "signed_at": "2019-08-24T14:15:22Z",  "snapshot_valid": true,  "valid": true,  "version_no": 0}