Create a compliance project
POST
/v1/projects
const url = 'https://api.varman.io/v1/projects';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"SOC 2 readiness","description":"Close every open evidence task before the audit window.","leaderMemberId":"mem_abc123","dueDate":"2027-03-31T00:00:00.000Z","priority":"urgent","status":"planned"}'};
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/projects \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "SOC 2 readiness", "description": "Close every open evidence task before the audit window.", "leaderMemberId": "mem_abc123", "dueDate": "2027-03-31T00:00:00.000Z", "priority": "urgent", "status": "planned" }'Creates a project to group compliance tasks under a leader, due date and priority. Add tasks afterwards with POST /v1/projects/{projectId}/tasks.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
Project name
string
Example
SOC 2 readinessdescription
What the project covers
string
Example
Close every open evidence task before the audit window.leaderMemberId
Member ID of the project leader, or null for none
string
Example
mem_abc123dueDate
Due date (ISO 8601), or null for none
string format: date-time
Example
2027-03-31T00:00:00.000Zpriority
string
Example
highstatus
string
Example
planned