Create an audit
POST
/v1/audits
const url = 'https://api.varman.io/v1/audits';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"frameworkInstanceId":"frm_abc123","name":"SOC 2 Type II 2026","type":"soc2_type1","status":"planning","auditFirm":"Prescient Assurance","periodStart":{},"periodEnd":{},"fieldworkStart":{},"fieldworkEnd":{}}'};
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/audits \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "frameworkInstanceId": "frm_abc123", "name": "SOC 2 Type II 2026", "type": "soc2_type1", "status": "planning", "auditFirm": "Prescient Assurance", "periodStart": {}, "periodEnd": {}, "fieldworkStart": {}, "fieldworkEnd": {} }'Creates an audit for a framework instance with type (SOC 2, ISO 27001, HIPAA, GDPR, internal), firm and dates. Status starts at planning.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
frameworkInstanceId
required
Framework instance the audit covers
string
Example
frm_abc123name
required
Audit name
string
Example
SOC 2 Type II 2026type
required
Audit type
string
status
Audit status, defaults to planning
string
auditFirm
Audit firm
object
Example
Prescient AssuranceperiodStart
Observation period start (Type II), ISO date
object
periodEnd
Observation period end (Type II), ISO date
object
fieldworkStart
Fieldwork start, ISO date
object
fieldworkEnd
Fieldwork end, ISO date