Skip to content
gist.link ↗

realtimeToken

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

Mercure hub URL + subscriber JWT scoped to the caller’s readable topics (their user topic, channels of their teams, their conversations). Re-querty as the token approaches expiry (1h TTL). Authenticated.

teams:query:realtimeToken

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 {
realtimeToken: RealtimeToken!
}

This query takes no arguments.

RealtimeToken! — 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 RealtimeToken { realtimeToken { url token topics } }",
"variables": {}
}
JSON