openapi: 3.0.1 info: title: Equinix API Authentication Emails API description: 'Equinix APIs use the OAuth 2.0 for authentication and authorization. Equinix supports the resource owner password and the client credentials flow. To begin, obtain OAuth 2.0 client credentials from the Equinix Developer Console under "My Apps". Then your client application requests an access token from the Equinix API Authorization endpoint, extracts the access_token from the response, and sends the Bearer token to the API that you want to access' termsOfService: https://www.equinix.com/about/legal/terms contact: name: Equinix API Support url: https://docs.equinix.com/api-support.htm version: '1.2' servers: - url: https://api.equinix.com tags: - description: Email Management name: Emails paths: /emails: post: description: Add a new email address to the current user. operationId: createEmail requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateEmailInput' description: Email to create required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/Email' description: created '401': content: application/json: schema: $ref: '#/components/schemas/Error' description: unauthorized '422': content: application/json: schema: $ref: '#/components/schemas/Error' description: unprocessable entity summary: Create an email tags: - Emails /emails/{id}: delete: description: Deletes the email. operationId: deleteEmail parameters: - description: Email UUID in: path name: id required: true schema: format: uuid type: string responses: '204': description: no content '401': content: application/json: schema: $ref: '#/components/schemas/Error' description: unauthorized '403': content: application/json: schema: $ref: '#/components/schemas/Error' description: forbidden '404': content: application/json: schema: $ref: '#/components/schemas/Error' description: not found summary: Delete the email tags: - Emails get: description: Provides one of the user’s emails. operationId: findEmailById parameters: - description: Email UUID in: path name: id required: true schema: format: uuid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/Email' description: ok '401': content: application/json: schema: $ref: '#/components/schemas/Error' description: unauthorized '403': content: application/json: schema: $ref: '#/components/schemas/Error' description: forbidden '404': content: application/json: schema: $ref: '#/components/schemas/Error' description: not found summary: Retrieve an email tags: - Emails put: description: Updates the email. operationId: updateEmail parameters: - description: Email UUID in: path name: id required: true schema: format: uuid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateEmailInput' description: email to update required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/Email' description: ok '401': content: application/json: schema: $ref: '#/components/schemas/Error' description: unauthorized '403': content: application/json: schema: $ref: '#/components/schemas/Error' description: forbidden '404': content: application/json: schema: $ref: '#/components/schemas/Error' description: not found '422': content: application/json: schema: $ref: '#/components/schemas/Error' description: unprocessable entity summary: Update the email tags: - Emails components: schemas: UpdateEmailInput: example: default: true properties: default: type: boolean type: object Email: example: default: true address: address verified: true href: href id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: address: type: string default: type: boolean href: type: string id: format: uuid type: string verified: type: boolean type: object CreateEmailInput: example: address: address properties: address: type: string required: - address type: object Error: description: Error responses are included with 4xx and 5xx HTTP responses from the API service. Either "error" or "errors" will be set. properties: error: description: A description of the error that caused the request to fail. type: string errors: description: A list of errors that contributed to the request failing. items: description: An error message that contributed to the request failing. type: string type: array type: object x-eqx-api-linter-skip-rules: - 3 - 38