GraphQL is the advanced, lower-level surface. For most integrations the REST API is simpler and gives you a stable, versioned contract. Reach for GraphQL when you specifically need its flexibility.
Endpoint
| URL | https://api.streamloop.app/graphql |
| Method | POST (application/json) |
| Auth | x-api-key or OAuth bearer — same as REST (see Authentication) |
Making a request
Schema shape
The schema is generated from the data model, so it follows consistent Relay conventions:- Connections for lists —
first/afterarguments and{ totalCount, pageInfo { hasNextPage, endCursor }, edges { node { … } } }results. (The REST API flattens these into{ data, page }.) whereinputs for filtering andorderByfor sorting on list fields.- A
Cursorscalar for pagination positions.
Choosing GraphQL vs REST vs MCP
REST
Stable, versioned, simplest to call. The default choice for scripts and servers.
MCP
For AI agents — the same operations exposed as tools over OAuth.
GraphQL
Maximum control over fields, filtering, and relationships. Advanced clients.