---
title: "List the addresses a function has exchanged mail with"
method: GET
path: "/functions/{id}/users"
tags: ["Functions"]
---

# List the addresses a function has exchanged mail with

`GET /functions/{id}/users`

## Request

- Base URL: `https://api.primitive.dev/v1`
- URL: `https://api.primitive.dev/v1/functions/{id}/users`
- Auth: HTTP bearer

Each address that sent mail the function handled or received a reply from it, with inbound and outbound counts and first and last seen times, up to cap entries; truncated is true when there were more.

## Path parameters

- `id` string, uuid, required

## Response `200`

List the addresses a function has exchanged mail with

- object
  - `success` true, required
  - `data` GetFunctionUsersResult, required
    - `users` object[], required
    - `truncated` boolean, required
    - `cap` integer, required

## Other responses

- `401`: Invalid or missing API key
- `403`: Authenticated caller lacks permission for the operation
- `404`: Resource not found
- `429`: Rate limit exceeded. The `ratelimit-*` headers describe the limiter that rejected this request, with its own limit and window, not the API budget that successful responses report. A limiter that reports only a wait sends `Retry-After` alone.

---

[API](https://skmtc.dev/primitive/apis/primitive-api.md) - [All operations](https://skmtc.dev/primitive/apis/primitive-api/llms.txt) - [OpenAPI document](https://skmtc.dev/primitive/apis/primitive-api/revisions/bce409c97acb?raw)
