Constructing the HTTP POST Request

Note: IT Visibility is being upgraded with the introduction of Technology Intelligence Platform beginning in September 2024. Flexera will contact you directly regarding the timeframe of your upgrade. If you have already been upgraded to Technology Intelligence Platform, information in this section is applicable to you.

After creating the GraphQL query, you must send that request to the server using an HTTP POST request.

POST URL

When making an HTTP POST request, you must specify the URL of the server endpoint to which you are sending the request.

https://api.flexera.com/graphql/v1/orgs/{Org_ID}/graphql

Replace {Org_ID} with your organization’s Org ID. Also remember to use the domain appropriate for the Flexera One region in which your organization is hosted: api.flexera.com for North America, api.flexera.eu for the EU, and api.flexera.au for APAC.

JSON Payload

The JSON payload is to be included in the body of the POST request. For example:

{
  "query": "query MyOperation($limit: Int) { devices(limit: $limit) { id name } }",
  "operationName": "MyOperation",
  "variables": { "limit": "10" }
}

Note:In the JSON payload:

operationName is optional.
variables is required, if used in the query (for example, $limit).

For more information on constructing the POST request, see POST request on the GraphQL site.

Output Format

By default the output for GraphQL is in the JSON format. However, graphqldb supports the Accept HTTP header for the following formats:

application/json 
application/jsonl 
text/csv 

Additionally, the output can be compressed by setting the Accept-Encoding HTTP header to gzip.