Skip to main content
POST
/
tasks
cURL
curl --request POST \
  --url https://api.alertyai.com/tasks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "description": "<string>",
  "dueAt": "<string>",
  "priority": "low"
}
'
{
  "id": 123,
  "title": "<string>",
  "description": "<string>",
  "dueAt": "<string>",
  "priority": "low",
  "status": "pending"
}

Documentation Index

Fetch the complete documentation index at: https://docs.alertyai.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Task payload

title
string
required

Task title

description
string

Task details

dueAt
string

ISO-8601 due timestamp

priority
enum<string>

Task priority

Available options:
low,
medium,
high

Response

Task created response

id
integer<int64>
required

Unique task ID

title
string
required

Task title

description
string

Task details

dueAt
string

ISO-8601 due timestamp

priority
enum<string>

Task priority

Available options:
low,
medium,
high
status
enum<string>

Current task status

Available options:
pending,
completed