---
title: "Get a list of query tokens"
method: GET
path: "/v1/org/{orgId}/query"
tags: ["query"]
---

# Get a list of query tokens

`GET /v1/org/{orgId}/query`

## Path parameters

- `orgId` string, required

## Query parameters

- `from` string
- `limit` integer
- `returnAccess` string

## Response `200`

successful operation

- ResultsQueryToken
  - `data` QueryToken[], required
    - `id` string, required — globally unique id for query token
    - `token` string, required — globally unique random token string
    - `orgId` string, required — id of org
    - `userId` string, required — id of user
    - `label` string — query details on data that is being synced
    - `type` string, required — query type
    - `path` string — query path (deprecated)
    - `params` object, required — query params
    - `accessCount` integer — total number of uses
    - `createAt` string — created timestamp
    - `expireAt` string — expire timestamp
    - `activeAt` string — last active timestamp
  - `next` string
  - `access` ResultsAccess[]
    - `ids` string[]
    - `allowed` AccessAction[], required
      - `action` string, required
      - `fields` string[]
      - `types` string[]

## Other responses

- `400` — bad request
- `401` — not authorized
- `404` — not found

---

[API](https://skmtc.net/charthop/apis/charthop-api.md) · [All operations](https://skmtc.net/charthop/apis/charthop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/charthop/charthop-api/revisions/2de21f45f447/schema)
