{ "opencollection": "1.0.0", "info": { "name": "Metal Authentication OTPs API", "version": "1.0.0" }, "request": { "auth": { "type": "apikey", "key": "X-Auth-Token", "value": "{{X-Auth-Token}}", "placement": "header" } }, "items": [ { "info": { "name": "OTPs", "type": "folder" }, "items": [ { "info": { "name": "Retrieve my recovery codes", "type": "http" }, "http": { "method": "GET", "url": "https://api.equinix.com/metal/v1/user/otp/recovery-codes" }, "docs": "Returns my recovery codes." }, { "info": { "name": "Generate new recovery codes", "type": "http" }, "http": { "method": "POST", "url": "https://api.equinix.com/metal/v1/user/otp/recovery-codes" }, "docs": "Generate a new set of recovery codes." }, { "info": { "name": "Receive an OTP per sms", "type": "http" }, "http": { "method": "POST", "url": "https://api.equinix.com/metal/v1/user/otp/sms/receive" }, "docs": "Sends an OTP to the user's mobile phone." }, { "info": { "name": "Verify user by providing an OTP", "type": "http" }, "http": { "method": "POST", "url": "https://api.equinix.com/metal/v1/user/otp/verify/:otp", "params": [ { "name": "otp", "value": "", "type": "path", "description": "OTP" } ] }, "docs": "It verifies the user once a valid OTP is provided. It gives back a session token, essentially logging in the user." } ] } ], "bundled": true }