curl -X GET https://api.hitl.sh/v1/loops \ -H "Authorization: Bearer your_api_key_here"
{ "error": false, "msg": "Loops retrieved successfully", "data": { "loops": [ { "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" }, { "user_id": "65f1234567890abcdef12347", "email": "reviewer1@example.com", "status": "active", "joined_at": "2024-03-15T11:45:00Z" }, { "user_id": "65f1234567890abcdef12348", "email": "reviewer2@example.com", "status": "pending", "joined_at": null } ], "member_count": 3, "pending_count": 1, "created_at": "2024-03-15T10:30:00Z", "updated_at": "2024-03-15T11:45:00Z" }, { "id": "65f1234567890abcdef12349", "name": "Document Approval", "description": "Legal review of customer contracts", "icon": "document-check", "creator_id": "65f1234567890abcdef12346", "members": [ { "user_id": "65f1234567890abcdef12346", "email": "creator@example.com", "status": "active", "joined_at": "2024-03-14T09:15:00Z" }, { "user_id": "65f1234567890abcdef12350", "email": "legal@example.com", "status": "active", "joined_at": "2024-03-14T14:30:00Z" } ], "member_count": 2, "pending_count": 0, "created_at": "2024-03-14T09:15:00Z", "updated_at": "2024-03-14T14:30:00Z" } ], "count": 2 } }
Retrieve all loops created by the authenticated user with member counts and status information
Show data
Show loop