Github API

Getting access, Developing, Testing

Back to Github

Add an email address for the authenticated user

This endpoint is accessible with the user scope.

Input

type: object properties: data: oneOf: - type: object properties: emails: description: >- 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. type: array example: [] items: type: string example: [email protected] minItems: 1 required: - emails example: emails: - [email protected] - [email protected] - type: array items: type: string example: [email protected] minItems: 1 - type: string title: Data

Output

type: array items: type: object title: Email properties: email: type: string format: email example: [email protected] primary: type: boolean example: true verified: type: boolean example: true visibility: type: string example: public nullable: true