You can read more about how to get the API here
https://docs.mendix.com/developerportal/mendix-profile/#api-key