Response signature
Last updated
Was this helpful?
Last updated
Was this helpful?
The API can generate tokens instead of JSON responses.
This may be useful if you or one of your clients needs to assert
the data's origin,
which request was used exactly,
the timestamp the request was executed at.
To get a signed response, add the following query parameter to your request:
As any JWS, the structure is header.payload.signature
, where
header
is a base64-encoded JSON with information about the signature process (see ),
payload
is a base64-encoded JSON with the following structure:
signature
is a base64-encoded bytes section.
Get the key_url
in the header,
Check if the deprecated
field is null
,
Use the public_key
field to check the signature using your favorite JWS library.
The list of past and present keys can be obtained at
id
Number
ID of the key.
public_key
String
PEM of the public key.
deprecated
DateTime or null
If set, this key is deprecated and any signature using it should not be trusted.
Fetch the key (see ),