Create SSF stream
POST
/v1/signals/stream
const url = 'http://localhost:8693/v1/signals/stream';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"iss":"starfly","aud":"downstream-consumer","events_requested":["https://schemas.openid.net/secevent/caep/event-type/session-revoked","https://schemas.openid.net/secevent/caep/event-type/credential-change"],"delivery_method":"push","endpoint_url":"https://consumer.example.com/events"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8693/v1/signals/stream \ --header 'Content-Type: application/json' \ --data '{ "iss": "starfly", "aud": "downstream-consumer", "events_requested": [ "https://schemas.openid.net/secevent/caep/event-type/session-revoked", "https://schemas.openid.net/secevent/caep/event-type/credential-change" ], "delivery_method": "push", "endpoint_url": "https://consumer.example.com/events" }'Creates a new SSF event stream. The endpoint URL must use HTTPS (localhost/127.0.0.1 exempted for dev/test).
Protected by mTLS when TLS is enabled.
Request Body required
Section titled “Request Body required ” Media type application/json
object
iss
required
string
aud
required
string
events_requested
required
Array<string>
events_delivered
Array<string>
delivery_method
required
string
endpoint_url
HTTPS endpoint for push delivery (must be HTTPS, except localhost)
string
Example
{ "iss": "starfly", "aud": "downstream-consumer", "events_requested": [ "https://schemas.openid.net/secevent/caep/event-type/session-revoked", "https://schemas.openid.net/secevent/caep/event-type/credential-change" ], "delivery_method": "push", "endpoint_url": "https://consumer.example.com/events"}Responses
Section titled “ Responses ”Stream created
Media type application/json
object
stream_id
string
iss
string
aud
string
events_supported
Array<string>
status
string
Example
{ "status": "enabled"}Invalid request
Media type application/json
object
error
required
Error code (RFC 8693 compatible)
string
error_description
Human-readable error detail
string
Example
{ "error": "invalid_request"}Signal transmitter not configured
Media type application/json
object
error
required
Error code (RFC 8693 compatible)
string
error_description
Human-readable error detail
string
Example
{ "error": "invalid_request"}