---
title: "Add an email address for the authenticated user"
method: POST
path: "/user/emails"
tags: ["users"]
---

# Add an email address for the authenticated user

`POST /user/emails`

OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.

## Request body

- union
  - object
    - `emails` string[], required — Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.
  - string[]
  - string

## Response `201`

Response

- Email[]
  - `email` string, email, required
  - `primary` boolean, required
  - `verified` boolean, required
  - `visibility` string, nullable, required

## Other responses

- `304` — Not modified
- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.

---

[API](https://skmtc.net/github/apis/api-github-com.md) · [All operations](https://skmtc.net/github/apis/api-github-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/api-github-com/revisions/a367f7028301/schema)
