Authentication

mpathic credentials are provided via the OAuth2.0 Client Credentials flow. To make any authenticated calls you will need an MPATHIC-ID, CLIENT_ID and CLIENT_SECRET. Please reach out to the customer success team to obtain your unique combination.

After receiving all of the above information you can make the following request:

POST /v1/token HTTP/1.1
Host: example.com
mpathic-id: <<MPATHIC-ID>>
mpathic-profile: <<MPATHIC-PROFILE>>
Content-Type: application/json

{
  "grant_type": "client_credentials",
  "client_id": "<<CLIENT_ID>>",
  "client_secret": "<<CLIENT_SECRET>>"
}

Try it via our API Reference or paste the above into any http request

The ACCESS_TOKEN returned should be used to make any authenticated calls by passing it into the Authorization header:

Authorization: Bearer ACCESS_TOKEN

Authentication should only be done over HTTPS (SSL)