Skip to main content
GET
Get accessible queries

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

is_owned
boolean

If true returns only queries that are owned by the requestor. If false returns only queries that have been shared with the requestor. If not provided returns both. Ignored on a request without a token.

tag
string[]

Only return queries with at least one of these tags. Repeat the parameter for several. If any value is empty or longer than 255 characters, the filter is ignored and queries with any tags are returned.

company_id
integer<int64>[]

Only return queries owned by these companies. Repeat the parameter for several. If any value is not a number, the filter is ignored and queries from every company are returned.

q
string

Free text. Results are ranked by how closely each query matches it in meaning, not by exact words.

page
integer

Number of page. Stars from the first (1) page.

per_page
integer

Number of records to return.

Response

OK. per_page defaults to 100.

records
object[]
required

A saved query. is_owned tells the two forms apart: the owning company also sees collaborators and who created and updated the query.

Example:
prev_page
integer<int64> | null
required

The number of the previous page, or null on the first page. Can also refer to the latest existing page if a page beyond the last one was requested.

Example:

1

current_page
integer<int64>
required

The number of requested page.

Example:

1

next_page
integer<int64> | null
required

The number of the next page, or null on the last page.

Example:

42

total_records
integer<int64>
required

Total amount of accessible Access Rules

Example:

15000

total_pages
integer<int64>
required

Total amount of pages.

Example:

10