Feedback Task

Report whether the generated token was accepted by the target site. This helps us improve solve quality and calculate accurate success rates.

POST/feedbackTask

Request Body

ParameterTypeRequiredDescription
clientKeystringYesYour API key
taskIdstringYesTask ID from createTask response
resultobjectYesFeedback result object
result.validbooleanYestrue if token was accepted, false if rejected

Example Request

Token was accepted

terminal
curl -X POST https://api.regotcha.com/feedbackTask \
  -H "Content-Type: application/json" \
  -d '{
    "clientKey": "YOUR_API_KEY",
    "taskId": "task_abc123xyz789",
    "result": {
      "valid": true
    }
  }'

Token was rejected

terminal
curl -X POST https://api.regotcha.com/feedbackTask \
  -H "Content-Type: application/json" \
  -d '{
    "clientKey": "YOUR_API_KEY",
    "taskId": "task_abc123xyz789",
    "result": {
      "valid": false
    }
  }'

Response

Success

success.json
{
  "errorId": 0,
  "message": "Feedback recorded: token valid"
}

Feedback Already Submitted

duplicate.json
{
  "errorId": 1,
  "errorCode": "ERROR_FEEDBACK_EXISTS",
  "errorDescription": "Feedback already submitted for this task"
}

Feedback Window Expired

expired.json
{
  "errorId": 1,
  "errorCode": "ERROR_FEEDBACK_EXPIRED",
  "errorDescription": "Feedback window expired (24h limit)"
}

Error Codes

CodeDescription
ERROR_KEY_DOES_NOT_EXISTInvalid API key
ERROR_INVALID_TASK_DATAMissing or invalid result.valid field
ERROR_NO_SUCH_CAPCHA_IDTask not found or not owned by this API key
ERROR_FEEDBACK_EXISTSFeedback already submitted for this task
ERROR_FEEDBACK_EXPIRED24-hour feedback window has expired

Best Practice: Submit feedback immediately after verifying the token with the target site. This helps us track real-world success rates and improve our solving algorithms.

Note: Feedback must be submitted within 24 hours of task completion. Each task can only receive one feedback submission.

Usage Example (Python)

example.py
import requests

def submit_feedback(api_key: str, task_id: str, token_worked: bool):
    """Submit feedback on whether the token was accepted."""
    response = requests.post(
        "https://api.regotcha.com/feedbackTask",
        json={
            "clientKey": api_key,
            "taskId": task_id,
            "result": {"valid": token_worked}
        }
    )
    return response.json()

# After using the token on your target site:
# - If the token was accepted, call: submit_feedback(api_key, task_id, True)
# - If the token was rejected, call: submit_feedback(api_key, task_id, False)