Skip to main content
AppSignal provides a GraphQL API that allows you to programmatically query your application data. On this page, you’ll find query examples to help you get started. For write operations, see the mutation examples page. Read the GraphQL API page for more information about the GraphQL endpoint and authentication.
The GraphQL API does not return traces. It manages models such as apps, incidents, dashboards, and alerts. Read traces with the REST API (V2), such as listing traces.Reading metrics and logs through the GraphQL API is deprecated. Use metrics and log search in the REST API (V2) instead. The GraphQL API cannot search log lines. The metric examples on this page remain for existing integrations.

Fetch deployments

Query

Query variables

Fetch incidents for a deploy

Query

Query variables

The following examples use the legacy GraphQL metrics API and remain here for existing integrations.

Fetch error count

This example uses the deprecated GraphQL metrics API. For new integrations, use the REST metrics list endpoint instead.

Query

Query variables

Fetch mean (timeseries)

This example uses the deprecated GraphQL metrics API. For new integrations, use the REST metrics timeseries endpoint instead.

Query

Query variables

Fetch mean (aggregated)

This example uses the deprecated GraphQL metrics API. For new integrations, use the REST metrics list endpoint instead.

Query

Query variables

Fetch an incident

Query

Query variables

Fetch uptime monitors and their alerts

Query

Query variables

Fetch uptime monitor status

This example uses the deprecated GraphQL metrics API. For new integrations, use the REST metrics timeseries endpoint instead.

Query

Query variables