cURL
curl --request POST \ --url https://api.getpg.ai/v1/tasks \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <api-key>' \ --data ' { "title": "<string>", "description": "<string>", "company_id": "<string>", "assignee_id": "<string>", "due_date": "<string>", "priority": "low" } '
{}
Create a new task within the authenticated organization.
Your API key for authentication. Get your API key from the PGAI dashboard.
Title of the task
Description of the task
UUID of the associated company
UUID of the assigned user
Due date in ISO 8601 format
Task priority level
low
medium
high
urgent
Task created successfully
Response data