About GraphQL
- Start here
- Request shape
- Example queries
- Hub-specific boundaries
- Core concepts you will see in the schema
Start here
Http
1https://api.cloud.luxonis.com/graphqlPOST with:Content-Type: application/jsonAuthorization: Bearer <your_api_key>
team { ... } surface and keep Hub API keys in your backend only. See API Keys if you have not set up authentication yet.Request shape
- Operation definition such as
queryormutation, plus an operation name and optional variable definitions. - Selection set that lists the exact fields you want back.
- Variables object sent as JSON alongside the query so values stay separate from the document.
- HTTP transport envelope with the
AuthorizationandContent-Typeheaders.
JSON
1{
2 "query": "query Devices($first: Int!, $after: String) { team { devices(first: $first, after: $after) { nodes { id name status } } } }",
3 "variables": {
4 "first": 25,
5 "after": null
6 }
7}Example queries
List devices
team { ... } as the root for public control-plane integrations:Graphql
1query Devices($first: Int!, $after: String) {
2 team {
3 devices(first: $first, after: $after) {
4 nodes {
5 id
6 name
7 status
8 }
9 pageInfo {
10 hasNextPage
11 endCursor
12 }
13 }
14 }
15}Update device state
Graphql
1mutation UpdateDevice($input: UpdateDeviceInput!) {
2 updateDevice(input: $input) {
3 clientMutationId
4 }
5}UpdateDeviceInput, so use the reference pages or introspection to inspect the current input shape before wiring production flows.Hub-specific boundaries
Public surface
team { ... } surface.Authentication boundary
- Your users authenticate to your own frontend and backend.
- Your backend stores the Hub API key.
- Your backend calls Hub GraphQL.
- Your frontend receives only the derived payload it needs.
Schema inspection
Real-time behavior
Core concepts you will see in the schema
- Object types and fields define the resources and attributes you can query, such as
Device,Team, orApp. - Arguments and variables let you pass pagination, filtering, and input values without rewriting the query string.
- Input objects group structured mutation inputs such as
UpdateDeviceInput. - Enums, interfaces, and unions describe constrained values and polymorphic response shapes.
- Connections are the pagination pattern that uses fields such as
nodes,edges, andpageInfo.
Next steps
- Continue with Integration Guides for end-to-end backend workflows.
- Use Streaming and Visualizer for browser connection bootstrap and remote session flows.
- Explore Schema Reference, Queries, and Mutations for the current control API surface.