# Graph API

Use the Graph API to manage and monitor graph rebuild operations.<br><br> This REST API lets users track the status and progress of graph rebuild processes, including start and end times, as well as whether an operation was aborted.  It provides endpoints for retrieving graph rebuild data with support for pagination and filtering.
{% admonition type="info" name="Note" %}To use graph endpoints, you must either be a superuser or have the necessary permissions granted  to you through [user group policies](https://doc.sitecore.com/ch/en/users/content-hub/user-group-policies.html). {% /admonition %}
## Authentication
To use this API, you need:

- The URL of your Content Hub server. You can get this from your Content Hub
  Administrator. Enter this URL in the <b>{{server}}</b> variable by hovering your mouse 
  over the variable in the <b>Try it</b> pane and then clicking <b>Edit</b>.

- An access token and the client ID. Both are sent with every request. You 
  can create a token through the [Content Hub
  interface](https://doc.sitecore.com/ch/en/users/content-hub/create-an-oauth-client.html) 
  or by [requesting one using the API
  itself](https://doc.sitecore.com/ch/en/developers/cloud-dev/oauth-tokens.html#grant-flows).


Version: v1.0
License: closed source
Metadata:
  - product: Content Hub

## Servers

```
https://{server}
```

Variables:
- `server`
Default: "your-server"

## Security

### OAuth2.0

Type: oauth2

## Download OpenAPI description

[Graph API](https://api-docs.sitecore.com/_bundle/ch/graph-api/index.yaml)

## Graph

The Graph API provides tools for overseeing and controlling graph rebuild activities.

### Retrieve graph rebuild data

 - [GET /api/graph/v1/rebuilds](https://api-docs.sitecore.com/ch/graph-api/graph/graph-rebuild.md): Retrieves a paginated list of graph rebuild data, including total number of rebuilds. All parameters are optional.

