Prerequisites
- A deployed Browsary instance (local
npm run devworks while you explore). - SMTP, database, Redis, browser server, and OpenAI credentials configured as described in the
browser-airepository README. curlor an HTTP client of your choice.
URLs below assume http://localhost:3000; swap in your production hostname when ready.
1. Create or sign in to an account
Use the registration or login endpoints to obtain a session cookie. The response always includes the JWT for native clients.HttpOnly token cookie when remember is true. Keep either the cookie jar or token string for subsequent calls.
2. Issue an API key
API keys are safer for automation than long-lived session cookies. Create one scoped to your development projects:secret once—store it securely. Use either the secret or its keyPrefix with the x-api-key header:
3. Create a project and bootstrap a browser session
Create a fresh project (requires an email-verified session or API key):POST /marketing-research/api/sessions/{sessionId}/start.
4. Verify access
GET /api→ confirms the API version and echoes the authenticated subject.GET /marketing-research/api→ returns project metadata when the slug is correct and you have permission.GET /marketing-research/api/pipelines→ should return an empty array on a brand-new project, proving project scoping is set up correctly.