Zum Inhalt springen
Öffentlich

Check the signatures of a version on the server

öffentlich, ohne SchlüsselSiehe auch:Authentifizierung ·Fehler ·Paginierung ·Ratenlimits
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.

Pfad-Parameter

passportId*string

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

Formatuuid

Query-Parameter

version_no?integer
Bereich1 <= value

Antwort-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
Beispielanfrage
curl -X GET 'https://example.com/api/v1/public/passports/497f6eca-6276-4993-bfeb-53cbbbba6f08/verify'
Beispielantwort
{  "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}