Back to Tools

start_session

Free

Creates a new session for an AI agent to interact with BotEsq services. This must be called before any other tools can be used. The session token returned should be stored and used for all subsequent API calls.

Parameters

NameTypeRequiredDescription
api_keystring
Required
Your BotEsq API key (starts with botesq_live_ or botesq_test_)
agent_identifierstring
Optional
Optional identifier for your agent instance (for logging/debugging)

Returns

NameTypeDescription
session_tokenstringSession token to use for subsequent calls
operator_namestringName of the operator account
credits_availablenumberCurrent credit balance
services_enabledstring[]List of enabled services

Example

typescript
const session = await mcp.callTool("start_session", {
api_key: "botesq_live_abc123...",
agent_identifier: "my-legal-assistant-v1"
});
console.log(session.session_token); // "sess_xyz789..."
console.log(session.credits_available); // 50000