Sessions
The Sessions operations of the Hub REST API (10 operations).
bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
channelId*stringbootstrapStateId?stringCompacted-state ID to bootstrap the session from.
Session
application/json- response
id*stringchannelId*stringuserId?stringworkspaceId?string|nullbootstrapStateId?string|nullproducedStateId?string|nullclosedAt?string||nullcreatedAt?string|updatedAt?string|metadata?[key: string]?unknowncurl -X POST 'https://pod.example.com/api/hub/sessions/getOrCreate' \ -H 'Content-Type: application/json' \ -d '{ "channelId": "string"}'{ "id": "string", "channelId": "string", "userId": "string", "workspaceId": "string", "bootstrapStateId": "string", "producedStateId": "string", "closedAt": "string", "createdAt": "string", "updatedAt": "string", "metadata": { "property1": null, "property2": null }, "property1": null, "property2": null}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
channelId*stringActive session, or null if none is open
application/json- response
id*stringchannelId*stringuserId?stringworkspaceId?string|nullbootstrapStateId?string|nullproducedStateId?string|nullclosedAt?string||nullcreatedAt?string|updatedAt?string|metadata?[key: string]?unknowncurl -X GET 'https://pod.example.com/api/hub/sessions/active?channelId=string'{ "id": "string", "channelId": "string", "userId": "string", "workspaceId": "string", "bootstrapStateId": "string", "producedStateId": "string", "closedAt": "string", "createdAt": "string", "updatedAt": "string", "metadata": { "property1": null, "property2": null }, "property1": null, "property2": null}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
sessionId*stringSession
application/json- response
id*stringchannelId*stringuserId?stringworkspaceId?string|nullbootstrapStateId?string|nullproducedStateId?string|nullclosedAt?string||nullcreatedAt?string|updatedAt?string|metadata?[key: string]?unknowncurl -X GET 'https://pod.example.com/api/hub/sessions/string'{ "id": "string", "channelId": "string", "userId": "string", "workspaceId": "string", "bootstrapStateId": "string", "producedStateId": "string", "closedAt": "string", "createdAt": "string", "updatedAt": "string", "metadata": { "property1": null, "property2": null }, "property1": null, "property2": null}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
sessionId*stringapplication/json- body
metadata?bootstrapStateId?stringproducedStateId?string[key: string]?unknownUpdated session
application/json- response
id*stringchannelId*stringuserId?stringworkspaceId?string|nullbootstrapStateId?string|nullproducedStateId?string|nullclosedAt?string||nullcreatedAt?string|updatedAt?string|metadata?[key: string]?unknowncurl -X PATCH 'https://pod.example.com/api/hub/sessions/string' \ -H 'Content-Type: application/json' \ -d '{ "property1": null, "property2": null}'{ "id": "string", "channelId": "string", "userId": "string", "workspaceId": "string", "bootstrapStateId": "string", "producedStateId": "string", "closedAt": "string", "createdAt": "string", "updatedAt": "string", "metadata": { "property1": null, "property2": null }, "property1": null, "property2": null}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
channelId*stringlimit?stringSessions
application/json- response
[index: integer]?curl -X GET 'https://pod.example.com/api/hub/sessions?channelId=string'[ { "id": "string", "channelId": "string", "userId": "string", "workspaceId": "string", "bootstrapStateId": "string", "producedStateId": "string", "closedAt": "string", "createdAt": "string", "updatedAt": "string", "metadata": { "property1": null, "property2": null }, "property1": null, "property2": null }]bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
sessionId*stringapplication/json- body
producedStateId?stringCompacted-state ID written at session close.
Closed session
application/json- response
id*stringchannelId*stringuserId?stringworkspaceId?string|nullbootstrapStateId?string|nullproducedStateId?string|nullclosedAt?string||nullcreatedAt?string|updatedAt?string|metadata?[key: string]?unknowncurl -X POST 'https://pod.example.com/api/hub/sessions/string/close' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "channelId": "string", "userId": "string", "workspaceId": "string", "bootstrapStateId": "string", "producedStateId": "string", "closedAt": "string", "createdAt": "string", "updatedAt": "string", "metadata": { "property1": null, "property2": null }, "property1": null, "property2": null}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
channelId*stringlimit?stringCompacted states (newest first)
application/json- response
[index: integer]?curl -X GET 'https://pod.example.com/api/hub/compacted-states?channelId=string'[ { "id": "string", "channelId": "string", "summary": "string", "facts": [ null ], "createdAt": "string", "property1": null, "property2": null }]bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
channelId*stringsessionId?stringsummary?stringfacts?array<unknown>metadata?[key: string]?unknownCreated compacted state
application/json- response
id*stringchannelId*stringsummary?stringfacts?array<unknown>createdAt?string|[key: string]?unknowncurl -X POST 'https://pod.example.com/api/hub/compacted-states' \ -H 'Content-Type: application/json' \ -d '{ "channelId": "string", "property1": null, "property2": null}'{ "id": "string", "channelId": "string", "summary": "string", "facts": [ null ], "createdAt": "string", "property1": null, "property2": null}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
channelId*stringLatest compacted state, or null
application/json- response
id*stringchannelId*stringsummary?stringfacts?array<unknown>createdAt?string|[key: string]?unknowncurl -X GET 'https://pod.example.com/api/hub/compacted-states/latest?channelId=string'{ "id": "string", "channelId": "string", "summary": "string", "facts": [ null ], "createdAt": "string", "property1": null, "property2": null}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
stateId*stringCompacted state
application/json- response
id*stringchannelId*stringsummary?stringfacts?array<unknown>createdAt?string|[key: string]?unknowncurl -X GET 'https://pod.example.com/api/hub/compacted-states/string'{ "id": "string", "channelId": "string", "summary": "string", "facts": [ null ], "createdAt": "string", "property1": null, "property2": null}