Trigger Scan
POST
/api/signals/scan
const url = 'http://localhost:8000/api/signals/scan';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8000/api/signals/scan \ --header 'Authorization: Bearer <token>'Trigger a signal scan on the durable queue worker.
The scan fans out to job-board providers (JobSpy etc.) per lead, which can take a long time and do blocking I/O — running it inline (or as a main-loop BackgroundTask) froze the API. We enqueue it on the queue worker (which runs handlers off the event loop in their own thread) and return immediately; the client polls GET /api/signals for results.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
example