---
title: "List pending invitations"
method: GET
path: "/v2/pens/{id}/invites"
tags: ["Collaborators"]
---

# List pending invitations

`GET /v2/pens/{id}/invites`

## Request

- Base URL: `https://api.codepen.io`
- URL: `https://api.codepen.io/v2/pens/{id}/invites`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Invitations sent and not yet accepted.

## Response `200`

The pending invitations.

- CollaboratorInvite[]
  - `created_at` string, date-time, required
  - `email` string, nullable, required
  - `id` string, required
  - `role` 'Owner' | 'Editor' | 'Viewer', required
  - `username` string, nullable, required

## Other responses

- `401`: `UNAUTHENTICATED`: a missing or invalid key, a deleted owner, or a Team key for a Team that is not PRO.
- `404`: `NOT_FOUND`: no such item, or one that is not the key owner's, public or not. A path that is not an endpoint at all answers `404` with the v1 body `{ "error": "not found" }` instead.
- `429`: `RATE_LIMITED`: the owner exceeded the plan's requests in an hour, its reads today, or today's allowance of Pen or Collection creates. No `Retry-After` or rate-limit headers are sent; the body carries `retry_after_seconds`, `limit` and `reset_at`.
- `500`: `INTERNAL`: unexpected, and reported; the message is generic.

---

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