Skip to content
gist.link ↗

projects

Query Intelligence API — POST https://intelligence.api.gist.link/graphql

Any org member.

intelligence:query:projects

The calling IAM key must hold this permission (or a wildcard that covers it: intelligence:query:* or intelligence:*) and the access token must have been minted with audience=intelligence. See Permissions.

type Query {
projects(filter: ProjectFilter, sort: SortInput, first: Int, after: String): ProjectConnection!
}
Argument Type Required Description
filter ProjectFilter No —
sort SortInput No —
first Int No —
after String No —

ProjectConnection! — see the Intelligence types reference.

Terminal window
curl https://intelligence.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query Projects($filter: ProjectFilter, $sort: SortInput, $first: Int, $after: String) { projects(filter: $filter, sort: $sort, first: $first, after: $after) { totalCount edges { cursor node { id name created_at updated_at } } } }",
"variables": {
"filter": {
"search": "example",
"archived": true
},
"sort": {
"field": "example",
"direction": "ASC"
},
"first": 10,
"after": "cursor"
}
}
JSON