Using the GraphQL API

In MEX 16, it is possible to GraphQL API. This is an extra paid service that will allow you to query or manipulate the data on your MEX site, along with allowing it to connect to reporting services such as PowerBI or build integrations.


To use the GraphQL API, you will first need to generate an API Key. This can be done by navigating to Settings > Users > Select the user you wish to create an API Key for > Select Generate new MEX GraphQL API Key. Once this has been done, it is possible to reveal or copy the API Key.

 

In the event you would like to revoke a GraphQL API Key, simply navigate to the User again and select the Revoke Key button.


Using the GraphQL API:

Download the page or copy the URL here (Postman Collection Examples), and Import into Postman.

Importing into Postman can be done by viewing a Workspace > Select Import and either selecting the downloaded 'MEX 16 GraphQL API.postman_collection.json' file, drag and dropping the file, or pasting the linked URL.

 

 

This documentation will then provide some guidance on use along with some examples to utilise, ensuring the key variables are set:

baseUrl : base Mex url /graphql, e.g. https://companyname.mexcmms.com/graphql

apiKey : Use header "X-API-KEY" and your API key obtained from user details.

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more
Register for MEX Public Training
MEX Public Training courses are currently being run online, click here to book your spot today.
Our support team hours:
7:30am - 5:00pm AEST Monday to Friday
MEX System Health Check
Have an experienced MEX consultant review your MEX setup and make recommendations to optimize your system.