Skip to main content

Login

How to get your api key

Url of the environments

Access the platform through one of the available environments.

  1. Go to the Configuration > Access Control section
  2. Select your user, or create a new one
  3. Navigate to the bottom of the page, in the section Integration via User API
  4. Create or copy your api key to get started

How to get the JWT

Caution

Use the JWT for testing with postman, curls, and other tools.

JWT generation depends on authenticator code made dynamically

JWT is valid for five minutes.

Url of the environments

endpoint /auth/login, use the payload below.

Payload for request
{
"email":"exemple@wepayout.com.br",
"password":"exemple",
"digits":"000000"// authenticator code
}
Response
{
"token": "alnjsbdklbjafsjabnsf",
"refreshToken": "alnjsaosfafsiouasfbiopuab",
"twoFactorRequired": false
}

Samples

var axios = require('axios');
var data = JSON.stringify({
"email": "exemple@wepayout.com.br",
"password": "exemple",
"digits": "000000"
});

var config = {
method: 'post',
url: 'https://api.sandbox.wepayout.com.br/auth/login',
headers: {
'Content-Type': 'application/json'
},
data : data
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
}