---
title: "List Contacts in Group"
full: true
_openapi:
  method: GET
  toc: []
  structuredData:
    headings: []
    contents:
      - content: "List all contacts belonging to a specific group"
_apiData:
  document: "https://reloop.sh/api/contacts/openapi/json"
  operationData: [{"path":"/api/contacts/v1/groups/{group_id}/contacts","method":"get"}]
  parameterList: [{"name":"group_id","type":"string","required":true,"description":"ID of the group","location":"path"},{"name":"page","type":"number","required":false,"description":"","location":"query","defaultValue":1,"minimum":1},{"name":"limit","type":"number","required":false,"description":"","location":"query","defaultValue":100,"minimum":1,"maximum":100},{"name":"search","type":"string","required":false,"description":"Search by email","location":"query"},{"name":"status","type":"\"subscribed\" | \"unsubscribed\" | \"blocked\"","required":false,"description":"","location":"query","enumValues":["subscribed","unsubscribed","blocked"]}]
  responseMap: {"200":{"description":"Response for status 200","schema":{"object":"contact_group","group":{"id":"con_123456789","name":"Newsletter","createdAt":"2026-03-23T10:00:00.000Z","updatedAt":"2026-03-23T10:00:00.000Z","contacts":[{"id":"con_123456789","email":"john.doe@example.com","firstName":"John","lastName":"Doe","status":"subscribed","properties":{"company":"Reloop","role":"Developer"},"createdAt":"2026-03-23T10:00:00Z","updatedAt":"2026-03-23T10:00:00Z"}]},"total":1,"page":0,"limit":0,"event":"evt_123456789"}},"403":{"description":"Response for status 403","schema":{"message":"Unauthorized access","why":"A contact with this email already exists in your organization.","fix":"Use a different email address or update the existing contact instead."}},"404":{"description":"Response for status 404","schema":{"message":"Group not found","why":"A contact with this email already exists in your organization.","fix":"Use a different email address or update the existing contact instead."}}}
  codeSamples:
    - id: node
      lang: javascript
      label: Node.js
      source: |-
        import { Reloop } from "reloop-email";
        
        const reloop = new Reloop({ apiKey: "rl_123456789" });
        
        const { contacts, groupError } = await reloop.contacts.groups.listContacts(
          "grp_123456789",
          { page: 1, limit: 10 },
        );
        
        if (groupError) throw groupError;
        
        console.log(contacts.total, contacts.contacts);
    - id: curl
      lang: bash
      label: cURL
      source: |-
        curl "https://reloop.sh/api/contacts/v1/groups/grp_123456789/contacts?page=1&limit=10" \
          -H "x-api-key: rl_123456789"
    - id: python
      lang: python
      label: Python
      source: |-
        from reloop_email import Reloop
        
        reloop = Reloop(api_key="rl_123456789")
        
        result = reloop.contacts.groups.listContacts("grp_123456789", {
          "page": 1,
          "limit": 10,
        })
        
        if result.group_error:
            raise result.group_error
        
        print(result.contacts["total"], result.contacts["contacts"])
    - id: php
      lang: php
      label: PHP
      source: |-
        <?php
        
        require 'vendor/autoload.php';
        
        use Reloop\Reloop;
        
        $reloop = Reloop::client('rl_123456789');
        
        $contacts = $reloop->contacts->groups->listContacts('grp_123456789', [
            'page' => 1,
            'limit' => 10,
        ]);
        echo $contacts['total'] . ' ' . $contacts['contacts'] . PHP_EOL;
    - id: java
      lang: java
      label: Java
      source: |-
        import sh.reloop.ReloopClient;
        ReloopClient reloop = new ReloopClient("rl_123456789");
        
        ListGroupContactsParams params = new ListGroupContactsParams();
        params.page = 1;
        params.limit = 10;
        var contacts = reloop.contacts.groups.listContacts("grp_123456789", params);
        System.out.println(contacts.total + " " + contacts.contacts);
    - id: dotnet
      lang: csharp
      label: .NET
      source: |-
        using Reloop;
        using Reloop.Models;
        
        var reloop = new ReloopClient("rl_123456789");
        
        await reloop.Contacts.Groups.ListContactsAsync("grp_123456789", new Dictionary<string, object?> { ["page"] = 1, ["limit"] = 10 });
    - id: go
      lang: go
      label: Go
      source: |-
        import reloop "github.com/reloop-labs/reloop-go"
        
        client, _ := reloop.NewClient(reloop.ClientOptions{
            APIKey: "rl_123456789",
        })
        
        _, _ = client.Contacts.Groups.ListContacts("grp_123456789", map[string]interface{"page": 1, "limit": 10})
    - id: rust
      lang: rust
      label: Rust
      source: |-
        use reloop::ReloopClient;
        #[tokio::main]
        async fn main() -> Result<(), Box<dyn std::error::Error>> {
            let reloop = ReloopClient::new("rl_123456789".to_string(), None);
        
            reloop.contacts().groups().list_contacts("grp_123456789", Some(ListContactsParams { page: Some(1), limit: Some(10), ..Default::default() })).await?;
        
            Ok(())
        }
    - id: ruby
      lang: ruby
      label: Ruby
      source: |-
        require "reloop"
        
        reloop = Reloop::Client.new(api_key: "rl_123456789")
        
        reloop.contacts.groups.list_contacts("grp_123456789", page: 1, limit: 10)
    - id: elixir
      lang: elixir
      label: Elixir
      source: |-
        client = Reloop.client("rl_123456789")
        
        {:ok, result} = Reloop.Services.ContactGroups.list_contacts(client, "grp_123456789", %{page: 1, limit: 10})
---
> For the complete documentation index, see [llms-docs.txt](/llms-docs.txt) or the site index [llms.txt](/llms.txt). Full docs corpus: [llms-full-docs.txt](/llms-full-docs.txt). Prefer markdown URLs (append `.md`) for agent consumption. Product skill: [skill.md](/skill.md).


{/* This file was generated by the OpenAPI doc generator. Do not edit this file directly. Run `bun run generate:api-docs` to regenerate. */}

<APIPage />
