Community

Ask for a report's proof-of-work challenge

The puzzle an anonymous report pays. Find a nonce such that sha256("<salt>.<nonce>") begins with bits zero bits, then send the challenge string back unchanged with your nonce in the body of POST /v1/community/reports. One challenge is one report, and it expires after expires_in seconds. The Community hands these out itself, so reporting never waits on support being open; it is the same puzzle as POST /v1/support/challenge, at the difficulty our team sets for both. A report sent with a key solves none. A POST rather than a GET because a cached challenge is one salt handed to everybody.

POST
/v1/community/reports/challenge
POST
/v1/community/reports/challenge
Ask for a report's proof-of-work challenge
The puzzle an anonymous report pays.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
Ask for a report's proof-of-work challenge
curl --request POST \
  --url 'https://api.auray.ai/v1/community/reports/challenge' \
  --header 'Authorization: Bearer <api-key>'
  --header 'Content-Type: application/json' \
  --data '{
  
}'
{
  "object": "<string>",
  "challenge": "<string>",
  "salt": "<string>",
  "bits": 123,
  "expires_in": 123,
  "algorithm": "<string>",
  "request_id": "<string>"
}
Ask for a report's proof-of-work challenge
curl -X POST https://api.auray.ai/v1/community/reports/challenge
{
  "object": "<string>",
  "challenge": "<string>",
  "salt": "<string>",
  "bits": 123,
  "expires_in": 123,
  "algorithm": "<string>",
  "request_id": "<string>"
}

Authorizations

No key needed, and none is read: it is the puzzle an anonymous report pays — about the Community or a Code preview. Paced per address, and answered while support is closed.

Response

application/json

OK

objectstringrequired
One of "challenge".
challengestringrequired
Signed. Send it back byte for byte; any change is refused by one comparison.
saltstringrequired
A convenience copy of the field inside challenge; the server reads the signed one.
bitsintegerrequired
Leading zero bits required. Raised during an incident, so read it rather than assuming.
expires_inintegerrequired
Seconds.
algorithmstringrequired
One of "sha256-leading-zero-bits".
request_idstring
Mirrored in the X-Request-Id header.

Headers:

HeaderDescription
RateLimit-LimitBurst capacity for the bucket that answered.
RateLimit-Remaining
RateLimit-ResetSeconds until refill.
X-Request-Id

Was this page helpful?

Ask for a report's proof-of-work challenge
curl -X POST https://api.auray.ai/v1/community/reports/challenge
{
  "object": "<string>",
  "challenge": "<string>",
  "salt": "<string>",
  "bits": 123,
  "expires_in": 123,
  "algorithm": "<string>",
  "request_id": "<string>"
}

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close search.