Contact Us 1-800-596-4880

Retrieving the Unified Schema and Diagnostic Data

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.

Download the Unified Schema from the Query Editor

To download the schema from the query editor, you need the consumer, contributor, or admin permission.

  1. Navigate to the query editor.

  2. From the actions menu (…​), select Download Schema.

Retrieve the Unified Schema Using an API Client

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>'

Download Diagnostic Data

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.

  1. Navigate to the List of APIs added page.

  2. In the right-hand corner of the API list, click …​ > Download Diagnostic Data.