Before you start
You need a HAI-Co² account. Create it in the browser at haico.gr and click the verification link in your email.Base URL
Every route is served under the/api prefix on the application host:
Your first agent turn
1
Create a token
Sign in at haico.gr, open Profile → API keys, and choose New key.
Pick Full token guide →
read,write access so you can run agent turns.The token is shown once, so copy it now:2
Check that it works
401 here means the token is wrong, revoked, or expired. Nothing below will work until this
call succeeds.3
Run a turn
Omit The response is a stream. The first event carries the Full streaming contract →
thread_id (or pass null) to start a new conversation.thread_id you reuse on later turns, and
the stream ends with complete:4
Read back what the agent built
Where to go next
Authentication
Token scopes, expiry, revocation, rate limits, and the error codes you will hit.
Endpoint groups
A map of the six route groups, so you know which one to reach for.
Streaming agent turns
The SSE contract in full: event types, error handling, and choosing a model.
Reading the workspace
Objective, document, plan, preferences, and artifacts.
API-only clients
What the browser does for you, what it does not, and the three gaps that matter.
Recipes
A full two-turn loop in Python, and a token check for CI.
The per-endpoint reference (every parameter, request and response schema, and a “try it”
playground) is generated from the OpenAPI spec and lives in the Endpoints section of this tab.
Treat it as the source of truth for field-level detail.