Draft a notice with AI
POST
/v1/incidents/{id}/notices/draft
const url = 'https://api.varman.io/v1/incidents/example/notices/draft';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"audience":"authority"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/incidents/example/notices/draft \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "audience": "authority" }'Draft the text of a stakeholder notice, such as a regulator or customer notification, from the incident details. Review it before sending.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
audience
required
string