Requests
Cancel Request
Cancel a pending request. Only requests that haven’t been completed can be cancelled.
DELETE
Cancel an active request before it’s completed. This is useful when a request is no longer needed or when you want to modify the request parameters. Only pending requests can be cancelled.Documentation Index
Fetch the complete documentation index at: https://docs.hitl.sh/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
Your API key for authentication
Path Parameters
The unique identifier of the request to cancel
Response
Whether an error occurred
Success message confirming cancellation
Cancellation Rules
What Can Be Cancelled
Pending Requests
Status:
pending- Waiting for reviewer response
- Can be cancelled without impact
What Cannot Be Cancelled
Completed Requests
Status:
completed- Reviewer has submitted response
- Use feedback system instead
- Response data is final
Final Status Requests
Status:
timeout, cancelled- Already in final state
- No further action possible
- Historical record preserved
Impact of Cancellation
On API Usage
Pending Request Cancellation
Pending Request Cancellation
Refund Policy: Usually refunded to API quota
- Request never reached a reviewer
- No processing time invested
- Full refund to your hourly limit
On Reviewers
Minimal Reviewer Impact
Minimal Reviewer Impact
Cancelling pending requests has minimal impact on reviewers:
- Request is removed from their queue
- No wasted reviewer effort
- Keeps the review queue clean
Best Practices
Best Practices
- Cancel requests as soon as you know they’re not needed
- Review request parameters carefully before creating
- Avoid frequent cancellations to maintain workflow efficiency
Cancellation Strategies
Batch Cancellation
Cancel multiple requests efficiently:Smart Cancellation Logic
Implement intelligent cancellation based on request status:Error Handling
Common Error Scenarios
Request Not Found
Request Not Found
- Invalid request ID
- Request doesn’t exist
- Request doesn’t belong to your API key
Cannot Cancel Completed Request
Cannot Cancel Completed Request
Access Denied
Access Denied
Error Recovery
Handle cancellation errors gracefully:Alternative Actions
Instead of Cancelling
Consider these alternatives:Wait for Completion
Wait for Completion
Consider waiting for completion and then providing feedback on the response quality.
Create Refined Request
Create Refined Request
Create a new request with improved parameters rather than cancelling and losing the original request history.
Add Context
Add Context
Some use cases: Add additional context to help reviewers rather than cancelling. (Note: This feature may be added in the future)
Priority Adjustment
Priority Adjustment
Future feature: Adjust request priority instead of cancelling. (This feature may be added in the future)
Best Practices
When to Cancel
- Early Cancellation: Cancel as soon as you know the request is no longer needed
- Batch Processing: If cancelling multiple requests, use batch operations
- Communication: Provide cancellation reasons when possible (future feature)
- Timing: Avoid cancelling requests that are likely to be completed soon
When Not to Cancel
- High Priority: Don’t cancel urgent requests without good reason
- Near Completion: If a request is likely to complete soon, wait instead
- Frequent Pattern: Avoid creating a pattern of frequent cancellations
Next Steps
Create New Request
Create a new request to replace the cancelled one with improved parameters.
Request Feedback
Learn how to provide feedback on completed requests instead of cancelling.
Monitor Requests
Track your request patterns to optimize future request parameters.