openapi: 3.2.0 info: contact: email: support@equinixmetal.com name: Equinix Metal API Team description: '# Introduction Equinix Metal provides a RESTful HTTP API which can be reached at .' license: name: Equinix Metal url: https://metal.equinix.com/legal/ termsOfService: https://metal.equinix.com/legal/ title: Metal Two Factor Auth API version: 1.0.0 servers: - url: https://api.equinix.com/metal/v1 security: - x_auth_token: [] tags: - description: Two Factor Authentication Management. Check out the product docs to learn more about 2FA. externalDocs: url: https://metal.equinix.com/developers/docs/accounts/two-factor-authentication/ name: Two Factor Auth paths: /user/otp/app: delete: description: Disables two factor authentication. operationId: disableTfaApp responses: '204': description: no content '401': content: application/json: schema: $ref: '#/components/schemas/Error' description: unauthorized '404': content: application/json: schema: $ref: '#/components/schemas/Error' description: not found summary: Disable two factor authentication tags: - Two Factor Auth post: description: Enables two factor authentication using authenticator app. operationId: enableTfaApp responses: '200': description: ok '401': content: application/json: schema: $ref: '#/components/schemas/Error' description: unauthorized summary: Enable two factor auth using app tags: - Two Factor Auth /user/otp/sms: delete: description: Disables two factor authentication. operationId: disableTfaSms responses: '204': description: no content '401': content: application/json: schema: $ref: '#/components/schemas/Error' description: unauthorized '404': content: application/json: schema: $ref: '#/components/schemas/Error' description: not found summary: Disable two factor authentication tags: - Two Factor Auth post: description: Enables two factor authentication with sms. operationId: enableTfaSms responses: '200': description: ok '401': content: application/json: schema: $ref: '#/components/schemas/Error' description: unauthorized summary: Enable two factor auth using sms tags: - Two Factor Auth components: schemas: 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 securitySchemes: x_auth_token: description: 'HTTP header containing the User or Project API key that will be used to authenticate the request. ' in: header name: X-Auth-Token type: apiKey x-displayName: X-Auth-Token x-tagGroups: - name: Accounts and Organization tags: - Authentication - Emails - Invitations - Memberships - Organizations - OTPs - PasswordResetTokens - PaymentMethods - Projects - SSHKeys - SupportRequest - TransferRequests - TwoFactorAuth - Users - UserVerificationTokens - name: Services and Billing tags: - Events - Facilities - Incidents - Invoices - Licenses - Metros - Plans - Usages - name: Servers tags: - Devices - Batches - Capacity - HardwareReservations - OperatingSystems - Ports - SelfServiceReservations - SpotMarket - Userdata - Volumes - name: Networking tags: - BGP - Interconnections - IPAddresses - MetalGateways - VLANs - VRFs