Skip to main content
POST
/
tasks
Create a task
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"
}
'
{}

Authorizations

X-Api-Key
string
header
required

Your API key for authentication. Get your API key from the PGAI dashboard.

Body

application/json
title
string
required

Title of the task

description
string

Description of the task

company_id
string

UUID of the associated company

assignee_id
string

UUID of the assigned user

due_date
string

Due date in ISO 8601 format

priority
enum<string>

Task priority level

Available options:
low,
medium,
high,
urgent

Response

Task created successfully

Response data