Log in (legacy)
Legacy username/password login, retained for older clients. Use Clerk instead.
Deprecated
Legacy username/password login, retained for older clients. Use Clerk instead.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/auth/login" \ -H "Content-Type: application/json" \ -d '{ "username": "string", "password": "pa$$word" }'{ "token": "string", "user": { "id": "string", "email": "user@example.com", "household_ids": [ "54c1f54b-a917-49ec-b7cf-11c9ad962a82" ], "is_admin": true, "created_at": "2019-08-24T14:15:22Z" }}Embed a search query POST
Returns the embedding vector for a search string, using the same model that indexed the recipes. Use it to run your own semantic search over recipes you have synced locally — embedding the query client-side with a different model would not produce comparable distances.
Register (legacy) POST
Legacy username/password registration, retained for older clients. Authentication is handled by Clerk now — see the [Authentication guide](https://docs.flambe.dev/docs/guides/authentication).