GET/anagrama/api/reveal
Requires API key
Get the answer for today's puzzle. This is only available after the user has either solved the puzzle or exhausted all attempts.
Request
bash
curl https://api.playanagrama.com/anagrama/api/reveal \
-H "Authorization: Bearer YOUR_TOKEN"Response Fields
| Name | Description |
|---|---|
answer | stringThe correct answer word. |
solved | booleantrue if the user solved it, false if they exhausted all attempts. |
attempts | integerTotal number of attempts made. |
Response 200 — Finished
JSON
{
"answer": "COINS",
"solved": true,
"attempts": 3
}Response 403 — Not Finished
JSON
{
"error": "puzzle_in_progress",
"message": "You still have attempts remaining. Keep guessing!"
}The answer is only revealed once the puzzle session is complete (solved or failed). If the user still has remaining attempts, the server responds with a
403 to prevent premature reveals.Was this page helpful?