alerts
Create an alert
Changed onCreate an alert.
post/v1/chat/alerts
Request
- Base URLhttps://api.asknews.app
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"query": "I want to be alerted if the president of the US says something about the economy",
"model": "gpt-4o-mini",
"cron": "'0 0 * * *' (daily at midnight UTC)",
"report": {
"model": "gpt-4o"
},
"title": "Alert for US President's statements on the economy"
}Response
Created alert.
Changes
- breaking
removed
subschema #1subschema #2from therequest propertyanyOflist - info
added
subschema #1subschema #2to therequest propertyanyOflist - info
added the new
gemini-4-argonenum value to the request property//////
- breaking
- breaking
removed
subschema #1subschema #2from therequest propertyanyOflist - info
added
subschema #1subschema #2to therequest propertyanyOflist - info
added the new
claude-sonnet-5-5enum value to the request property////// - info
added the new
gpt-6.1-solenum value to the request property//////
- breaking