---
title: "Query the graph"
method: POST
path: "/api/v2/query"
tags: ["queries"]
---

# Query the graph

`POST /api/v2/query`

## Query parameters

- `lang` 'gizmo' | 'graphql' | 'mql' | 'sexp', required

## Response `200`

query succesful

- QueryResult
  - `result` object[], nullable

## Other responses

- `default` — Unexpected error

## Changes

- **2020-01-03** `b6cb6f6f023b` — 1 breaking, 2 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - removed `subschema #1, subschema #2` from the response body `oneOf` list for the response status `200`
  - added the optional property `result` to the response with the `200` status
- **2019-06-28** `67ca0c3823be` — 1 info
  - endpoint added
- **2017-09-01** `b493865d180c` — 1 breaking
  - api removed without deprecation

[Change history](https://skmtc.dev/cayleygraph/apis/cayley-api/changes/api/v2/query/post.md)

---

[API](https://skmtc.dev/cayleygraph/apis/cayley-api.md) · [All operations](https://skmtc.dev/cayleygraph/apis/cayley-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cayleygraph/cayley-api/revisions/97aa3ff2ec7c/schema)
