cURL
curl --request POST \ --url https://api.quiva.ai/storage/streams/{name}/messages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "stream": "users_stream", "subject": "users.accounting.123", "body": { "user_id": "123", "name": "John Doe", "timestamp": "2024-01-20T10:30:00Z" } } '
{ "message": "success" }
Publishes a message to a stream
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Name of the stream
Stream name
Message subject
Message payload
Bad Request
"success"