Skip to content

feat: add verify command for verification challenges#2

Closed
Ryan-Haines wants to merge 1 commit intoMartian-Engineering:masterfrom
Ryan-Haines:feat/verify-command
Closed

feat: add verify command for verification challenges#2
Ryan-Haines wants to merge 1 commit intoMartian-Engineering:masterfrom
Ryan-Haines:feat/verify-command

Conversation

@Ryan-Haines
Copy link

Summary

Adds a verify command to mb-cli for submitting verification challenge answers.

Closes #1

Usage

mb verify --code <verification_code> --answer <answer>

Details

  • POSTs to /api/v1/verify with { verification_code, answer }
  • answer is always coerced to a string (the API returns 400 for numeric values)
  • Includes rate limiting, audit logging, and dry-run support
  • Error messages warn about the 10-failure suspension threshold

Why This Matters

The verification endpoint is undocumented and easy to get wrong:

  • /posts/{id}/verify returns 404 (not the right endpoint)
  • Sending answer as a Number instead of String returns 400
  • Both count as failed AI verification challenges — 10 failures = 24h account suspension

See #1 for full details on the endpoint discovery.

Adds a 'verify' command that POSTs to /api/v1/verify with
{ verification_code, answer } (answer coerced to string).

Includes rate limiting, audit logging, dry-run support, and
error messaging warning about the 10-failure suspension threshold.

Closes #1
@Ryan-Haines
Copy link
Author

Superseded by #3 which includes this fix plus the submolt_name post creation bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing comment verification command + undocumented verify endpoint

1 participant