Monta Public API
MONTA Public API

Authentication

Authentication related endpoints


Obtain information about current application

GET
https://public-api.monta.com
/api/v1/auth/me

Obtain information about current application › Responses

Successfully retrieved current consumer

id
​integer · int64 · required
userId
​integer · int64 · required
name
​string · required
clientId
​string · required
scopes
​AuthScope[] · required
Enum values:
all
charge-points
charge-transactions
control-charging
clientSecret
​string | null
createdAt
​string | null · date-time
updatedAt
​string | null · date-time

Obtain your `accessToken` with a `refreshToken`

POST
https://public-api.monta.com
/api/v1/auth/refresh

Obtain your `accessToken` with a `refreshToken` › Request Body

refreshToken
​string · required

Obtain your `accessToken` with a `refreshToken` › Responses

Successfully refreshed access token

accessToken
​string · required

User access token, required to manage applications.

Example: 5a6d4da1-6af3-420b-9c15-6ecb5f6de199
accessTokenExpirationDate
​string · date-time · required

Expiration date of access token (1 hour)

Example: 2022-05-11T07:03:04.675035Z
refreshToken
​string · required

Refresh token, required to get a new access token.

Example: 83b766d4-476e-4dd1-b11e-f57e856c890d
refreshTokenExpirationDate
​string · date-time · required

Expiration date of refresh token (30 days)

Example: 2023-05-12T07:03:04.675055Z
applicationId
​integer · int64

ID of application linked to this access token.

Example: 42
userId
​integer · int64

ID of user linked to this access token.

Example: 42

Obtain your `accessToken`

POST
https://public-api.monta.com
/api/v1/auth/token

Obtain your `accessToken` › Request Body

clientId
​string · required
clientSecret
​string · required

Obtain your `accessToken` › Responses

Successfully created access token

accessToken
​string · required

User access token, required to manage applications.

Example: 5a6d4da1-6af3-420b-9c15-6ecb5f6de199
accessTokenExpirationDate
​string · date-time · required

Expiration date of access token (1 hour)

Example: 2022-05-11T07:03:04.675035Z
refreshToken
​string · required

Refresh token, required to get a new access token.

Example: 83b766d4-476e-4dd1-b11e-f57e856c890d
refreshTokenExpirationDate
​string · date-time · required

Expiration date of refresh token (30 days)

Example: 2023-05-12T07:03:04.675055Z
applicationId
​integer · int64

ID of application linked to this access token.

Example: 42
userId
​integer · int64

ID of user linked to this access token.

Example: 42