curl -X POST https://api.hitl.sh/v1/loops \ -H "Authorization: Bearer your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "name": "Content Moderation Review", "description": "Review user-generated content for community guidelines compliance", "icon": "shield-check" }'
{ "error": false, "msg": "Loop created successfully with QR code", "data": { "loop": { "id": "65f1234567890abcdef12345", "name": "Content Moderation Review", "description": "Review user-generated content for community guidelines compliance", "icon": "shield-check", "creator_id": "65f1234567890abcdef12346", "members": [ { "user_id": "65f1234567890abcdef12346", "email": "creator@example.com", "status": "active", "joined_at": "2024-03-15T10:30:00Z" } ], "member_count": 1, "pending_count": 0, "created_at": "2024-03-15T10:30:00Z", "updated_at": "2024-03-15T10:30:00Z" }, "invite_code": "ABC123DEF", "qr_code_base64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...", "qr_code_url": "https://api.hitl.sh/qr/ABC123DEF.png", "join_url": "https://app.hitl.sh/join/ABC123DEF" } }
Create a new human review loop with automatic creator membership, invite code, QR code, and join URL generation
Show data
Show loop
{ "name": "Content Moderation", "description": "Review flagged posts and comments for policy violations", "icon": "shield-exclamation" }
{ "name": "Contract Review", "description": "Legal review of customer contracts and agreements", "icon": "document-check" }
{ "name": "AI Content QA", "description": "Quality assurance for AI-generated content and responses", "icon": "beaker" }