Refresh Token
POSThttps://domain/api/id/v1/authentications/fm-refresh-token
Request Model
| Name | Description | Required | Type |
|---|---|---|---|
| GrantType | password or refresh-token | Required | string |
| UserName | string | ||
| RefreshToken | string | ||
| Password | string | ||
| RememberMe | boolean | ||
| RecaptchaToken | string |
Response
| Code | Description |
|---|---|
200 | Success. |
401 | Unauthorized. |
404 | Not Found. |
500 | Error From Server. |
Response Model
| Name | Description | Type |
|---|---|---|
| UserEmail | string | |
| AccessToken | string | |
| ExpiresAt | Date | |
| IsAdmin | boolean | |
| IsBanned | boolean | |
| RefreshTokenExpiration | string | |
| RefreshToken | string | |
| Role | string |
Example Usage
- JavaScript
- .Net
function helloWorld() {
console.log("Hello, world!");
}
def hello_world():
print 'Hello, world!'
Example Success Response
[
{
"id": 133024,
"name": "Mumbai"
},
...
]
Example Error Response
{
"error'": "Unauthorized. You shouldn't be here."
}