Skip to content
gist.link ↗

conversations

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

DMs and group DMs the caller belongs to, most recent activity first. Authenticated.

teams:query:conversations

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 {
conversations: [Conversation!]!
}

This query takes no arguments.

[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 Conversations { conversations { id title created_at } }",
"variables": {}
}
JSON