---
schema_version: "1"
id: 3af20c668641819842b9984eb0c8ebe0e850de098d53024a2e008d48eea81634
title: Retrieving the Unified Schema and Diagnostic Data
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/datagraph/retrieve-unified-schema.md
canonical_url: https://docs.mulesoft.com/datagraph/retrieve-unified-schema
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 1238523c59ea1b46fc81eef713a274d12ed4db455e5f2b5f7c7b381188c80d47
description: MuleSoft Documentation Site
latest: true
---
---
product: DataGraph
---

# Retrieving the Unified Schema and Diagnostic Data

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

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](https://docs.mulesoft.com/datagraph/permissions).

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](https://docs.mulesoft.com/api-manager/latest/datagraph-viewing-application-contracts) 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:

```copy
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](https://docs.mulesoft.com/datagraph/permissions).

1.  Navigate to the **List of APIs added** page.

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