note_summary:read for reads and note_summary:write to generate, edit, or delete summaries.
How do I generate a summary?
Calllist_summary_templates and choose a template id. When you read one of your own custom templates with get_summary_template, its instructions array contains the examples you supplied. System keys can read built-in templates only.
Call create_note_summary with the note GUID and template ID. Generation requires a user credential with edit access to the note.
summaryId and reused: true. Creating a summary preserves the current main summary. Poll get_note_summary with the returned summaryId and check generationStatus. To edit the completed text, pass the latest revision to update_note_summary_content.
Set locale to a language tag such as en-US, or omit it to use the note’s language settings. For GENERATING, wait briefly and poll again. For COMPLETED, read the content. FAILED indicates a failed job. UNKNOWN means no usable result or active job is available. A truncated summary also reports FAILED. If the text exceeds the editing limit, read detail.generationStatus in the 413 response.
How do I delete a specific summary?
Calllist_note_summaries with note to see each summary’s id, template, locale, and creation time in content. Confirm the selection, then call delete_note_summary with noteGuid and summaryId. A summary being generated cannot be deleted.
Deleting the main summary makes the newest remaining summary the main one. If timestamps match, the higher ID wins. Deleting the last summary clears the main selection.