Generate a study set
Makes a study set of flashcards from a note. Poll GET /jobs/{jobId} until it ends; a finished study_set_generation job's result.setId is the new set. While a set is being made from the note, starting another returns that job instead. Counts as an AI use.
Required scopes: generation:start
In: header
Header Parameters
A client-generated key (1 to 255 visible ASCII characters) that makes this POST safe to retry. A retry with the same key and body replays the original response; the same key with a different body returns 409 idempotency_conflict. Stored for 24 hours.
^[\x21-\x7E]{1,255}$1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/sets/generate" \ -H "Content-Type: application/json" \ -d '{ "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6", "noteId": "11bee8fe-2793-4911-9b27-a6f8473a2ccf" }'{ "data": { "jobId": "7d6c5b4a-3f2e-4d1c-8b0a-9f8e7d6c5b4a" }}