curl -X POST "https://api.hitler.app/api/tasks/drafts" \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "title": "Review Q4 budget proposal", "priority": 2, "dueDate": "2024-01-20T17:00:00.000Z", "rawInput": "remind me to review the Q4 budget by Friday" }'
{ "id": "draft-uuid-123", "title": "Review Q4 budget proposal", "description": null, "priority": 2, "status": "pending", "dueDate": "2024-01-20T17:00:00.000Z", "rawInput": "remind me to review the Q4 budget by Friday", "userId": "user-uuid", "organizationId": "org-uuid", "createdAt": "2024-01-15T10:30:00.000Z" }
Create a new task draft for confirmation
pending
confirmed
rejected