Get your API keys
Sign up at futuur.com and generate your keys from your account settings. You receive two keys:- Public key — included in every request as the
Keyheader. Safe to log. - Private key — used to sign requests. Never share or log this value.
Required headers
Every authenticated request must include these three headers:Signing process
1
Collect parameters to sign
Gather all request parameters — query string parameters for GET requests, body parameters for POST requests — plus
Key (your public key) and Timestamp (current Unix timestamp as an integer).2
Sort alphabetically by key name
Sort all parameters (including
Key and Timestamp) alphabetically by their key name. For example: Key, Timestamp, category sorts to Key, Timestamp, category — but if you have amount, it would come before Key.3
URL-encode the sorted parameters
Join the sorted key-value pairs as a URL-encoded query string, for example:
4
Sign with your private key
Compute an HMAC-SHA512 digest using your private key as the secret and the URL-encoded string as the message. Use the hex digest (not base64).
5
Add headers to your request
Include
Key, Timestamp, and HMAC as request headers. Do not include the parameters again in the query string separately — they are already encoded in the signature.Code examples
GET vs. POST requests
- GET requests: include all query string parameters in the parameter set you sign (in addition to
KeyandTimestamp). - POST requests: include all body parameters in the parameter set you sign. Do not mix query and body parameters.