{"openapi":"3.0.3","info":{"version":"3.0","title":"Login","description":"Authentication API for Verto users.","x-logo":{"url":""}},"paths":{"/users/login":{"x-atlas-login-api":true,"post":{"tags":["Authorization"],"summary":"Login","security":[],"operationId":"users_login","description":"Exchange your clientId and apiKey for a bearer token, then use it to authenticate later Verto API requests.","requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyLoginRq"}],"discriminator":{"propertyName":"mode","mapping":{"apiKey":"#/components/schemas/ApiKeyLoginRq"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyLoginRs"}],"discriminator":{"propertyName":"mode","mapping":{"apiKey":"#/components/schemas/ApiKeyLoginRs"}}},"example":{"userId":1234,"jwt":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXNzaW9uSWQiOiI0NjI1YWVkOC0xMmZmLTIzMmQtZWE0OC0yYWYzMjllMGVjNTEiLCJsb2dpbk1vZGUiOiJhcGlLZXkiLCJpZCI6NTI2LCJjb21wYW55SWQiOjUyNSwicHJvZmlsZUlkIjo1MjYsInVzZXJSZWNvcmRJZCI6MTQ4LCJyb2xlIjoiTk9STUFMX0NMSUVOVCIsInJvbGVOYW1lIjoiTXVsdGkgVXNlciIsInJlZmVyZW5jZSI6IlZVLTI5MTEyMDIyLTE2MS1VMSIsInByb2ZpbGVSZWZlcmVuY2UiOiJWVS0yOTExMjAyMi0xNjEtVTEiLCJjb21wYW55UmVmZXJlbmNlIjoiVlUtMjkxMTIwMjItMTYxIiwiY29tcGFueU5hbWUiOiJIZXlQYXkiLCJyYXRlTGltaXQiOjIwMDAsImlhdCI6MTcyMTEyMDIwNywiZXhwIjoxNzIxMTIzODA3fQ.example-signature-not-valid","companyId":"1234"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401Unauthorized"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"ApiKeyLoginRq":{"type":"object","properties":{"mode":{"$ref":"#/components/schemas/ELoginMode"},"clientId":{"type":"string","description":"A unique 28-digit alpha-numeric identifier assigned to the client generated by the VertoFx portal. To know more, click [Authentication](/docs/authentication-1).","example":"YOUR_CLIENT_ID"},"apiKey":{"type":"string","description":"The key generated to access the API. To know more, click [Authentication](/docs/authentication-1).","example":"YOUR_API_KEY"}}},"ApiKeyLoginRs":{"type":"object","properties":{"userId":{"type":"string"},"companyId":{"type":"string","description":"Indicates the unique identifier assigned to a company within the system."},"jwt":{"type":"string","description":"An authentication token that provides user a secure and standardized way to authentication when consuming other APIs. This `token` value is valid for **60 minutes**. You need to add this value in the header parameter to authenticate other APIs."}}},"Error":{"required":["message","code"],"type":"object","properties":{"message":{"description":"The error message indicating what the issue is","type":"string"},"code":{"description":"The error code","maximum":1000,"minimum":1,"type":"integer"}},"example":{"code":400,"message":"wrong input"}},"401Unauthorized":{"required":["message","success"],"type":"object","properties":{"message":{"description":"The request lacks valid authentication credentials. Please ensure you have the necessary authorization tokens and try again.","type":"string"},"success":{"description":"Success status of api","type":"boolean"}},"example":{"success":false,"message":"Unauthorized"}},"ELoginMode":{"type":"string","description":"Pass the `mode` as `apiKey` for us to know the request comes from an API customer.","example":"apiKey","enum":["apiKey"]},"EOtpMode":{"type":"string","enum":["sms","call","whatsapp","email","totp"]}}},"security":[],"servers":[{"url":"https://api-company-beta.vertofx.com"},{"url":"https://api-company-sandbox.vertofx.com"}]}