Skip to main content
This is the smallest possible Engine quickstart. If you have curl, you have everything you need.

Set your environment

Replace the values with your own:

Confirm the Engine is reachable

You should get back something like:
/health is the only endpoint that doesn’t require an API key. If this doesn’t return, your Engine isn’t running yet — check Local development quickstart.

Send your first message

The -N flag disables curl’s output buffering so you see Server-Sent Events as the Engine emits them. You should see something like:
The text_delta events are the model’s response, streamed token by token. You can concatenate them yourself or use a client library that does it for you.

Continue the conversation

Use the same task_id to continue the thread. The Engine remembers everything that came before:

Reconnect to a stream you missed

If your client disconnected mid-stream, replay any events you missed since a given timestamp:
after is a millisecond timestamp. 0 replays everything available.

Where to go next