---
title: "XDM API instructions"
canonical: "https://docs.xirgoglobal.com/space/FMSTC/21594899/XDM+API+instructions"
format: markdown
---
To initiate the process, a POST request should be made to  [https://login.xgfleet.com/realms/public/protocol/openid-connect/token](https://login.xgfleet.com/realms/public/protocol/openid-connect/token)

The header in the post should contain `headers_token = {"Content-Type": "application/x-www-form-urlencoded"}`

It is important to determine the ending of auth.xgfleet based on the client's environment:

- For European clients: [https://xdm.xgfleet.eu](https://xdm.xgfleet.eu/)
- For other clients: [https://xdm.xgfleet.com](https://xdm.xgfleet.com/)

The body should include key-value pairs as follows:

- client_id = ….
- client_secret = …..
- grant_type = client_credentials

Please refer to the latest documentation for additional information: