Getting started Community Training Tutorials Documentation APIs, AI & Tools
curl https://<GRAPH_ENDPOINT>/schema \
-H 'client_id: <YOUR_CLIENT_ID>' \
-H 'client_secret: <YOUR_CLIENT_SECRET>'
You can download a copy of the unified schema from the query editor or by using a third-party API client. You can download diagnostic data from the List of APIs added page in DataGraph.
The schema is downloaded as a .graphql file. Diagnostic data is downloaded as JSON files.
To download the schema from the query editor, you need the consumer, contributor, or admin permission.
Navigate to the query editor.
From the actions menu (…), select Download Schema.
To retrieve a copy of the unified schema, you need the following:
The graph endpoint of your unified schema, which you can obtain from the homepage of Anypoint DataGraph.
The client_id and client_secret values you use to query the unified schema, which you can obtain from the Client Applications page in API Manager.
In the API client of your choice, run a GET request with the following information:
The graph endpoint of the unified schema appended with /schema
Your client_id and client_secret headers
For example, the complete command looks like:
curl https://<GRAPH_ENDPOINT>/schema \
-H 'client_id: <YOUR_CLIENT_ID>' \
-H 'client_secret: <YOUR_CLIENT_SECRET>'
When you download diagnostic data, DataGraph downloads diagnostic data for API sources you’ve added to that environment.
To download Source APIs, you need the contributor or admin permission.
Navigate to the List of APIs added page.
In the right-hand corner of the API list, click … > Download Diagnostic Data.