---
title: "Get parsed-query import state"
method: GET
path: "/v1/integrations/{integrationId}/parsed-queries/import"
tags: ["Integrations"]
---

# Get parsed-query import state

`GET /v1/integrations/{integrationId}/parsed-queries/import`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/integrations/{integrationId}/parsed-queries/import`
- Auth: one of:
  - API key in header `GREPR-API-KEY`
  - OpenID Connect (`https://grepr-prod.us.auth0.com/.well-known/openid-configuration`)

Says whether this vendor's parsed queries can be imported, whether the credential the import needs is saved, whether an import is already under way, and which integrations an import covers. Poll this while an import is running; what it imported is reported in the integration's activity log.

## Path parameters

- `integrationId` string, required

## Response `200`

State retrieved

- ParsedQueryImportStatus
  - `coveredIntegrationIds` string[], required: Every integration an import updates. Integrations that share a vendor account share one fetch, so importing for one imports for all of them.
  - `hasCredential` boolean, required: Whether the credential the import needs is saved. For Datadog this is the application key.
  - `importing` boolean, required: Whether an import covering this integration is already under way.
  - `supported` boolean, required: Whether this vendor's parsed queries can be imported at all. False for vendors Grepr cannot read alert queries from.

## Other responses

- `401`: Unauthorized
- `404`: Not Found - Integration not found.

---

[API](https://skmtc.dev/grepr/apis/grepr-api.md) - [All operations](https://skmtc.dev/grepr/apis/grepr-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grepr/apis/grepr-api/revisions/2a5ce03a0bf0?raw)
