Create a log stream
POST/api/v0/streams/
Create an outbound log stream and its destination in one payload. Requires a team API key with the manage scope. The destination config is validated against the plugin's declared fields and its URL policy, so a config that could never be delivered is refused here rather than failing silently at delivery time. The delivery service is given the stream's spec before the response: when it cannot be reached the stream is not created and the request answers 503.
Request
Responses
- 201
- 400
- 403
- 503
The stream that was created; the stored secret is never returned.
The stream was refused: the team is at its plan's stream ceiling, the destination config or secret is unusable, the name is taken, or the body is not JSON.
Missing, invalid or under-scoped API key.
The log stream delivery service is unreachable or refused the change.