Skip to main content
POST
Start a session with the Effective agent

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Body

application/json
title
string

Name shown for the session in Effective. Defaults to "API session".

Required string length: 1 - 120
message
string

First message. When present the agent starts on it right away; otherwise the session waits for POST /sessions/{id}/messages.

Required string length: 1 - 20000
scope
object

Research context for the first message, in the same shape answers take. The agent may also consult other sources you can access. Requires message.

Response

Session started.

id
string<uuid>
required

Session UUID, e.g. 00000000-0000-4000-8000-000000000001.

Example:

"00000000-0000-4000-8000-000000000001"

status
enum<string>
required

running while the agent is working on a message; idle otherwise.

Available options:
idle,
running
message
object | null
required

The first message, when one was sent. Follow it with GET /sessions/{id}/messages/{messageId}.