> ## 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.

# Get User Loops

> Retrieve all loops created by the authenticated user with member counts and status information

Get a list of all loops you have created. This endpoint returns comprehensive information about each loop including member statistics and current status.

## Authentication

**Authorization** `string` *required*

Your API key for authentication

## Response

**error** `boolean`

Whether an error occurred

**msg** `string`

Success message

**data** `object`

**data**

**loops** `array`

Array of loop objects

**loop**

**id** `string`

Unique identifier for the loop

**name** `string`

Name of the loop

**description** `string`

Description of the loop

**icon** `string`

Icon identifier

**creator\_id** `string`

ID of the loop creator

**members** `array`

Array of loop members with status

**member\_count** `integer`

Total number of members in the loop

**pending\_count** `integer`

Number of pending member invitations

**created\_at** `string`

ISO timestamp of creation

**updated\_at** `string`

ISO timestamp of last update

**count** `integer`

Total number of loops returned

```bash cURL theme={null}
curl -X GET https://api.hitl.sh/v1/api/loops \
  -H "Authorization: Bearer your_api_key_here"
```

```python Python theme={null}
import requests

url = "https://api.hitl.sh/v1/api/loops"
headers = {
    "Authorization": "Bearer your_api_key_here"
}

response = requests.get(url, headers=headers)
print(response.json())
```

```javascript Node.js theme={null}
const axios = require('axios');

const response = await axios.get('https://api.hitl.sh/v1/api/loops', {
  headers: {
    'Authorization': 'Bearer your_api_key_here'
  }
});

console.log(response.data);
```

```json Response theme={null}
{
  "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
  }
}
```

## Understanding Loop Status

### Member Status Types

> [card] Active Members
>
> Users who have joined the loop and can receive review requests.

> [card] Pending Members
>
> Users who have been invited but haven't joined the loop yet.

### Loop Information

Each loop provides:

* **Member statistics** to understand team capacity
* **Creation and update timestamps** for tracking
* **Complete member list** with join status
* **Creator information** for ownership

## Filtering and Management

Use this endpoint to:

* **Monitor loop health** by checking member counts
* **Identify inactive loops** with no recent updates
* **Track team growth** through member statistics
* **Manage loop portfolios** across different use cases

## Next Steps

> [card] [Get Specific Loop](https://docs.hitl.sh/api-reference/loops/get-loop.md)
>
> Retrieve detailed information about a specific loop by ID.

> [card] [Update Loop](https://docs.hitl.sh/api-reference/loops/update-loop.md)
>
> Modify loop details like name, description, or icon.

> [card] [View Loop Members](https://docs.hitl.sh/api-reference/loops/loop-members.md)
>
> Get detailed member information and manage loop membership.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.