Monta
Monta API

Authentication


deprecated

Obtain information about current API Consumer

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

Deprecated, will be removed by 01.04.24, use /api/v1/consumers/me instead.

Obtain information about current API Consumer › Responses

Successfully retrieved current consumer

name
​string · required

A name for this credential (e.g. Monta Team A)

Example: Monta Team A
operatorIds
​integer[] · required

List of operator ids that are authorized for API operations. If empty, all child operators of this operator are authorized.

teamIds
​integer[] · required

List of team ids that are authorized for API operations. If empty, all teams of this operator are authorized.

clientId
​string · required

Your client id

Example: 2cae3a14-3dfd-414b-8965-7814370ec324
scopes
​string[] · required

List of scopes for this account

Enum values:
all
charge-points
map
charge-transactions
wallet-transactions
control-charging
createdAt
​string · date-time · required

Creation date of this consumer

Example: 2022-05-12T15:56:45.99Z
operatorId
​integer · int64

Your operator id

Example: 42
rateLimit
​integer · int64

Rate-limit for your account; requests per rateLimitIntervalInSeconds

Example: 1000
rateLimitIntervalInSeconds
​integer · int64

Rate-limit interval for your rateLimit

Example: 600
updatedAt
​string | null · date-time

Update date of this consumer

Example: 2022-05-12T16:56:45.99Z

Obtain your `accessToken` with a `refreshToken`

POST
https://partner-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

Access token, required to interact with our endpoints.

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

Refresh token, required to get a new access token.

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

Expiration date of access token (1 hour)

Example: 2022-05-11T07:03:04.675035Z
refreshTokenExpirationDate
​string · date-time · required

Expiration date of refresh token (24 hours)

Example: 2023-05-12T07:03:04.675055Z

Obtain your `accessToken`

POST
https://partner-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

Access token, required to interact with our endpoints.

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

Refresh token, required to get a new access token.

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

Expiration date of access token (1 hour)

Example: 2022-05-11T07:03:04.675035Z
refreshTokenExpirationDate
​string · date-time · required

Expiration date of refresh token (24 hours)

Example: 2023-05-12T07:03:04.675055Z