POST/user/sign-in
ParametersNamePlaceTypeDescriptionRequiredDefaultContent-TypeHeaderStringYesNoneemailBodyStringThe IFX ID's associated email address.YesNonepasswordBodyStringThe IFX ID's associated password.YesNonesilentBodyBooleanWhether to always respond with a 200 OK status code, regardless of the actual response body.NoFalse
Example
1
2
3
4
5
6
7
8
9
10
const response = await fetch('https://api.infinity-fx.com/user/sign-in', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'YOUR_EMAIL',
password: 'YOUR_PASSWORD'
})
});
NameTypeValueDescriptionStatusInt200OKBodyapplication/jsonaccess_tokenStringA JWT that can be used as a Bearer authorization token, which is valid for 10 minutes.refresh_tokenStringA secure token used to refresh expired access tokens, which itself expires on session loss or after 7 days.
Examples1
2
3
4
{
"access_token": "YOUR_ACCESS_TOKEN"
"refresh_token": "YOUR_REFRESH_TOKEN"
}