---
title: "Import an integration's parsed queries now"
method: POST
path: "/v1/integrations/{integrationId}/parsed-queries/import"
tags: ["Integrations"]
---

# Import an integration's parsed queries now

`POST /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`)

Reads the integration's alert, monitor and dashboard queries from its vendor without waiting for the hourly import. One fetch is shared by every integration in the organization using the same vendor account, so this updates all of them. If an import is already under way this joins it rather than starting another. The import runs in the background; its result appears in the integration's activity log.

## Path parameters

- `integrationId` string, required

## Response `200`

Import started, or already under way

- 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.
- `409`: Conflict - This vendor has no parsed queries to import, or the integration has no application key saved.

---

[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)
