Subscribe to stratos events. When 'did' is provided, subscribes to record updates for that account. When omitted, subscribes to service-level events (enrollments). AppViews must provide a signed service JWT via syncToken.
Parameters
cursor
integer
Optional
The last known event sequence number to resume from.
did
stringdid
Optional
The DID of the account to subscribe to. If omitted, subscribes to service-level enrollment events.
domain
string
Optional
Optional domain filter. Only events for records with this domain in their boundary will be emitted.
syncToken
string
Optional
Signed service JWT for AppView authentication. Must include iss, aud, exp, and lxm claims. Required for service callers; owner callers may use the Authorization header instead.
Errors
FutureCursor
Cursor is in the future. AuthRequired
Authentication is required. View raw schema
{
"type": "subscription",
"errors": [
{
"name": "FutureCursor",
"description": "Cursor is in the future."
},
{
"name": "AuthRequired",
"description": "Authentication is required."
}
],
"message": {
"schema": {
"refs": [
"#commit",
"#enrollment",
"#info"
],
"type": "union"
}
},
"parameters": {
"type": "params",
"properties": {
"did": {
"type": "string",
"format": "did",
"description": "The DID of the account to subscribe to. If omitted, subscribes to service-level enrollment events."
},
"cursor": {
"type": "integer",
"description": "The last known event sequence number to resume from."
},
"domain": {
"type": "string",
"maxLength": 253,
"description": "Optional domain filter. Only events for records with this domain in their boundary will be emitted."
},
"syncToken": {
"type": "string",
"description": "Signed service JWT for AppView authentication. Must include iss, aud, exp, and lxm claims. Required for service callers; owner callers may use the Authorization header instead."
}
}
},
"description": "Subscribe to stratos events. When 'did' is provided, subscribes to record updates for that account. When omitted, subscribes to service-level events (enrollments). AppViews must provide a signed service JWT via syncToken."
}