Tasks
/v1/tasks
Client tasks (custom data work done by our team: enrichment, cross references, fitment, file or database analysis). GET lists your tasks; POST creates and submits a new task. The task is then estimated in tokens and starts after you approve the estimate in the portal.
Paramètres
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
page
|
integer query | optionnel | Page number (20 tasks per page, newest first) |
1
|
Exemple de requête
GET https://cdn.plan.parts/api/v1/tasks?page=1
Authorization: Bearer your_api_key
Exemple de réponse
{
"success": true,
"data": [
{
"id": 42,
"title": "Cross references for 1,200 OE numbers",
"category": "cross_reference",
"status": "awaiting_approval",
"token_estimate": 100000,
"token_cost_final": null,
"created_at": "2026-11-22T10:00:00.000000Z",
"updated_at": "2026-11-22T12:00:00.000000Z"
}
],
"meta": {
"current_page": 1,
"last_page": 1,
"total": 1
}
}
POST — Create task
Creates and submits a task. We review it and set a token estimate; work starts after the estimate is approved in the portal (or right away if start_immediately is true and the balance covers it). Tokens are reserved at start and charged only on completion; a rejected or failed task is not charged.
| title | string, required | 5–255 characters |
| description | string, required | What to do, input format, expected output (10–50,000 characters) |
| category | string, required | data_enrichment, cross_reference, vehicle_fitment, file_analysis, db_analysis or custom |
| wants_example | boolean | Send a sample result before the full run |
| start_immediately | boolean | Start as soon as estimated, without manual approval |
POST https://cdn.plan.parts/api/v1/tasks
Authorization: Bearer your_api_key
Content-Type: application/json
{
"title": "Cross references for 1,200 OE numbers",
"description": "Find aftermarket analogs for the attached OE list, CSV output.",
"category": "cross_reference",
"wants_example": false,
"start_immediately": false
}
{
"success": true,
"data": {
"id": 42,
"status": "submitted"
}
}
Tester dans le bac à sable
Test this endpoint with real data in the Developer Portal sandbox.
Tester dans le bac à sable →Sans carte bancaire
Coût en jetons
This endpoint is free — no tokens are deducted.