{
"question": "Summarize the main point of this selection.",
"selectedText": "OneSay should route every non-frontend capability through a unified API boundary first.",
"askAnythingMode": "summarize",
"allowsExternalSearch": false,
"expressionContext": {
"personalStyle": {
"preference": "off",
"customInstruction": "",
"styleSamples": ""
},
"fallbackTone": "natural",
"appContext": {
"applicationName": "Notes",
"bundleIdentifier": "com.apple.Notes"
}
}
}curl --location '/v1/ask-anything' \
--header 'Content-Type: application/json' \
--data '{
"question": "Summarize the main point of this selection.",
"selectedText": "OneSay should route every non-frontend capability through a unified API boundary first.",
"askAnythingMode": "summarize",
"allowsExternalSearch": false,
"expressionContext": {
"personalStyle": {
"preference": "off",
"customInstruction": "",
"styleSamples": ""
},
"fallbackTone": "natural",
"appContext": {
"applicationName": "Notes",
"bundleIdentifier": "com.apple.Notes"
}
}
}'{
"ok": true,
"data": {
"id": "ai_2222222222222222",
"taskKind": "ask_anything",
"payload": {
"taskKind": "ask_anything",
"answer": "OneSay found three key points in the selected text.",
"usedExternalSearch": false,
"externalSearchSources": [],
"appliedExpression": {
"personalStyleUsed": false,
"appToneUsed": false,
"writingTone": "natural"
}
},
"render": {
"preferred": "plain_text",
"plainText": "OneSay found three key points in the selected text.",
"blocks": [
{
"type": "paragraph",
"text": "OneSay found three key points in the selected text."
}
]
},
"meta": {
"provider": "mock",
"model": "deterministic",
"providerAttemptChain": [
{
"provider": "mock",
"model": "deterministic",
"levelAttempted": [
"json_schema"
],
"success": true,
"latencyMs": 42
}
],
"structuredOutput": {
"level": "json_schema",
"nativeSchemaUsed": true,
"nativeJsonObjectUsed": false,
"validationPassed": true,
"normalizationUsed": false,
"fallbackUsed": false
},
"tokenUsage": {
"inputTokens": 120,
"outputTokens": 24,
"totalTokens": 144
},
"latencyMs": 42
},
"createdAt": "2026-04-01T16:20:00Z"
}
}