Usamos cookies para melhorar sua experiência. Ao continuar, você concorda com nossa Política de Cookies.

plan.parts
Sobre Bancos de dados Tarefas de Dados Como funciona Preços Documentação Blog Suporte Contatos
GET Grátis

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.

Parâmetros

Name Type Required Description Example
page integer query opcional Page number (20 tasks per page, newest first) 1

Exemplo de Requisição

GET https://cdn.plan.parts/api/v1/tasks?page=1
Authorization: Bearer your_api_key

Exemplo de Resposta

{
    "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"
    }
}

Testar no Sandbox

Test this endpoint with real data in the Developer Portal sandbox.

Testar no Sandbox →

Sem cartão de crédito

Custo em tokens

This endpoint is free — no tokens are deducted.