1. Generate random integers
curl "https://api.provable.io/api/ints?clientSeed=my-app&count=5&min=1&max=100"The response includes an outcome array, your clientSeed, the serverHash, and the cursor/nonce needed for verification later.
A trimmed response looks like this:
{
"outcome": [7, 42, 13, 88, 1],
"clientSeed": "my-app",
"serverHash": "9f86d081884c7d65...",
"cursor": 0,
"nonce": 0
}outcome— the random values you asked for.serverHash— a SHA-256 commitment to the server seed; store it to verify the draw later.cursor/nonce— the position in the seed stream, needed to reproduce this exact draw.
2. Generate random floats
curl "https://api.provable.io/api/floats?clientSeed=my-app&count=3"Each value is a cryptographically derived number between 0 and 1.
3. Verify an outcome
Pick a serverHash from a previous response and check it:
curl "https://api.provable.io/api/verifyServerHash?clientSeed=my-app&serverHash=YOUR_HASH"A response of true means the hash matches our records for that client seed.
4. Raise the limit with an API key
Anonymous calls are capped at 10 draws a minute and 100 a day per IP. A free account gets an API key and 10,000 draws a day — send it as an x-api-key header:
curl -H "x-api-key: $PROVABLE_API_KEY" "https://api.provable.io/api/ints?clientSeed=my-app&count=5&min=1&max=100"