Start the Get-to-Know-Me onboarding flow
const url = 'http://localhost:11044/api/v1/onboarding/run';const options = { method: 'POST', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>', 'Content-Type': 'application/json'}, body: '{"buildMeApp":true,"lookbackDays":1,"sources":["example"]}'};
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:11044/api/v1/onboarding/run \ --header 'Content-Type: application/json' \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>' \ --data '{ "buildMeApp": true, "lookbackDays": 1, "sources": [ "example" ] }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”What to profile: sources (required; source ids from GET /onboarding/sources such as email, calendar, osx, and an empty list means every available source), lookbackDays (how many days of activity to read; default 30, not clamped) and buildMeApp (default false; true also builds a Me app from the persona, the expensive part). The run happens in the background and answers 202 with a jobId to poll
Body of POST /onboarding/run: which sources to profile, how far back, and whether to build a Me app as well
object
Also build a personal Me app (me.html) from the persona once it is saved, which is the expensive step. Defaults to false
How many days of past activity to profile. Defaults to 30
Source ids to profile, as GET /onboarding/sources lists them (email, calendar, osx). An empty list profiles every source that is available
Example generated
{ "buildMeApp": true, "lookbackDays": 1, "sources": [ "example" ]}Responses
Section titled “Responses”OK
The 202 answer to POST /onboarding/run: the job started in the background. Poll GET /onboarding/status/{jobId} for its outcome
object
Id of the started job (a UUID), for GET /onboarding/status/{jobId}
Always started

