Skip to content
gist.link ↗

conversation

Query Teams API — POST https://teams.api.gist.link/graphql

A single conversation by id. Members only (non-members get NOT_FOUND).

teams:query:conversation

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

type Query {
conversation(id: Int!): Conversation
}
Argument Type Required Description
id Int! Yes —

Conversation — see the Teams types reference.

Terminal window
curl https://teams.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query Conversation($id: Int!) { conversation(id: $id) { id title created_at } }",
"variables": {
"id": 10
}
}
JSON