Log in to get all the resources and attributes. When you log in all the examples will be fully working with pre filled tokens.

Login

You can can login to Movenium API with endpoint POST /login.






Get access token

Login with your username and password in order to get access token. With access token you will be able to retrieve all resources.

Attributes

grant_type Possible values: password
username
password
client_id Possible values: openapi

POST /login

curl node

curl --request POST 'https://api.movenium.com/login' \
    --form 'grant_type=password' 
    --form 'username=<username>' \
    --form 'password=<password>' \
    --form 'client_id=openapi'

Response

{
    "access_token": "<access_token>",
    "expires_in": 3600,
    "refresh_token": "<refresh_token>",
    "token_type": "Bearer",
    "scope": null,
    "user_id": "<logged in users id>"
}






Refresh token

When token has been expired you need to fetch a new one with refresh token.
Attributes

grant_type Possible values: refresh_token
refresh_token
client_id Possible values: openapi

POST /login

curl node

curl --location --request POST 'https://api.movenium.com/login' \
    --form 'grant_type=refresh_token' \
    --form 'refresh_token=<refresh_token>' \
    --form 'client_id=openapi'

Response

{
    "access_token": "<access_token>",
    "expires_in": 3600,
    "refresh_token": "<refresh_token>",
    "token_type": "Bearer",
    "scope": null,
    "user_id": "<logged in users id>"
}