Skip to main content

Get an OAuth2 bearer token

POST 

/token

MGP uses OpenID Connect and the majority of MGP API calls require Bearer Token authentication. This example shows a basic Oauth 2 password flow call that can be used to acquire an access token that then can be sent in the Bearer Token parameter. This endpoint can be used for other Oauth flows such as refresh-token but those calls are not demonstrated here.

Request

Body

    client_id stringrequired

    Possible values: [mgp]

    grant_type stringrequired

    Possible values: [password]

    username stringrequired
    password stringrequired

Responses

OK

Schema
  • object
Loading...