PokeePokee Enterprise API

Quickstart

Create a session, send a message, stream the response.

# Set your endpoint and bearer (provided by Pokee out-of-band)
export POKEE_API="https://your-tenant.enterprise.pokee.ai"
export POKEE_KEY="pk_<tenant>_<token>"

# Health check (no auth)
curl "$POKEE_API/health"

# Create a session, send a message, stream the response
SID=$(curl -s -X POST "$POKEE_API/v1/sessions" \
  -H "Authorization: Bearer $POKEE_KEY" \
  -H "Content-Type: application/json" \
  -d '{}' | jq -r '.id')

curl -N -X POST "$POKEE_API/v1/sessions/$SID/messages" \
  -H "Authorization: Bearer $POKEE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message":"Summarize a brief overview of NVIDIA in two sentences."}'

The second call streams Server-Sent Events (text/event-stream). See Streaming messages for the event format.