Skip to main content
POST
/
api
/
v1
/
external
/
companies
/
{companyId}
/
tasks
curl --request POST \
  --url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/tasks \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Review claim documents",
  "deadline": "2026-07-01T17:00:00.000Z"
}
'
{
  "id": "550e8400-e29b-41d4-a716-446655440300"
}

Authorizations

Authorization
string
header
required

API key authentication. Send your raw API key as the Authorization header value with NO scheme prefix — Authorization: YOUR-API-KEY. Do NOT prefix it with Bearer or ApiKey, and do not use an X-API-Key header; those are not accepted.

Path Parameters

companyId
string<uuid>
required

Company identifier

Body

application/json
name
string
required

Task name

deadline
string<date-time>
required

Task deadline as an ISO 8601 date-time string

description
string
default:""

Task description (defaults to an empty string)

status
enum<string>
default:Not Complete

Task completion status (defaults to Not Complete)

Available options:
Not Complete,
Complete
entity
object

Entity to link the task to (e.g. a claim or policy)

assignees
string[]

Company user IDs to assign the task to

Response

Task created successfully

id
string<uuid>

The ID of the created task