---
title: "POST /data/v0/query"
method: POST
path: "/data/v0/query"
tags: ["Query"]
---

# POST /data/v0/query

`POST /data/v0/query`

## Request

- Base URL: `https://instance-tenant.apis.medallia.com`
- URL: `https://instance-tenant.apis.medallia.com/data/v0/query`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{reporting-hostname}/oauth/{company}/token`

Performs a GraphQL-based request

## Request body

- object
  - `query` string, required
  - `variables` object

## Response `200`

The response to the query made, its data shape conforming to the structure requested in the query

- object
  - `data` object
  - `errors` object[]
    - `message` string

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Object not found
- `412`: Precondition failed
- `500`: Internal server error

---

[API](https://skmtc.dev/medallia/apis/query-api.md) - [All operations](https://skmtc.dev/medallia/apis/query-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medallia/apis/query-api/revisions/359d8b732d73?raw)
