> For the complete documentation index, see [llms.txt](https://developers.rewardful.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.rewardful.com/rest-api/referrals/list.md).

# List referrals

Returns a list of your referrals. The referrals are returned sorted by creation date, with the most recent referrals appearing first.

## Request

| Method | URL                                         |
| ------ | ------------------------------------------- |
| `GET`  | `https://api.getrewardful.com/v1/referrals` |

### Optional

| Parameter            | Description                                                                                                                                                                                                                                         |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `affiliate_id`       | Show referrals for the specified affiliate.                                                                                                                                                                                                         |
| `conversion_state`   | Show referrals that are currently in the specified [conversion state(s)](https://developers.getrewardful.com/rest-api/referrals/object#conversion-states). Pass `conversion_state[]` to specify multiple conversion states.                         |
| `email`              | Show referrals with the specified email address.                                                                                                                                                                                                    |
| `stripe_customer_id` | Show referrals with the specified Stripe customer ID.                                                                                                                                                                                               |
| `page`               | [Pagination](https://developers.getrewardful.com/rest-api/overview#pagination) cursor specifying which page to fetch.                                                                                                                               |
| `limit`              | How many results to return per page. Default is 25, maximum is 100.                                                                                                                                                                                 |
| `expand`             | Which object(s) to [expand](https://developers.getrewardful.com/rest-api/overview#expanding-objects) in response data. See below for available objects.                                                                                             |
| `updated_until`      | <p>Show only referrals updated before the requested timestamp formatted as <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO 8601</a>.</p><p>Use alone or with <code>updated\_since</code> to fetch referrals within a specified time range.</p> |
| `updated_since`      | <p>Show only referrals updated after the requested timestamp formatted as <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO 8601</a>.</p><p>Use alone or with <code>updated\_until</code> to fetch referrals within a specified time range.</p>  |

### Expandable objects

| Parameter   | Description                                                                                                            |
| ----------- | ---------------------------------------------------------------------------------------------------------------------- |
| `affiliate` | Includes the full [affiliate object](/rest-api/affiliates/object.md) as a nested object for each referral in the list. |

### Examples

#### List all referrals

```bash
curl --request GET \
  --url https://api.getrewardful.com/v1/referrals \
  -u YOUR_API_SECRET:
```

#### List all referrals and include nested affiliate object

```bash
curl --request GET \
  --url https://api.getrewardful.com/v1/referrals?expand[]=affiliate \
  -u YOUR_API_SECRET:
```

#### List referrals for a specific affiliate

```bash
curl --request GET \
  --url https://api.getrewardful.com/v1/referrals?affiliate_id=b533bfca-7c70-4dec-9691-e136a8d9a26c \
  -u YOUR_API_SECRET:
```

#### List referrals with a "lead" conversion state

```bash
curl --request GET \
  --url https://api.getrewardful.com/v1/referrals?conversion_state=lead \
  -u YOUR_API_SECRET:
```

#### List referrals with a "lead" or "conversion" conversion state

```bash
curl --request GET \
  --url https://api.getrewardful.com/v1/referrals?conversion_state[]=lead&conversion_state[]=conversion \
  -u YOUR_API_SECRET:
```

#### List referrals updated before a specific timestamp

```bash
curl --request GET \
  --url https://api.getrewardful.com/v1/referrals?updated_until=2024-12-04T13:02:57+02:00 \
  -u YOUR_API_SECRET:
```

#### List referrals updated after a specific timestamp

```bash
curl --request GET \
  --url https://api.getrewardful.com/v1/referrals?updated_since=2024-12-04T13:02:57+02:00 \
  -u YOUR_API_SECRET:
```

#### Pagination: request page 3 with 50 results per page

```bash
curl --request GET \
  --url https://api.getrewardful.com/v1/referrals?page=3&limit=50
  -u YOUR_API_SECRET:
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.rewardful.com/rest-api/referrals/list.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
