Toaster API Documentation

Advanced Toaster WebSockets

For the truly masochistic developer, we present the Advanced Toaster WebSockets API. With this API, you'll be able to control your toaster with the precision of a Swiss watchmaker. But be warned, it's not for the faint of heart.

Below are the available endpoints:

Toaster Broadcast

Toaster Subscription

Toaster Unsubscription

Example use cases:

1. To broadcast a freshly baked bagel to the toaster network:

		curl -X POST
		https://toaster.example.com/toaster-api/advanced-toaster-apis/toaster-api-web-sockets/toaster-web-sockets/broadcasting/toaster-broadcast
		-H 'Content-Type: application/json'
		-H 'Cookie: session_id=1234567890'
		-d '{
		"bagel_type": "everything", "temperature": 350, "crust_type": "artisan"
		}
		'