Introduction

Documentação de integração com a API Pipelead

Esta documentação fornece todas as informações necessárias para integrar com a API do Pipelead.

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

Você pode gerar seu token de autenticação na seção de integrações, dentro de API em seu projeto no Pipelead. O token deve ser enviado no header Authorization como Bearer Token.

Agendamentos

Endpoints para gerenciar agendamentos

GET api/v1/appointments

GET
https://app.pipelead.to
/api/v1/appointments
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

sort
Campo e direção da ordenação. Use - para ordem descendente
required
Example:
-when
filter[when]
Filtrar por data do agendamento (Y-m-d)
required
Example:
2024-01-01
filter[lead.name]
Filtrar por nome do lead (busca parcial)
required
Example:
João
filter[status]
Filtrar por status do agendamento
required
Example:
scheduled
filter[calendar_id]
Filtrar por ID do calendário (opcional)
required
Example:
1
filter[created_at]
Filtrar por data de criação. Use Y-m-d para o dia inteiro (no fuso do projeto) ou operadores para intervalos: >=, <=, >, <, <>. Combine dois valores separados por vírgula para um intervalo fechado.
required
Example:
>=2024-01-01,<2024-02-01
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/appointments?sort=-when&filter%5Bwhen%5D=2024-01-01&filter%5Bstatus%5D=scheduled&filter%5Bcalendar_id%5D=1&filter%5Bcreated_at%5D=%3E%3D2024-01-01%2C%3C2024-02-01&page=1&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 213123,
            "description": "Autem quidem itaque enim expedita eius. Iste esse rerum aut. Non ut quod quia ipsa. Non dolor nihil qui modi est.",
            "starts_at": "2026-12-06T19:21:10+00:00",
            "ends_at": "2026-12-06T20:21:10+00:00",
            "status_code": "scheduled",
            "when": "2026-12-06 16:21:10",
            "calendar_id": 1575,
            "status": "Agendado",
            "attended_at": null,
            "absent_at": null,
            "canceled_at": null,
            "rescheduled_to": null,
            "created_at": "2026-11-24 16:21:10",
            "updated_at": "2026-11-24 16:21:10"
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=2",
        "prev": null,
        "next": "/?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 2,
        "links": [
            {
                "url": null,
                "label": "&laquo; Anterior",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": "/?page=2",
                "label": "2",
                "page": 2,
                "active": false
            },
            {
                "url": "/?page=2",
                "label": "Próximo &raquo;",
                "page": 2,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 1,
        "to": 1,
        "total": 2
    }
}

POST api/v1/appointments

POST
https://app.pipelead.to
/api/v1/appointments
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/appointments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"lead_id\": \"f7b1f1b0-5b1b-4b3b-8b1b-1b1b1b1b1b1b\",
    \"description\": \"Reunião inicial\",
    \"when\": \"2024-01-30 14:30:00\",
    \"starts_at\": \"2024-01-30 17:30:00\",
    \"ends_at\": \"2024-01-30 18:30:00\",
    \"reminder_at\": \"2024-01-30 14:00:00\",
    \"calendar_id\": 1
}"
Example response:

GET api/v1/appointments/{id}

GET
https://app.pipelead.to
/api/v1/appointments/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the appointment.

Example:
10
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/appointments/10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": 213125,
        "description": "Voluptatibus omnis libero eos qui. Voluptate nam reiciendis impedit laboriosam dolore. Id aut numquam ipsa quas iusto est quam aut. Adipisci numquam mollitia minima quasi excepturi dignissimos.",
        "starts_at": "2026-12-22T19:21:10+00:00",
        "ends_at": "2026-12-22T20:21:10+00:00",
        "status_code": "scheduled",
        "when": "2026-12-22 16:21:10",
        "calendar_id": 1579,
        "status": "Agendado",
        "attended_at": null,
        "absent_at": null,
        "canceled_at": null,
        "rescheduled_to": null,
        "created_at": "2026-11-24 16:21:10",
        "updated_at": "2026-11-24 16:21:10"
    }
}

PUT api/v1/appointments/{id}

PUT
PATCH
https://app.pipelead.to
/api/v1/appointments/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the appointment.

Example:
10

Body Parameters

Example request:
curl --request PUT \
    "https://app.pipelead.to/api/v1/appointments/10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Reunião de follow-up\",
    \"when\": \"2024-01-30 14:30:00\",
    \"reminder_at\": \"2024-01-30 14:00:00\",
    \"attended_at\": \"2024-01-30 14:30:00\",
    \"absent_at\": \"2024-01-30 14:30:00\",
    \"canceled_at\": \"2024-01-30 14:30:00\",
    \"rescheduled_to\": \"2024-01-30 16:30:00\",
    \"calendar_id\": 1
}"
Example response:
{
    "data": {
        "id": 213126,
        "description": "Sed reprehenderit non expedita quis voluptas distinctio. Molestias quae voluptatem ex eos minus enim amet. Beatae dolores alias cupiditate culpa.",
        "starts_at": "2026-12-07T19:21:10+00:00",
        "ends_at": "2026-12-07T20:21:10+00:00",
        "status_code": "scheduled",
        "when": "2026-12-07 16:21:10",
        "calendar_id": 1581,
        "status": "Agendado",
        "attended_at": null,
        "absent_at": null,
        "canceled_at": null,
        "rescheduled_to": null,
        "created_at": "2026-11-24 16:21:10",
        "updated_at": "2026-11-24 16:21:10"
    }
}

DELETE api/v1/appointments/{id}

DELETE
https://app.pipelead.to
/api/v1/appointments/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the appointment.

Example:
10
Example request:
curl --request DELETE \
    "https://app.pipelead.to/api/v1/appointments/10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]

POST api/v1/appointments/{appointment_id}/confirm

POST
https://app.pipelead.to
/api/v1/appointments/{appointment_id}/confirm
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

appointment_id
integer
required

The ID of the appointment.

Example:
10
Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/appointments/10/confirm" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

POST api/v1/appointments/{appointment_id}/cancel

POST
https://app.pipelead.to
/api/v1/appointments/{appointment_id}/cancel
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

appointment_id
integer
required

The ID of the appointment.

Example:
10

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/appointments/10/cancel" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"reason\": \"Cliente solicitou cancelamento\"
}"
Example response:

POST api/v1/appointments/{appointment_id}/reschedule

POST
https://app.pipelead.to
/api/v1/appointments/{appointment_id}/reschedule
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

appointment_id
integer
required

The ID of the appointment.

Example:
10

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/appointments/10/reschedule" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"new_date\": \"2024-02-15 15:00:00\",
    \"starts_at\": \"2048-07-15\",
    \"ends_at\": \"2097-10-16\",
    \"reason\": \"Cliente solicitou nova data\"
}"
Example response:

POST api/v1/appointments/{appointment_id}/mark-attended

POST
https://app.pipelead.to
/api/v1/appointments/{appointment_id}/mark-attended
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

appointment_id
integer
required

The ID of the appointment.

Example:
10

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/appointments/10/mark-attended" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"notes\": \"Cliente compareceu pontualmente\"
}"
Example response:

POST api/v1/appointments/{appointment_id}/mark-absent

POST
https://app.pipelead.to
/api/v1/appointments/{appointment_id}/mark-absent
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

appointment_id
integer
required

The ID of the appointment.

Example:
10

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/appointments/10/mark-absent" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"notes\": \"Cliente não compareceu sem aviso prévio\"
}"
Example response:

Bloqueios de Calendário

Endpoints para gerenciar bloqueios de calendário

GET api/v1/calendar-blocks

GET
https://app.pipelead.to
/api/v1/calendar-blocks
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

sort
Campo e direção da ordenação. Use - para ordem descendente
required
Example:
-starts_at
filter[calendar_id]
Filtrar por ID do calendário (exato)
required
Example:
1
filter[starts_at]
Início da janela em horário local do projeto — retorna bloqueios que sobrepõem este período (Y-m-d H:i:s)
required
Example:
2024-01-01 00:00:00
filter[ends_at]
Fim da janela em horário local do projeto — retorna bloqueios que sobrepõem este período (Y-m-d H:i:s)
required
Example:
2024-12-31 23:59:59
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/calendar-blocks?sort=-starts_at&filter%5Bcalendar_id%5D=1&filter%5Bstarts_at%5D=2024-01-01+00%3A00%3A00&filter%5Bends_at%5D=2024-12-31+23%3A59%3A59&page=1&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 81501,
            "title": "Ipsa voluptas quod.",
            "starts_at": "2026-12-07 14:00:00",
            "ends_at": "2026-12-07 15:00:00",
            "all_day": false,
            "calendar_id": 1648,
            "canceled_at": null,
            "created_at": "2026-11-24 16:21:13",
            "updated_at": "2026-11-24 16:21:13"
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=2",
        "prev": null,
        "next": "/?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 2,
        "links": [
            {
                "url": null,
                "label": "&laquo; Anterior",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": "/?page=2",
                "label": "2",
                "page": 2,
                "active": false
            },
            {
                "url": "/?page=2",
                "label": "Próximo &raquo;",
                "page": 2,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 1,
        "to": 1,
        "total": 2
    }
}

POST api/v1/calendar-blocks

POST
https://app.pipelead.to
/api/v1/calendar-blocks
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/calendar-blocks" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"Férias\",
    \"starts_at\": \"2024-01-30 08:00:00\",
    \"ends_at\": \"2024-01-30 18:00:00\",
    \"calendar_id\": 1,
    \"all_day\": false
}"
Example response:

GET api/v1/calendar-blocks/{id}

GET
https://app.pipelead.to
/api/v1/calendar-blocks/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the calendar block.

Example:
1
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/calendar-blocks/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": 81503,
        "title": "Deleniti delectus qui eveniet.",
        "starts_at": "2026-11-25 16:00:00",
        "ends_at": "2026-11-25 17:00:00",
        "all_day": false,
        "calendar_id": 1654,
        "canceled_at": null,
        "created_at": "2026-11-24 16:21:13",
        "updated_at": "2026-11-24 16:21:13"
    }
}

DELETE api/v1/calendar-blocks/{id}

DELETE
https://app.pipelead.to
/api/v1/calendar-blocks/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the calendar block.

Example:
1
Example request:
curl --request DELETE \
    "https://app.pipelead.to/api/v1/calendar-blocks/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]

Calendários

Endpoints para listar calendários

GET api/v1/calendars

GET
https://app.pipelead.to
/api/v1/calendars
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

sort
Campo e direção da ordenação. Use - para ordem descendente
required
Example:
-name
filter[is_default]
Filtrar por calendário padrão (true/false)
required
Example:
true
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/calendars?sort=-name&filter%5Bis_default%5D=true&page=1&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 1642,
            "name": "aut",
            "color": "#159495",
            "is_default": false,
            "settings": {
                "slot_duration": 60,
                "allow_conflicts": true
            },
            "created_at": "2026-11-24 16:21:13",
            "updated_at": "2026-11-24 16:21:13"
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=2",
        "prev": null,
        "next": "/?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 2,
        "links": [
            {
                "url": null,
                "label": "&laquo; Anterior",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": "/?page=2",
                "label": "2",
                "page": 2,
                "active": false
            },
            {
                "url": "/?page=2",
                "label": "Próximo &raquo;",
                "page": 2,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 1,
        "to": 1,
        "total": 2
    }
}

GET api/v1/calendars/{id}

GET
https://app.pipelead.to
/api/v1/calendars/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the calendar.

Example:
1
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/calendars/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": 1646,
        "name": "iure",
        "color": "#159495",
        "is_default": false,
        "settings": {
            "slot_duration": 60,
            "allow_conflicts": true
        },
        "created_at": "2026-11-24 16:21:13",
        "updated_at": "2026-11-24 16:21:13"
    }
}

GET api/v1/calendars/{calendar_id}/availability

GET
https://app.pipelead.to
/api/v1/calendars/{calendar_id}/availability
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

calendar_id
integer
required

The ID of the calendar.

Example:
1

Query Parameters

date
Data para verificar disponibilidade (formato: Y-m-d)
required
Example:
2025-11-17

Body Parameters

Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/calendars/1/availability?date=2025-11-17" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"date\": \"2025-11-17\"
}"
Example response:
{
    "data": [
        {
            "start": "08:00",
            "end": "09:00",
            "datetime": "2025-11-17 08:00:00"
        },
        {
            "start": "09:00",
            "end": "10:00",
            "datetime": "2025-11-17 09:00:00"
        }
    ]
}

Campanhas

Endpoints para gerenciar campanhas

GET api/v1/campaigns

GET
https://app.pipelead.to
/api/v1/campaigns
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

filter[name]
Filtrar por nome da campanha
required
Example:
Black Friday
sort
Campo e direção da ordenação. Use - para ordem descendente
required
Example:
-created_at
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/campaigns?filter%5Bname%5D=Black+Friday&sort=-created_at&page=1&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 4366,
            "name": "Kelly Kovacek",
            "created_at": "2021-11-15T08:53:29.000000Z",
            "updated_at": "1987-01-12T21:07:47.000000Z"
        },
        {
            "id": 4367,
            "name": "Clement Greenholt II",
            "created_at": "2003-06-21T11:28:07.000000Z",
            "updated_at": "2021-05-04T09:07:51.000000Z"
        }
    ]
}

GET api/v1/campaigns/{id}

GET
https://app.pipelead.to
/api/v1/campaigns/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the campaign.

Example:
1
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/campaigns/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": 4368,
        "name": "Cindy Green",
        "created_at": "1988-02-25T22:03:23.000000Z",
        "updated_at": "2026-10-22T16:51:38.000000Z"
    }
}

Canais

Endpoints para gerenciar origens dos leads

GET api/v1/sources

GET
https://app.pipelead.to
/api/v1/sources
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

filter[name]
Filtrar por nome da origem
required
Example:
Google
filter[type]
Filtrar por tipo (custom, facebook, google, etc)
required
Example:
facebook
filter[is_active]
Filtrar por status de ativação
required
Example:
true
sort
Campo e direção da ordenação. Use - para ordem descendente
required
Example:
-created_at
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/sources?filter%5Bname%5D=Google&filter%5Btype%5D=facebook&filter%5Bis_active%5D=1&sort=-created_at&page=1&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 9272,
            "name": "esse suscipit",
            "type": "custom",
            "is_active": true,
            "priority": 1,
            "created_at": "2026-11-24T16:21:13.000000Z",
            "updated_at": "2026-11-24T16:21:13.000000Z"
        },
        {
            "id": 9273,
            "name": "qui dignissimos",
            "type": "custom",
            "is_active": true,
            "priority": 7,
            "created_at": "2026-11-24T16:21:13.000000Z",
            "updated_at": "2026-11-24T16:21:13.000000Z"
        }
    ]
}

GET api/v1/sources/{id}

GET
https://app.pipelead.to
/api/v1/sources/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the source.

Example:
1
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/sources/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": 9274,
        "name": "quibusdam cumque",
        "type": "custom",
        "is_active": true,
        "priority": 9,
        "created_at": "2026-11-24T16:21:13.000000Z",
        "updated_at": "2026-11-24T16:21:13.000000Z"
    }
}

Comentários

Endpoints para gerenciar comentários em leads

GET api/v1/leads/{lead_uuid}/comments

GET
https://app.pipelead.to
/api/v1/leads/{lead_uuid}/comments
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

lead_uuid
integer
required
Example:
325

Query Parameters

sort
Campo e direção da ordenação. Use - para ordem descendente
required
Example:
-created_at
filter[comment]
Filtrar por conteúdo do comentário (busca parcial)
required
Example:
follow up
filter[user.name]
Filtrar por nome do usuário (busca parcial)
required
Example:
João
filter[created_at]
Filtrar por data de criação (Y-m-d)
required
Example:
2024-01-01
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
include
Incluir relacionamentos (user)
required
Example:
user
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/leads/325/comments?sort=-created_at&filter%5Bcomment%5D=follow+up&filter%5Bcreated_at%5D=2024-01-01&page=1&per_page=15&include=user" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 636444,
            "comment": "Exercitationem occaecati ullam totam voluptatum qui. Et quo recusandae quia voluptatem eos. Fuga itaque quibusdam ut nihil.",
            "comment_formatted": "<p>Exercitationem occaecati ullam totam voluptatum qui. Et quo recusandae quia voluptatem eos. Fuga itaque quibusdam ut nihil.</p>\n",
            "user_id": 4792,
            "created_at": "2026-11-24 16:21:11",
            "updated_at": "2026-11-24 16:21:11"
        },
        {
            "id": 636445,
            "comment": "Qui sapiente dignissimos voluptatem natus voluptatibus voluptatem. Non quod doloremque eaque ut ut nam sunt adipisci. Beatae dolorem qui recusandae fugit assumenda quibusdam sapiente.",
            "comment_formatted": "<p>Qui sapiente dignissimos voluptatem natus voluptatibus voluptatem. Non quod doloremque eaque ut ut nam sunt adipisci. Beatae dolorem qui recusandae fugit assumenda quibusdam sapiente.</p>\n",
            "user_id": 4793,
            "created_at": "2026-11-24 16:21:11",
            "updated_at": "2026-11-24 16:21:11"
        }
    ]
}

POST api/v1/leads/{lead_uuid}/comments

POST
https://app.pipelead.to
/api/v1/leads/{lead_uuid}/comments
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

lead_uuid
integer
required
Example:
325

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/leads/325/comments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"comment\": \"Cliente interessado no produto X\",
    \"user_id\": \"iusto\"
}"
Example response:
{
    "data": {
        "id": 636446,
        "comment": "Eum aut dolore nostrum corrupti velit eligendi pariatur. Voluptatem eaque veritatis ullam facilis voluptates aut recusandae. Mollitia aut omnis sint dolorum alias.",
        "comment_formatted": "<p>Eum aut dolore nostrum corrupti velit eligendi pariatur. Voluptatem eaque veritatis ullam facilis voluptates aut recusandae. Mollitia aut omnis sint dolorum alias.</p>\n",
        "user_id": 4794,
        "created_at": "2026-11-24 16:21:12",
        "updated_at": "2026-11-24 16:21:12"
    }
}

GET api/v1/leads/{lead_uuid}/comments/{id}

GET
https://app.pipelead.to
/api/v1/leads/{lead_uuid}/comments/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

lead_uuid
integer
required
Example:
325
id
integer
required

The ID of the comment.

Example:
1
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/leads/325/comments/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": 636447,
        "comment": "Eius fugiat alias ut corrupti enim. Nisi similique voluptatum maiores nihil atque dolorum.",
        "comment_formatted": "<p>Eius fugiat alias ut corrupti enim. Nisi similique voluptatum maiores nihil atque dolorum.</p>\n",
        "user_id": 4795,
        "created_at": "2026-11-24 16:21:12",
        "updated_at": "2026-11-24 16:21:12"
    }
}

PUT api/v1/leads/{lead_uuid}/comments/{id}

PUT
PATCH
https://app.pipelead.to
/api/v1/leads/{lead_uuid}/comments/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

lead_uuid
integer
required
Example:
325
id
integer
required

The ID of the comment.

Example:
1

Body Parameters

Example request:
curl --request PUT \
    "https://app.pipelead.to/api/v1/leads/325/comments/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"comment\": \"Cliente confirmou interesse no produto X\"
}"
Example response:
{
    "data": {
        "id": 636448,
        "comment": "Sed asperiores aut ea possimus. Sed id nulla et. Odit maxime consequatur tempore aut explicabo praesentium.",
        "comment_formatted": "<p>Sed asperiores aut ea possimus. Sed id nulla et. Odit maxime consequatur tempore aut explicabo praesentium.</p>\n",
        "user_id": 4796,
        "created_at": "2026-11-24 16:21:12",
        "updated_at": "2026-11-24 16:21:12"
    }
}

DELETE api/v1/leads/{lead_uuid}/comments/{id}

DELETE
https://app.pipelead.to
/api/v1/leads/{lead_uuid}/comments/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

lead_uuid
integer
required
Example:
325
id
integer
required

The ID of the comment.

Example:
1
Example request:
curl --request DELETE \
    "https://app.pipelead.to/api/v1/leads/325/comments/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]

Endpoints

GET api/v1/mcp/projects

GET
https://app.pipelead.to
/api/v1/mcp/projects
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/mcp/projects" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
x-robots-tag: noindex
{
    "message": "Unauthenticated."
}

GET api/v1/mcp/context

GET
https://app.pipelead.to
/api/v1/mcp/context
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/mcp/context" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
x-robots-tag: noindex
{
    "message": "Unauthenticated."
}

GET api/v1/mcp/operations/{id}

GET
https://app.pipelead.to
/api/v1/mcp/operations/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the operation.

Example:
repudiandae
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/mcp/operations/repudiandae" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
x-robots-tag: noindex
{
    "message": "The route api/v1/mcp/operations/repudiandae could not be found."
}

GET api/v1/custom-fields

GET
https://app.pipelead.to
/api/v1/custom-fields
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/custom-fields" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
x-robots-tag: noindex
{
    "message": "Unauthenticated."
}

POST api/v1/leads/{lead_uuid}/status

POST
https://app.pipelead.to
/api/v1/leads/{lead_uuid}/status
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

lead_uuid
integer
required
Example:
325

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/leads/325/status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"label_id\": 16
}"

POST api/v1/leads/{lead_uuid}/manager

POST
https://app.pipelead.to
/api/v1/leads/{lead_uuid}/manager
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

lead_uuid
integer
required
Example:
325

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/leads/325/manager" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"managed_by\": 13
}"

POST api/v1/conversations/{conversation_uuid}/messages

POST
https://app.pipelead.to
/api/v1/conversations/{conversation_uuid}/messages
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

conversation_uuid
string
required
Example:
291b1939-d8a7-314c-9701-d90a2868e364

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/conversations/291b1939-d8a7-314c-9701-d90a2868e364/messages" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"message\": \"iiqpkqpgricdrvbej\"
}"

Formulários

Endpoints para gerenciar formulários

GET api/v1/forms

GET
https://app.pipelead.to
/api/v1/forms
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

filter[name]
Filtrar por nome do formulário
required
Example:
Contato
filter[campaign_id]
Filtrar por ID da campanha
required
Example:
1
sort
Campo e direção da ordenação. Use - para ordem descendente
required
Example:
-created_at
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/forms?filter%5Bname%5D=Contato&filter%5Bcampaign_id%5D=1&sort=-created_at&page=1&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 10934,
            "name": "Mertie Ebert PhD",
            "campaign_id": 4363,
            "created_at": "2026-11-24T16:21:12.000000Z",
            "updated_at": "2026-11-24T16:21:12.000000Z"
        },
        {
            "id": 10935,
            "name": "Greta Kulas",
            "campaign_id": 4364,
            "created_at": "2026-11-24T16:21:12.000000Z",
            "updated_at": "2026-11-24T16:21:12.000000Z"
        }
    ]
}

GET api/v1/forms/{id}

GET
https://app.pipelead.to
/api/v1/forms/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the form.

Example:
2001
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/forms/2001" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": 10936,
        "name": "Adah Hoeger",
        "campaign_id": 4365,
        "created_at": "2026-11-24T16:21:12.000000Z",
        "updated_at": "2026-11-24T16:21:12.000000Z"
    }
}

Histórico de Status

Endpoints para consultar o histórico de mudanças de status dos leads

GET api/v1/leads/{lead_uuid}/label-histories

GET
https://app.pipelead.to
/api/v1/leads/{lead_uuid}/label-histories
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

lead_uuid
integer
required
Example:
325

Query Parameters

sort
Campo e direção da ordenação. Use - para ordem descendente
required
Example:
-created_at
filter[label_id]
Filtrar por ID do status
required
Example:
5
filter[created_at]
Filtrar por data de criação (Y-m-d)
required
Example:
2024-01-01
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/leads/325/label-histories?sort=-created_at&filter%5Blabel_id%5D=5&filter%5Bcreated_at%5D=2024-01-01&page=1&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 3322883,
            "label": {
                "id": 25909,
                "name": "a",
                "type": "acquired",
                "color": "#284ca3"
            },
            "last_label": {
                "id": 25910,
                "name": "ipsa",
                "type": "lost",
                "color": "#a2abc4"
            },
            "created_by": {
                "id": 4797,
                "name": "Magnus Bartoletti",
                "email": "nwilliamson@example.org"
            },
            "created_at": "2026-11-24 16:21:12",
            "updated_at": "2026-11-24 16:21:12"
        },
        {
            "id": 3322884,
            "label": {
                "id": 25911,
                "name": "officiis",
                "type": "acquired",
                "color": "#047d4c"
            },
            "last_label": {
                "id": 25912,
                "name": "molestiae",
                "type": "evaluated",
                "color": "#5b6e71"
            },
            "created_by": {
                "id": 4798,
                "name": "Tremaine Windler",
                "email": "block.terrell@example.org"
            },
            "created_at": "2026-11-24 16:21:12",
            "updated_at": "2026-11-24 16:21:12"
        }
    ]
}

Leads

Endpoints para gerenciar leads

GET api/v1/leads

GET
https://app.pipelead.to
/api/v1/leads
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

sort
Campo e direção da ordenação. Use - para ordem descendente
required
Example:
-created_at
filter[uuid]
Filtrar por UUID do lead. Aceita até 100 UUIDs separados por vírgula
required
Example:
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d,1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed
filter[name]
Filtrar por nome do lead (busca parcial)
required
Example:
João
filter[email]
Filtrar por email (busca parcial)
required
Example:
joao@
filter[phone]
Filtrar por telefone
required
Example:
999999999
filter[status]
Filtrar por ID do status
required
Example:
1
filter[manager]
Filtrar por ID do responsável
required
Example:
1
filter[label.type]
Filtrar por tipo do status (acquired, qualified, lost, unqualified, evaluated, scheduled, pending)
required
Example:
qualified
filter[campaign_id]
Filtrar por ID da campanha
required
Example:
1
filter[campaign]
Filtrar por nome da campanha
required
Example:
Campanha de Natal
filter[form_id]
Filtrar por ID do formulário
required
Example:
1
filter[form]
Filtrar por nome do formulário
required
Example:
Formulário de Contato
filter[source_id]
Filtrar por ID da origem
required
Example:
1
filter[source]
Filtrar por nome da origem
required
Example:
Google
filter[created_at]
Filtrar por data de criação. Use Y-m-d para o dia inteiro (no fuso do projeto) ou operadores para intervalos: >=, <=, >, <, <>. Combine dois valores separados por vírgula para um intervalo fechado.
required
Example:
>=2024-01-01,<2024-02-01
filter[updated_at]
Filtrar pela última alteração do lead. Útil para sincronização incremental. Mesmo formato de filter[created_at].
required
Example:
>=2024-01-01
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
include
Incluir relacionamentos (quotes, sales, appointments, tasks, labelHistories)
required
Example:
quotes,sales

Body Parameters

Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/leads?sort=-created_at&filter%5Buuid%5D=9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d%2C1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed&filter%5Bname%5D=Jo%C3%A3o&filter%5Bemail%5D=joao%40&filter%5Bphone%5D=999999999&filter%5Bstatus%5D=1&filter%5Bmanager%5D=1&filter%5Bcampaign_id%5D=1&filter%5Bcampaign%5D=Campanha+de+Natal&filter%5Bform_id%5D=1&filter%5Bform%5D=Formul%C3%A1rio+de+Contato&filter%5Bsource_id%5D=1&filter%5Bsource%5D=Google&filter%5Bcreated_at%5D=%3E%3D2024-01-01%2C%3C2024-02-01&filter%5Bupdated_at%5D=%3E%3D2024-01-01&page=1&per_page=15&include=quotes%2Csales" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"filter\": {
        \"uuid\": \"01fEA984-751E-caed-d930-81d7DcCcf70E,4D92AE6A-Df04,ca7f9992-C43C,A81B45f9-91A8-85A9b3eb125E)))\",
        \"phone\": \",,,\"
    }
}"
Example response:
{
    "data": [
        {
            "uuid": "4b7f9530-61e0-402f-a633-0ef7d15128f4",
            "name": "Ms. Beaulah Konopelski",
            "email": "jromaguera@example.org",
            "phone": "+55 (80) 91019-9062",
            "phone_normalized": "+5580910199062",
            "metadata": null,
            "form": null,
            "source_id": null,
            "extra": null,
            "custom_fields": [],
            "created_at": "2026-11-24 16:21:11",
            "updated_at": "2026-11-24 16:21:11"
        },
        {
            "uuid": "ed9b9ed2-916c-44dc-a7b0-c8b43571fa07",
            "name": "Mr. Percy Reichel",
            "email": "hintz.king@example.org",
            "phone": "+55 (70) 92164-9260",
            "phone_normalized": "+5570921649260",
            "metadata": null,
            "form": null,
            "source_id": null,
            "extra": null,
            "custom_fields": [],
            "created_at": "2026-11-24 16:21:11",
            "updated_at": "2026-11-24 16:21:11"
        }
    ]
}

POST api/v1/leads

POST
https://app.pipelead.to
/api/v1/leads
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/leads" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"João Silva\",
    \"phone\": \"(11) 99999-9999\",
    \"email\": \"joao@email.com\",
    \"extra\": [
        {
            \"key\": \"idade\",
            \"value\": \"30\"
        },
        {
            \"key\": \"profissao\",
            \"value\": \"Desenvolvedor\"
        }
    ],
    \"custom_fields\": {
        \"nome_empresa\": \"João Silva\",
        \"idade\": \"30\",
        \"profissao\": \"Desenvolvedor\"
    },
    \"label_id\": 1,
    \"managed_by\": 1,
    \"tags\": [
        15
    ],
    \"source_id\": 1,
    \"form_id\": 1,
    \"created_at\": \"2024-01-15 10:30:00\",
    \"metadata\": {
        \"utm_source\": \"google\",
        \"utm_medium\": \"cpc\",
        \"utm_campaign\": \"verao-2026\",
        \"gclid\": \"Cj0KCQjw...\",
        \"referrer_uri\": \"https:\\/\\/www.google.com\\/\",
        \"referral\": {
            \"source_url\": \"https:\\/\\/fb.me\\/71IYlQfmk\",
            \"source_id\": \"120246739410120481\",
            \"source_type\": \"ad\",
            \"ctwa_clid\": \"AfiYyI5oOMzSeXAyGJC_bJERrl0279w27ZNppOWmz7KTgBjNzJAZKo53xg0kNLFNcEjKe8Kt\"
        }
    }
}"
Example response:
{
    "data": {
        "uuid": "848fd3ac-695d-4266-8118-d32a8d4e2ec4",
        "name": "Antonietta Welch",
        "email": "feest.emmanuel@example.com",
        "phone": "+55 (45) 96789-9430",
        "phone_normalized": "+5545967899430",
        "metadata": null,
        "form": null,
        "source_id": null,
        "extra": null,
        "custom_fields": [],
        "created_at": "2026-11-24 16:21:11",
        "updated_at": "2026-11-24 16:21:11"
    }
}

GET api/v1/leads/{uuid}

GET
https://app.pipelead.to
/api/v1/leads/{uuid}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

uuid
integer
required
Example:
325
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/leads/325" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "uuid": "19c32860-602c-49b4-99ce-3c61c54dc2cc",
        "name": "Ike Welch",
        "email": "jeramie.kutch@example.com",
        "phone": "+55 (56) 95444-9732",
        "phone_normalized": "+5556954449732",
        "metadata": null,
        "form": null,
        "source_id": null,
        "extra": null,
        "custom_fields": [],
        "created_at": "2026-11-24 16:21:11",
        "updated_at": "2026-11-24 16:21:11"
    }
}

PUT api/v1/leads/{uuid}

PUT
PATCH
https://app.pipelead.to
/api/v1/leads/{uuid}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

uuid
integer
required
Example:
325

Body Parameters

Example request:
curl --request PUT \
    "https://app.pipelead.to/api/v1/leads/325" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"João Silva\",
    \"phone\": \"(11) 99999-9999\",
    \"email\": \"joao@email.com\",
    \"extra\": [
        {
            \"key\": \"idade\",
            \"value\": \"30\"
        },
        {
            \"key\": \"profissao\",
            \"value\": \"Desenvolvedor\"
        }
    ],
    \"custom_fields\": {
        \"nome_empresa\": \"João Silva\",
        \"idade\": \"30\",
        \"profissao\": \"Desenvolvedor\"
    },
    \"label_id\": 1,
    \"managed_by\": 1,
    \"tags\": [
        10
    ],
    \"source_id\": 1,
    \"form_id\": 1,
    \"created_at\": \"2024-01-15 10:30:00\",
    \"metadata\": {
        \"utm_source\": \"facebook\",
        \"referral\": {
            \"source_url\": \"https:\\/\\/fb.me\\/71IYlQfmk\",
            \"source_id\": \"120246739410120481\",
            \"source_type\": \"ad\",
            \"ctwa_clid\": \"AfiYyI5oOMzSeXAyGJC_bJERrl0279w27ZNppOWmz7KTgBjNzJAZKo53xg0kNLFNcEjKe8Kt\"
        }
    }
}"
Example response:
{
    "data": {
        "uuid": "d4e70755-081d-406f-bcd7-cfc9f0ac5a68",
        "name": "Dr. Maye Kris I",
        "email": "meta.beahan@example.org",
        "phone": "+55 (52) 94662-9851",
        "phone_normalized": "+5552946629851",
        "metadata": null,
        "form": null,
        "source_id": null,
        "extra": null,
        "custom_fields": [],
        "created_at": "2026-11-24 16:21:11",
        "updated_at": "2026-11-24 16:21:11"
    }
}

DELETE api/v1/leads/{uuid}

DELETE
https://app.pipelead.to
/api/v1/leads/{uuid}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

uuid
integer
required
Example:
325
Example request:
curl --request DELETE \
    "https://app.pipelead.to/api/v1/leads/325" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]

Mensageria

Envio de mensagens e canais de mensageria (WhatsApp) do projeto. Use o id do canal para enviar mensagens.

GET api/v1/channels

GET
https://app.pipelead.to
/api/v1/channels
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

filter[channel_type]
Filtrar por tipo de canal (whatsapp, email)
required
Example:
whatsapp
filter[driver]
Filtrar por driver (evolution, meta_whatsapp)
required
Example:
meta_whatsapp
filter[status]
Filtrar por status (active, connecting, disconnected, inactive)
required
Example:
active
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/channels?filter%5Bchannel_type%5D=whatsapp&filter%5Bdriver%5D=meta_whatsapp&filter%5Bstatus%5D=active&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": "2245a12b-e0ab-4eb4-bc72-19d77f3a4b7f",
            "name": "WhatsApp quo",
            "channel_type": "whatsapp",
            "driver": "evolution",
            "status": "active",
            "created_at": "2026-11-24T16:21:13+00:00"
        },
        {
            "id": "e3f028ef-2db8-41a1-a57b-f1942e498f7c",
            "name": "WhatsApp similique",
            "channel_type": "whatsapp",
            "driver": "evolution",
            "status": "active",
            "created_at": "2026-11-24T16:21:13+00:00"
        }
    ]
}

GET api/v1/channels/{uuid}

GET
https://app.pipelead.to
/api/v1/channels/{uuid}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

uuid
string
required
Example:
bccd53a1-4597-376f-8c98-6ac3cb0555e4
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/channels/bccd53a1-4597-376f-8c98-6ac3cb0555e4" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": "926d7568-7fab-46d5-ab4d-d50638834fad",
        "name": "WhatsApp laudantium",
        "channel_type": "whatsapp",
        "driver": "evolution",
        "status": "active",
        "created_at": "2026-11-24T16:21:13+00:00"
    }
}

GET api/v1/conversations

GET
https://app.pipelead.to
/api/v1/conversations
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

filter[last_message_at]
Filtrar por data da última mensagem. Aceita operadores dinâmicos para sincronização incremental (ex.: >=2026-07-01T00:00:00Z).
required
Example:
>=2026-07-01
filter[unread]
Filtrar conversas não lidas (true) ou lidas (false).
required
Example:
true
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/conversations?filter%5Blast_message_at%5D=%3E%3D2026-07-01&filter%5Bunread%5D=true&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": "01a20e5c-8242-71d6-a034-9d929e757fbc",
            "status": "open",
            "unread_count": 0,
            "last_message_at": null
        },
        {
            "id": "01a20e5c-8256-71e9-8d2e-0e9f9862a6d1",
            "status": "open",
            "unread_count": 0,
            "last_message_at": null
        }
    ]
}

GET api/v1/conversations/{uuid}

GET
https://app.pipelead.to
/api/v1/conversations/{uuid}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

uuid
string
required
Example:
086dec13-1b9f-3122-8af4-42c268a573a5
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/conversations/086dec13-1b9f-3122-8af4-42c268a573a5" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": "01a20e5c-826d-707a-a542-ab8dd4a5b9c6",
        "status": "open",
        "unread_count": 0,
        "last_message_at": null
    }
}

GET api/v1/conversations/{conversation_uuid}/messages

GET
https://app.pipelead.to
/api/v1/conversations/{conversation_uuid}/messages
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

conversation_uuid
string
required
Example:
972e2f71-1508-34ba-8901-370850010ee4

Query Parameters

filter[created_at]
Filtrar por data da mensagem. Aceita operadores dinâmicos para sincronização incremental (ex.: >=2026-07-01T00:00:00Z).
required
Example:
>=2026-07-01
filter[direction]
Filtrar por direção: inbound (recebidas) ou outbound (enviadas).
required
Example:
inbound
sort
Ordenação por data. Padrão created_at (ascendente); use -created_at para inverter.
required
Example:
created_at
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/conversations/972e2f71-1508-34ba-8901-370850010ee4/messages?filter%5Bcreated_at%5D=%3E%3D2026-07-01&filter%5Bdirection%5D=inbound&sort=created_at&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "message_id": 2981605,
            "id": "310f3b95-e905-3bde-a9ed-3a832eee3953",
            "direction": "inbound",
            "status": "delivered",
            "type": "text",
            "content": {
                "text": "Itaque pariatur quia quidem."
            },
            "created_at": "2026-11-24T16:21:13+00:00"
        },
        {
            "message_id": 2981606,
            "id": "16aaad75-573d-3d5d-80e9-316811fc1418",
            "direction": "inbound",
            "status": "delivered",
            "type": "text",
            "content": {
                "text": "Dolore excepturi unde officia assumenda voluptas."
            },
            "created_at": "2026-11-24T16:21:13+00:00"
        }
    ]
}

GET api/v1/conversations/{conversation_uuid}/notes

GET
https://app.pipelead.to
/api/v1/conversations/{conversation_uuid}/notes
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

conversation_uuid
string
required
Example:
bdf04402-deb2-3911-89a7-2cff6c8f19d8

Query Parameters

filter[created_at]
Filtrar por data da nota. Aceita operadores dinâmicos (ex.: >=2026-07-01T00:00:00Z).
required
Example:
>=2026-07-01
sort
Ordenação por data. Padrão created_at (ascendente); use -created_at para inverter.
required
Example:
created_at
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/conversations/bdf04402-deb2-3911-89a7-2cff6c8f19d8/notes?filter%5Bcreated_at%5D=%3E%3D2026-07-01&sort=created_at&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 2981607,
            "message": "Dolorem cum numquam laboriosam eligendi vel expedita nobis eos.",
            "user_id": null,
            "created_at": "2026-11-24T16:21:13+00:00"
        },
        {
            "id": 2981608,
            "message": "Itaque et repellat quo.",
            "user_id": null,
            "created_at": "2026-11-24T16:21:13+00:00"
        }
    ]
}

POST api/v1/conversations/{conversation_uuid}/notes

POST
https://app.pipelead.to
/api/v1/conversations/{conversation_uuid}/notes
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

conversation_uuid
string
required
Example:
7cbff9d8-1937-38ff-aaf9-7c7db2227499

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/conversations/7cbff9d8-1937-38ff-aaf9-7c7db2227499/notes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"message\": \"Cliente prefere ser contatado após as 14h.\"
}"
Example response:
{
    "data": {
        "id": 2981609,
        "message": "Sapiente qui nobis earum fugiat esse.",
        "user_id": null,
        "created_at": "2026-11-24T16:21:13+00:00"
    }
}

POST api/v1/messages

POST
https://app.pipelead.to
/api/v1/messages
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/messages" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"channel_id\": \"9b1d8e0a-4c2f-4a7e-9f3b-2c1d6e5f4a3b\",
    \"to\": \"5585999999999\",
    \"type\": \"text\",
    \"content\": {
        \"text\": \"Olá! Como posso ajudar?\",
        \"media_url\": \"https:\\/\\/example.com\\/arquivo.pdf\",
        \"caption\": \"Segue o documento solicitado.\",
        \"filename\": \"proposta.pdf\",
        \"template_id\": 1,
        \"variables\": [
            \"João\",
            \"R$ 1.500,00\"
        ]
    }
}"
Example response:
{
    "data": {
        "message_id": 2981610,
        "id": "4cfd4014-91ad-36f7-99ba-94b3b62b141c",
        "direction": "inbound",
        "status": "delivered",
        "type": "text",
        "content": {
            "text": "Quos numquam non earum natus."
        },
        "created_at": "2026-11-24T16:21:13+00:00"
    }
}

Orçamentos

Endpoints para gerenciar orçamentos

GET api/v1/quotes

GET
https://app.pipelead.to
/api/v1/quotes
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

sort
Campo e direção da ordenação. Use - para ordem descendente
required
Example:
-amount
filter[amount]
Filtrar por valor exato do orçamento
required
Example:
5000
filter[lead.name]
Filtrar por nome do lead (busca parcial)
required
Example:
João
filter[lead.email]
Filtrar por email do lead
required
Example:
joao@exemplo.com.br
filter[lead.uuid]
Filtrar por UUID do lead (match exato). Aceita vários UUIDs separados por vírgula
required
Example:
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d,1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed
filter[created_at]
Filtrar por data de criação técnica, resolvida no fuso do projeto. Use Y-m-d para o dia inteiro ou operadores para intervalos: >=, <=, >, <, <>. Combine dois valores separados por vírgula para um intervalo fechado.
required
Example:
>=2024-01-01,<2024-02-01
filter[reference_date]
Filtrar por data de negócio (competência) do orçamento. Aceita Y-m-d exato ou operadores para intervalos: >=, <=, >, <, <>. Não confundir com created_at: a competência é informada por quem lança e costuma ser retroativa.
required
Example:
2024-01-01
filter[author.name]
Filtrar por nome do autor (busca parcial)
required
Example:
João
filter[status]
Filtrar por status do orçamento
required
Example:
open
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
include
Relacionamentos adicionais: lead, author, tags, products, sales
required
Example:
sales
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/quotes?sort=-amount&filter%5Bamount%5D=5000&filter%5Bcreated_at%5D=%3E%3D2024-01-01%2C%3C2024-02-01&filter%5Breference_date%5D=2024-01-01&filter%5Bstatus%5D=open&page=1&per_page=15&include=sales" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 88078,
            "amount": 260368.32,
            "deal_potential": "medium",
            "description": "Non cumque eligendi fugit ut illum fugit omnis in. Non veniam quia sit harum et esse libero. Quidem voluptas aperiam eos molestiae earum.",
            "status": "open",
            "quoted_at": "2026-11-24",
            "reference_date": "2026-11-24",
            "created_at": "2026-11-24 16:21:10"
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=2",
        "prev": null,
        "next": "/?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 2,
        "links": [
            {
                "url": null,
                "label": "&laquo; Anterior",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": "/?page=2",
                "label": "2",
                "page": 2,
                "active": false
            },
            {
                "url": "/?page=2",
                "label": "Próximo &raquo;",
                "page": 2,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 1,
        "to": 1,
        "total": 2
    }
}

POST api/v1/quotes

POST
https://app.pipelead.to
/api/v1/quotes
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/quotes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 500000,
    \"lead_id\": \"f7b1f1b0-5b1b-4b3b-8b1b-1b1b1b1b1b1b\",
    \"status\": \"open\",
    \"tags\": [
        16.898960076
    ],
    \"created_by\": 1,
    \"products\": [
        {
            \"product_id\": 1,
            \"amount\": 10000,
            \"quantity\": 2
        },
        {
            \"product_id\": 2,
            \"amount\": 5000,
            \"quantity\": 1
        }
    ],
    \"quoted_at\": \"2025-01-15\"
}"
Example response:

GET api/v1/quotes/{id}

GET
https://app.pipelead.to
/api/v1/quotes/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the quote.

Example:
9
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/quotes/9" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": 88080,
        "amount": 7354330,
        "deal_potential": "high",
        "description": "Eos libero hic velit aliquam asperiores. Aut nesciunt qui repellat. Voluptatum et saepe quasi molestiae quod asperiores sed rem.",
        "status": "open",
        "quoted_at": "2026-11-24",
        "reference_date": "2026-11-24",
        "created_at": "2026-11-24 16:21:10"
    }
}

PUT api/v1/quotes/{id}

PUT
PATCH
https://app.pipelead.to
/api/v1/quotes/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the quote.

Example:
9

Body Parameters

Example request:
curl --request PUT \
    "https://app.pipelead.to/api/v1/quotes/9" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 500000,
    \"status\": \"won\",
    \"tags\": [
        155661336.700329
    ],
    \"created_by\": 1,
    \"products\": [
        {
            \"product_id\": 1,
            \"amount\": 10000,
            \"quantity\": 2,
            \"billing_cycles\": 12
        },
        {
            \"product_id\": 2,
            \"amount\": 5000,
            \"quantity\": 1
        }
    ],
    \"quoted_at\": \"2025-01-15\"
}"
Example response:
{
    "data": {
        "id": 88081,
        "amount": 33135941.52,
        "deal_potential": "low",
        "description": "Asperiores autem maiores rem minus. Quam suscipit nemo ut in dignissimos. Temporibus quidem enim eaque nobis facilis. Repudiandae officia odio sequi quis soluta.",
        "status": "open",
        "quoted_at": "2026-11-24",
        "reference_date": "2026-11-24",
        "created_at": "2026-11-24 16:21:10"
    }
}

DELETE api/v1/quotes/{id}

DELETE
https://app.pipelead.to
/api/v1/quotes/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the quote.

Example:
9
Example request:
curl --request DELETE \
    "https://app.pipelead.to/api/v1/quotes/9" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]

Pipelines

Endpoints para gerenciar pipelines de vendas

GET api/v1/pipelines

GET
https://app.pipelead.to
/api/v1/pipelines
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

sort
Campo e direção da ordenação. Use - para ordem descendente
required
Example:
name
filter[is_default]
Filtrar por pipeline padrão
required
Example:
1
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/pipelines?sort=name&filter%5Bis_default%5D=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 1925,
            "name": "vero eos perspiciatis",
            "slug": "vero-eos-perspiciatis",
            "description": "Voluptate ipsum adipisci incidunt qui nihil.",
            "is_default": false,
            "labels": [
                {
                    "id": 25916,
                    "name": "et",
                    "type": "lost",
                    "color": "#00d7cf",
                    "order": 6,
                    "is_default": false,
                    "pipeline_id": 1925,
                    "created_at": "2026-11-24 16:21:12",
                    "updated_at": "2026-11-24 16:21:12"
                }
            ],
            "created_at": "2026-11-24 16:21:12",
            "updated_at": "2026-11-24 16:21:12"
        },
        {
            "id": 1926,
            "name": "omnis est doloremque",
            "slug": "omnis-est-doloremque",
            "description": "Voluptas et dignissimos cupiditate molestiae nemo molestiae perspiciatis mollitia.",
            "is_default": false,
            "labels": [
                {
                    "id": 25917,
                    "name": "facilis",
                    "type": "pending",
                    "color": "#34d681",
                    "order": 7,
                    "is_default": false,
                    "pipeline_id": 1926,
                    "created_at": "2026-11-24 16:21:12",
                    "updated_at": "2026-11-24 16:21:12"
                }
            ],
            "created_at": "2026-11-24 16:21:12",
            "updated_at": "2026-11-24 16:21:12"
        }
    ]
}

POST api/v1/pipelines

POST
https://app.pipelead.to
/api/v1/pipelines
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/pipelines" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Sales Pipeline\",
    \"description\": \"Main sales pipeline for lead conversion\",
    \"is_default\": false
}"
Example response:
{
    "data": {
        "id": 1927,
        "name": "dolorem dolor atque",
        "slug": "dolorem-dolor-atque",
        "description": "Minus excepturi sed odit voluptates eius quod est.",
        "is_default": false,
        "created_at": "2026-11-24 16:21:12",
        "updated_at": "2026-11-24 16:21:12"
    }
}

GET api/v1/pipelines/{id}

GET
https://app.pipelead.to
/api/v1/pipelines/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the pipeline.

Example:
1
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/pipelines/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": 1928,
        "name": "et distinctio et",
        "slug": "et-distinctio-et",
        "description": "Architecto velit cum qui qui.",
        "is_default": false,
        "created_at": "2026-11-24 16:21:12",
        "updated_at": "2026-11-24 16:21:12"
    }
}

PUT api/v1/pipelines/{id}

PUT
PATCH
https://app.pipelead.to
/api/v1/pipelines/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the pipeline.

Example:
1

Body Parameters

Example request:
curl --request PUT \
    "https://app.pipelead.to/api/v1/pipelines/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Updated Sales Pipeline\",
    \"description\": \"Updated description for the main sales pipeline\",
    \"is_default\": true
}"
Example response:
{
    "data": {
        "id": 1929,
        "name": "dicta numquam aut",
        "slug": "dicta-numquam-aut",
        "description": "Quisquam iure rerum optio rerum magnam sunt.",
        "is_default": false,
        "created_at": "2026-11-24 16:21:12",
        "updated_at": "2026-11-24 16:21:12"
    }
}

DELETE api/v1/pipelines/{id}

DELETE
https://app.pipelead.to
/api/v1/pipelines/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the pipeline.

Example:
1
Example request:
curl --request DELETE \
    "https://app.pipelead.to/api/v1/pipelines/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Produtos

Endpoints para gerenciar produtos

GET api/v1/products

GET
https://app.pipelead.to
/api/v1/products
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

sort
Campo e direção da ordenação. Use - para ordem descendente
required
Example:
-created_at
filter[name]
Filtrar por nome do produto (busca parcial)
required
Example:
Consultoria
filter[type]
Filtrar por tipo (one_time, recurring)
required
Example:
one_time
filter[category_id]
Filtrar por ID da categoria
required
Example:
1
filter[category.name]
Filtrar por nome da categoria (busca parcial)
required
Example:
Serviços
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
include
Incluir relacionamentos (category)
required
Example:
category
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/products?sort=-created_at&filter%5Bname%5D=Consultoria&filter%5Btype%5D=one_time&filter%5Bcategory_id%5D=1&page=1&per_page=15&include=category" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 11877,
            "name": "maxime quisquam rerum",
            "description": "Voluptas omnis nisi maxime ipsam consequuntur. At labore quae fuga sit est. Quo nisi doloribus sint doloremque laudantium aut.",
            "amount": 156761,
            "type": "single",
            "billing_interval": null,
            "created_at": "2026-11-24 16:21:13",
            "updated_at": "2026-11-24 16:21:13"
        },
        {
            "id": 11878,
            "name": "quod velit aut",
            "description": "Magni rerum eaque sit autem architecto. Maxime laborum reprehenderit fugiat ut. Et inventore mollitia eligendi enim.",
            "amount": 303820,
            "type": "recurring",
            "billing_interval": "year",
            "created_at": "2026-11-24 16:21:13",
            "updated_at": "2026-11-24 16:21:13"
        }
    ]
}

POST api/v1/products

POST
https://app.pipelead.to
/api/v1/products
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/products" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Produto Exemplo\",
    \"description\": \"Descrição detalhada do produto.\",
    \"amount\": 10000,
    \"type\": \"single\",
    \"billing_interval\": \"month\",
    \"product_category_id\": 1
}"
Example response:
{
    "data": {
        "id": 11879,
        "name": "culpa minima et",
        "description": "Dolorum tempora numquam totam iusto culpa unde consequatur. Et non corrupti vitae qui recusandae officia. Dolorem sit earum explicabo repudiandae error molestiae. Omnis fugit dolores in qui sit saepe tenetur.",
        "amount": 973029,
        "type": "recurring",
        "billing_interval": "year",
        "created_at": "2026-11-24 16:21:13",
        "updated_at": "2026-11-24 16:21:13"
    }
}

GET api/v1/products/{id}

GET
https://app.pipelead.to
/api/v1/products/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the product.

Example:
1
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/products/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": 11880,
        "name": "expedita voluptatem eveniet",
        "description": "Similique autem eius ipsa enim velit. Molestiae suscipit repudiandae nisi quo perferendis similique. Culpa molestiae reiciendis sapiente alias dicta illo quia.",
        "amount": 965796,
        "type": "recurring",
        "billing_interval": "year",
        "created_at": "2026-11-24 16:21:13",
        "updated_at": "2026-11-24 16:21:13"
    }
}

PUT api/v1/products/{id}

PUT
PATCH
https://app.pipelead.to
/api/v1/products/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the product.

Example:
1

Body Parameters

Example request:
curl --request PUT \
    "https://app.pipelead.to/api/v1/products/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Produto Exemplo\",
    \"description\": \"Descrição detalhada do produto.\",
    \"amount\": 10000,
    \"type\": \"single\",
    \"billing_interval\": \"month\",
    \"product_category_id\": 1
}"
Example response:
{
    "data": {
        "id": 11881,
        "name": "veritatis eaque dignissimos",
        "description": "Harum minus deserunt mollitia quia et sed natus temporibus. Molestias quia at error. Quaerat quo ad molestiae delectus exercitationem consequatur est.",
        "amount": 620347,
        "type": "single",
        "billing_interval": "year",
        "created_at": "2026-11-24 16:21:13",
        "updated_at": "2026-11-24 16:21:13"
    }
}

DELETE api/v1/products/{id}

DELETE
https://app.pipelead.to
/api/v1/products/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the product.

Example:
1
Example request:
curl --request DELETE \
    "https://app.pipelead.to/api/v1/products/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]

Status (Labels)

Endpoints para consultar status disponíveis

GET api/v1/labels

GET
https://app.pipelead.to
/api/v1/labels
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

sort
Campo e direção da ordenação. Use - para ordem descendente
required
Example:
order
filter[type]
Filtrar por tipo (unqualified, qualified, lost, acquired, evaluated, scheduled, pending)
required
Example:
qualified
include
Incluir relacionamentos. Use "pipeline" para carregar dados do pipeline
required
Example:
pipeline
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/labels?sort=order&filter%5Btype%5D=qualified&include=pipeline" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 25913,
            "name": "numquam",
            "type": "qualified",
            "color": "#52e221",
            "order": 2,
            "is_default": false,
            "pipeline_id": null,
            "created_at": "2026-11-24 16:21:12",
            "updated_at": "2026-11-24 16:21:12"
        },
        {
            "id": 25914,
            "name": "molestiae",
            "type": "unqualified",
            "color": "#ce5978",
            "order": 11,
            "is_default": false,
            "pipeline_id": null,
            "created_at": "2026-11-24 16:21:12",
            "updated_at": "2026-11-24 16:21:12"
        }
    ]
}

GET api/v1/labels/{id}

GET
https://app.pipelead.to
/api/v1/labels/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the label.

Example:
8922
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/labels/8922" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": 25915,
        "name": "neque",
        "type": "qualified",
        "color": "#46bc5f",
        "order": 16,
        "is_default": false,
        "pipeline_id": null,
        "created_at": "2026-11-24 16:21:12",
        "updated_at": "2026-11-24 16:21:12"
    }
}

Tags

Endpoints para gerenciar tags

GET api/v1/tags

GET
https://app.pipelead.to
/api/v1/tags
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

sort
Campo e direção da ordenação
required
Example:
-created_at
filter[tag]
Filtrar por nome
required
Example:
VIP
filter[type]
Filtrar por tipo
required
Example:
shared
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/tags?sort=-created_at&filter%5Btag%5D=VIP&filter%5Btype%5D=shared" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 29768,
            "name": "vel"
        },
        {
            "id": 29769,
            "name": "vero"
        }
    ]
}

POST api/v1/tags

POST
https://app.pipelead.to
/api/v1/tags
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/tags" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"tag\": \"Cliente VIP\",
    \"type\": \"shared\",
    \"color\": \"#FF0000\"
}"
Example response:
{
    "data": {
        "id": 29770,
        "name": "nesciunt"
    }
}

GET api/v1/tags/{id}

GET
https://app.pipelead.to
/api/v1/tags/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the tag.

Example:
111
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/tags/111" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": 29771,
        "name": "maxime"
    }
}

PUT api/v1/tags/{id}

PUT
PATCH
https://app.pipelead.to
/api/v1/tags/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the tag.

Example:
111

Body Parameters

Example request:
curl --request PUT \
    "https://app.pipelead.to/api/v1/tags/111" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"tag\": \"Cliente Premium\",
    \"type\": \"shared\",
    \"color\": \"#00FF00\"
}"
Example response:
{
    "data": {
        "id": 29772,
        "name": "autem"
    }
}

DELETE api/v1/tags/{id}

DELETE
https://app.pipelead.to
/api/v1/tags/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the tag.

Example:
111
Example request:
curl --request DELETE \
    "https://app.pipelead.to/api/v1/tags/111" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]

Tarefas

Endpoints para gerenciar tarefas

GET api/v1/tasks

GET
https://app.pipelead.to
/api/v1/tasks
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

sort
Campo e direção da ordenação. Use - para ordem descendente
required
Example:
-due_at
filter[description]
Filtrar por descrição (busca parcial)
required
Example:
Ligar
filter[lead.name]
Filtrar por nome do lead (busca parcial)
required
Example:
João
filter[due_at]
Filtrar por data de vencimento (Y-m-d)
required
Example:
2024-01-01
filter[completed]
Filtrar por status de conclusão (true/false)
required
Example:
true
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/tasks?sort=-due_at&filter%5Bdescription%5D=Ligar&filter%5Bdue_at%5D=2024-01-01&filter%5Bcompleted%5D=1&page=1&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 131211,
            "description": "Facilis ratione nihil dolorem dolores labore.",
            "due_at": "2026-11-29",
            "completed_at": null,
            "created_at": "2026-11-24 16:21:11",
            "updated_at": "2026-11-24 16:21:11"
        },
        {
            "id": 131212,
            "description": "Nesciunt perspiciatis corrupti natus soluta ipsam.",
            "due_at": "2026-11-24",
            "completed_at": null,
            "created_at": "2026-11-24 16:21:11",
            "updated_at": "2026-11-24 16:21:11"
        }
    ]
}

POST api/v1/tasks

POST
https://app.pipelead.to
/api/v1/tasks
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/tasks" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Ligar para cliente\",
    \"lead_id\": 123,
    \"due_at\": \"2024-01-30\",
    \"assigned_to\": 123
}"
Example response:
{
    "data": {
        "id": 131213,
        "description": "Maiores iure veniam aut ut temporibus eius sit eligendi.",
        "due_at": "2026-11-20",
        "completed_at": null,
        "created_at": "2026-11-24 16:21:11",
        "updated_at": "2026-11-24 16:21:11"
    }
}

GET api/v1/tasks/{id}

GET
https://app.pipelead.to
/api/v1/tasks/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the task.

Example:
1
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/tasks/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": 131214,
        "description": "Vero nulla autem velit asperiores nulla aspernatur quis dolores.",
        "due_at": "2026-11-29",
        "completed_at": null,
        "created_at": "2026-11-24 16:21:11",
        "updated_at": "2026-11-24 16:21:11"
    }
}

PUT api/v1/tasks/{id}

PUT
PATCH
https://app.pipelead.to
/api/v1/tasks/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the task.

Example:
1

Body Parameters

Example request:
curl --request PUT \
    "https://app.pipelead.to/api/v1/tasks/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Ligar para cliente\",
    \"due_at\": \"2024-01-30\",
    \"completed_at\": \"2026-11-24 16:21:11\",
    \"completed_by\": 15,
    \"assigned_to\": 6
}"
Example response:
{
    "data": {
        "id": 131215,
        "description": "Libero nobis dolor quia similique animi ullam.",
        "due_at": "2026-11-29",
        "completed_at": null,
        "created_at": "2026-11-24 16:21:11",
        "updated_at": "2026-11-24 16:21:11"
    }
}

DELETE api/v1/tasks/{id}

DELETE
https://app.pipelead.to
/api/v1/tasks/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the task.

Example:
1
Example request:
curl --request DELETE \
    "https://app.pipelead.to/api/v1/tasks/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]

POST api/v1/tasks/{task_id}/complete

POST
https://app.pipelead.to
/api/v1/tasks/{task_id}/complete
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

task_id
integer
required

The ID of the task.

Example:
1

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/tasks/1/complete" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"completed_by\": 1
}"
Example response:

Transcrições

Leitura das transcrições de reuniões do projeto, por agendamento ou por lead. A listagem traz metadados, resumo, lead e agendamento; o conteúdo completo (text e segments) só vem no endpoint de detalhe.

GET api/v1/appointments/{appointment_id}/transcripts

GET
https://app.pipelead.to
/api/v1/appointments/{appointment_id}/transcripts
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

appointment_id
integer
required

The ID of the appointment.

Example:
10

Query Parameters

filter[source]
Filtrar pela origem: manual ou google_meet
required
Example:
google_meet
filter[started_at]
Filtrar por início da reunião. Use Y-m-d para o dia inteiro (no fuso do projeto) ou operadores: >=, <=, >, <, <>.
required
Example:
>=2024-01-01
filter[created_at]
Filtrar por data de criação. Mesmo formato de filter[started_at].
required
Example:
>=2024-01-01,<2024-02-01
sort
Campo e direção da ordenação (started_at, created_at). Use - para ordem descendente
required
Example:
-created_at
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/appointments/10/transcripts?filter%5Bsource%5D=google_meet&filter%5Bstarted_at%5D=%3E%3D2024-01-01&filter%5Bcreated_at%5D=%3E%3D2024-01-01%2C%3C2024-02-01&sort=-created_at&page=1&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 49,
            "appointment_id": 213127,
            "lead_uuid": "189e9114-a9af-4819-997f-1175d9b97d27",
            "source": "manual",
            "language": null,
            "started_at": null,
            "ended_at": null,
            "created_at": "2026-11-24T16:21:10+00:00",
            "updated_at": "2026-11-24T16:21:10+00:00",
            "summary": null,
            "summary_status": "pending",
            "summary_generated_at": null,
            "lead": {
                "id": "189e9114-a9af-4819-997f-1175d9b97d27",
                "name": "Maryse Hodkiewicz Sr.",
                "email": "emily.konopelski@example.org",
                "phone": "+55 (38) 98888-9208"
            },
            "appointment": {
                "id": 213127,
                "description": "Sed ipsam enim non. Amet voluptatum at nesciunt rerum quod. Perferendis dolor cupiditate non unde ut iste. Molestiae nesciunt voluptatibus ut aut.",
                "starts_at": "2026-11-26T19:21:10+00:00",
                "ends_at": "2026-11-26T20:21:10+00:00",
                "status": "scheduled",
                "calendar": {
                    "id": 1583,
                    "name": "cum"
                }
            }
        },
        {
            "id": 50,
            "appointment_id": 213128,
            "lead_uuid": "e3d4f776-7366-4da5-8e6f-8ce41bdb1c2c",
            "source": "manual",
            "language": null,
            "started_at": null,
            "ended_at": null,
            "created_at": "2026-11-24T16:21:10+00:00",
            "updated_at": "2026-11-24T16:21:10+00:00",
            "summary": null,
            "summary_status": "pending",
            "summary_generated_at": null,
            "lead": {
                "id": "e3d4f776-7366-4da5-8e6f-8ce41bdb1c2c",
                "name": "Arnaldo Hoppe",
                "email": "coy.dibbert@example.net",
                "phone": "+55 (66) 99876-9483"
            },
            "appointment": {
                "id": 213128,
                "description": "Labore minima quaerat est ex pariatur necessitatibus fugit. Dolor ut assumenda eveniet nostrum. Hic nihil et pariatur repellendus iste voluptas a mollitia. Aut aut aut eligendi quia earum.",
                "starts_at": "2026-12-22T19:21:10+00:00",
                "ends_at": "2026-12-22T20:21:10+00:00",
                "status": "scheduled",
                "calendar": {
                    "id": 1585,
                    "name": "ut"
                }
            },
            "text": "Ipsum illum occaecati delectus et velit ipsa. Inventore dolorem alias minus molestias consequatur sit asperiores. Voluptatem sit ut nam incidunt odio. Nulla in tempore in sed.\n\nVoluptates rem suscipit veritatis minus aspernatur quis labore dolorem. Sit enim id temporibus culpa sit illo dolores. Consequatur qui est sequi debitis quaerat. Odio in quia sunt quia ipsa soluta veritatis aut.\n\nNam quia perferendis quisquam qui. Laboriosam et corporis officia dolore quis fugiat rem.",
            "segments": null
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Anterior",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Próximo &raquo;",
                "page": null,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 15,
        "to": 2,
        "total": 2
    }
}

GET api/v1/transcripts

GET
https://app.pipelead.to
/api/v1/transcripts
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

filter[source]
Filtrar pela origem: manual ou google_meet
required
Example:
google_meet
filter[lead_uuid]
Filtrar pelo UUID do lead
required
Example:
9a1b2c3d-4e5f-6789-abcd-ef0123456789
filter[appointment_id]
Filtrar por agendamento
required
Example:
10
filter[summary_status]
Filtrar pelo status do resumo: pending, generating, ready ou failed
required
Example:
ready
filter[started_at]
Filtrar por início da reunião. Use Y-m-d para o dia inteiro (no fuso do projeto) ou operadores: >=, <=, >, <, <>.
required
Example:
>=2024-01-01
filter[created_at]
Filtrar por data de criação. Mesmo formato de filter[started_at].
required
Example:
>=2024-01-01,<2024-02-01
filter[updated_at]
Filtrar pela última alteração (inclui resumo gerado ou refeito). Útil para sincronização incremental. Mesmo formato de filter[started_at].
required
Example:
>=2024-01-01
sort
Campo e direção da ordenação (started_at, created_at, updated_at). Use - para ordem descendente
required
Example:
-updated_at
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/transcripts?filter%5Bsource%5D=google_meet&filter%5Blead_uuid%5D=9a1b2c3d-4e5f-6789-abcd-ef0123456789&filter%5Bappointment_id%5D=10&filter%5Bsummary_status%5D=ready&filter%5Bstarted_at%5D=%3E%3D2024-01-01&filter%5Bcreated_at%5D=%3E%3D2024-01-01%2C%3C2024-02-01&filter%5Bupdated_at%5D=%3E%3D2024-01-01&sort=-updated_at&page=1&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 51,
            "appointment_id": 213129,
            "lead_uuid": "444dd2f3-6562-4162-abaf-b0f8eb76ff34",
            "source": "manual",
            "language": null,
            "started_at": null,
            "ended_at": null,
            "created_at": "2026-11-24T16:21:12+00:00",
            "updated_at": "2026-11-24T16:21:12+00:00",
            "summary": null,
            "summary_status": "pending",
            "summary_generated_at": null,
            "lead": {
                "id": "444dd2f3-6562-4162-abaf-b0f8eb76ff34",
                "name": "Presley Howell",
                "email": "schimmel.willy@example.org",
                "phone": "+55 (40) 93129-9466"
            },
            "appointment": {
                "id": 213129,
                "description": "Aut cum ut exercitationem et sunt aut. Delectus quas et occaecati tempore. Nihil aspernatur omnis deserunt quos facere.",
                "starts_at": "2026-12-22T19:21:12+00:00",
                "ends_at": "2026-12-22T20:21:12+00:00",
                "status": "scheduled",
                "calendar": {
                    "id": 1607,
                    "name": "aut"
                }
            }
        },
        {
            "id": 52,
            "appointment_id": 213130,
            "lead_uuid": "af50e916-c552-44d0-b1c9-bcf41f568485",
            "source": "manual",
            "language": null,
            "started_at": null,
            "ended_at": null,
            "created_at": "2026-11-24T16:21:12+00:00",
            "updated_at": "2026-11-24T16:21:12+00:00",
            "summary": null,
            "summary_status": "pending",
            "summary_generated_at": null,
            "lead": {
                "id": "af50e916-c552-44d0-b1c9-bcf41f568485",
                "name": "Claudia Conn",
                "email": "madelynn.zemlak@example.com",
                "phone": "+55 (78) 99285-9253"
            },
            "appointment": {
                "id": 213130,
                "description": "Aliquid ducimus nobis illum voluptatibus nam. Qui enim rerum et. Porro excepturi quibusdam repudiandae molestias dolor aut.",
                "starts_at": "2026-12-12T19:21:12+00:00",
                "ends_at": "2026-12-12T20:21:12+00:00",
                "status": "scheduled",
                "calendar": {
                    "id": 1609,
                    "name": "et"
                }
            },
            "text": "Optio perferendis rerum et fugiat perspiciatis dolorum. Reiciendis magnam dignissimos at enim dolores aut assumenda. Veritatis enim repellat consectetur.\n\nPariatur commodi error sed voluptate fugiat est accusamus doloribus. Ullam ex reprehenderit qui laborum vitae officiis consequatur. Harum et nam qui et nesciunt sed quod ducimus. Et quia rem quia minima molestiae aliquid enim voluptates.\n\nEius repellat excepturi voluptatem est voluptas. Voluptatem adipisci quisquam placeat dicta vero. Tempora quia qui eos repellat dolorem quaerat libero. Odio ut fugit et commodi assumenda atque rem saepe.",
            "segments": null
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Anterior",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Próximo &raquo;",
                "page": null,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 15,
        "to": 2,
        "total": 2
    }
}

GET api/v1/leads/{lead_uuid}/transcripts

GET
https://app.pipelead.to
/api/v1/leads/{lead_uuid}/transcripts
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

lead_uuid
integer
required
Example:
325

Query Parameters

filter[source]
Filtrar pela origem: manual ou google_meet
required
Example:
google_meet
filter[appointment_id]
Filtrar por agendamento do lead
required
Example:
10
filter[started_at]
Filtrar por início da reunião. Use Y-m-d para o dia inteiro (no fuso do projeto) ou operadores: >=, <=, >, <, <>.
required
Example:
>=2024-01-01
filter[created_at]
Filtrar por data de criação. Mesmo formato de filter[started_at].
required
Example:
>=2024-01-01,<2024-02-01
sort
Campo e direção da ordenação (started_at, created_at). Use - para ordem descendente
required
Example:
-created_at
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/leads/325/transcripts?filter%5Bsource%5D=google_meet&filter%5Bappointment_id%5D=10&filter%5Bstarted_at%5D=%3E%3D2024-01-01&filter%5Bcreated_at%5D=%3E%3D2024-01-01%2C%3C2024-02-01&sort=-created_at&page=1&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 53,
            "appointment_id": 213131,
            "lead_uuid": "46ff6c06-116c-4d20-a936-253638186be4",
            "source": "manual",
            "language": null,
            "started_at": null,
            "ended_at": null,
            "created_at": "2026-11-24T16:21:12+00:00",
            "updated_at": "2026-11-24T16:21:12+00:00",
            "summary": null,
            "summary_status": "pending",
            "summary_generated_at": null,
            "lead": {
                "id": "46ff6c06-116c-4d20-a936-253638186be4",
                "name": "Dr. Aaron Douglas",
                "email": "kitty50@example.net",
                "phone": "+55 (63) 90988-9629"
            },
            "appointment": {
                "id": 213131,
                "description": "Iste adipisci est enim iusto. Tempora repudiandae iure error odit accusamus. Dolorem ea aliquam deserunt dolore quisquam. Aspernatur doloribus voluptas deleniti similique.",
                "starts_at": "2026-12-24T19:21:12+00:00",
                "ends_at": "2026-12-24T20:21:12+00:00",
                "status": "scheduled",
                "calendar": {
                    "id": 1611,
                    "name": "placeat"
                }
            }
        },
        {
            "id": 54,
            "appointment_id": 213132,
            "lead_uuid": "f2444a59-5424-4198-ba82-11972e8a747d",
            "source": "manual",
            "language": null,
            "started_at": null,
            "ended_at": null,
            "created_at": "2026-11-24T16:21:12+00:00",
            "updated_at": "2026-11-24T16:21:12+00:00",
            "summary": null,
            "summary_status": "pending",
            "summary_generated_at": null,
            "lead": {
                "id": "f2444a59-5424-4198-ba82-11972e8a747d",
                "name": "Mrs. Rosemarie Graham IV",
                "email": "kris.estella@example.net",
                "phone": "+55 (13) 93002-9883"
            },
            "appointment": {
                "id": 213132,
                "description": "Est totam et temporibus ad. Consectetur excepturi fugiat expedita aut est. Maiores eos itaque ab nihil optio excepturi et hic. Fuga vel et sint.",
                "starts_at": "2026-12-01T19:21:12+00:00",
                "ends_at": "2026-12-01T20:21:12+00:00",
                "status": "scheduled",
                "calendar": {
                    "id": 1613,
                    "name": "est"
                }
            },
            "text": "Eos fuga voluptate vel ab totam provident ut. Nemo harum aut sint quo possimus. Magnam exercitationem et ratione.\n\nQui dolorem sed quod neque eveniet quia. Dolore suscipit nemo incidunt tempora sit inventore. Corporis id quae dolor dignissimos.\n\nRerum molestiae sint quia corporis in est. Incidunt pariatur impedit amet animi mollitia. Et aliquid totam quisquam omnis.",
            "segments": null
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Anterior",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Próximo &raquo;",
                "page": null,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 15,
        "to": 2,
        "total": 2
    }
}

GET api/v1/transcripts/{id}

GET
https://app.pipelead.to
/api/v1/transcripts/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the transcript.

Example:
3
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/transcripts/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": 55,
        "appointment_id": 213133,
        "lead_uuid": "83faa404-e939-4e8b-868b-537c7d7c140e",
        "source": "manual",
        "language": null,
        "started_at": null,
        "ended_at": null,
        "created_at": "2026-11-24T16:21:12+00:00",
        "updated_at": "2026-11-24T16:21:12+00:00",
        "summary": null,
        "summary_status": "pending",
        "summary_generated_at": null,
        "lead": {
            "id": "83faa404-e939-4e8b-868b-537c7d7c140e",
            "name": "Ozella McKenzie",
            "email": "laila01@example.net",
            "phone": "+55 (49) 94285-9576"
        },
        "appointment": {
            "id": 213133,
            "description": "Aliquam et unde minima quas eius eveniet consectetur id. Aut omnis autem nobis veritatis. Consequuntur nulla qui est eos repellendus voluptas.",
            "starts_at": "2026-12-16T19:21:12+00:00",
            "ends_at": "2026-12-16T20:21:12+00:00",
            "status": "scheduled",
            "calendar": {
                "id": 1615,
                "name": "magni"
            }
        }
    }
}

Usuários

Endpoints para gerenciar usuários do projeto

GET api/v1/users

GET
https://app.pipelead.to
/api/v1/users
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

filter[name]
Filtrar por nome
required
Example:
João
filter[email]
Filtrar por email
required
Example:
joao@email.com
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/users?filter%5Bname%5D=Jo%C3%A3o&filter%5Bemail%5D=joao%40email.com&page=1&per_page=15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 4799,
            "name": "Dorothy Kozey",
            "email": "mkuvalis@example.net",
            "created_at": "2026-11-24 16:21:13"
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=2",
        "prev": null,
        "next": "/?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 2,
        "links": [
            {
                "url": null,
                "label": "&laquo; Anterior",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": "/?page=2",
                "label": "2",
                "page": 2,
                "active": false
            },
            {
                "url": "/?page=2",
                "label": "Próximo &raquo;",
                "page": 2,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 1,
        "to": 1,
        "total": 2
    }
}

POST api/v1/users/{user_id}/attach

POST
https://app.pipelead.to
/api/v1/users/{user_id}/attach
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

user_id
integer
required

The ID of the user.

Example:
1

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/users/1/attach" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"role\": \"manager\"
}"

DELETE api/v1/users/{user_id}/detach

DELETE
https://app.pipelead.to
/api/v1/users/{user_id}/detach
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

user_id
integer
required

The ID of the user.

Example:
1
Example request:
curl --request DELETE \
    "https://app.pipelead.to/api/v1/users/1/detach" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Vendas

Endpoints para gerenciar vendas

GET api/v1/sales

GET
https://app.pipelead.to
/api/v1/sales
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

sort
Campo e direção da ordenação. Use - para ordem descendente
required
Example:
-amount
filter[amount]
Filtrar por valor exato da venda
required
Example:
5000
filter[lead.name]
Filtrar por nome do lead (busca parcial)
required
Example:
João
filter[lead.email]
Filtrar por email do lead
required
Example:
joao@exemplo.com.br
filter[lead.uuid]
Filtrar por UUID do lead (match exato). Aceita vários UUIDs separados por vírgula
required
Example:
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d,1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed
filter[created_at]
Filtrar por data de criação técnica, resolvida no fuso do projeto. Use Y-m-d para o dia inteiro ou operadores para intervalos: >=, <=, >, <, <>. Combine dois valores separados por vírgula para um intervalo fechado.
required
Example:
>=2024-01-01,<2024-02-01
filter[reference_date]
Filtrar por data de negócio (competência) da venda. Aceita Y-m-d exato ou operadores para intervalos: >=, <=, >, <, <>. Não confundir com created_at: a competência é informada por quem lança e costuma ser retroativa.
required
Example:
2024-01-01
filter[author.name]
Filtrar por nome do autor (busca parcial)
required
Example:
João
page
Número da página para paginação
required
Example:
1
per_page
Quantidade de itens por página (max: 100)
required
Example:
15
include
Relacionamentos adicionais: lead, author, tags, products, quote
required
Example:
quote
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/sales?sort=-amount&filter%5Bamount%5D=5000&filter%5Bcreated_at%5D=%3E%3D2024-01-01%2C%3C2024-02-01&filter%5Breference_date%5D=2024-01-01&page=1&per_page=15&include=quote" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 104084,
            "amount": 34739.55,
            "sold_at": "2026-07-01",
            "reference_date": "2026-07-01",
            "created_at": "2026-07-01 19:56:47",
            "updated_at": "2026-11-24 16:21:09"
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=2",
        "prev": null,
        "next": "/?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 2,
        "links": [
            {
                "url": null,
                "label": "&laquo; Anterior",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": "/?page=2",
                "label": "2",
                "page": 2,
                "active": false
            },
            {
                "url": "/?page=2",
                "label": "Próximo &raquo;",
                "page": 2,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 1,
        "to": 1,
        "total": 2
    }
}

POST api/v1/sales

POST
https://app.pipelead.to
/api/v1/sales
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://app.pipelead.to/api/v1/sales" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 500000,
    \"lead_id\": \"f7b1f1b0-5b1b-4b3b-8b1b-1b1b1b1b1b1b\",
    \"tags\": [
        180215.2
    ],
    \"created_by\": 1,
    \"products\": [
        {
            \"product_id\": 1,
            \"amount\": 10000,
            \"quantity\": 2
        },
        {
            \"product_id\": 2,
            \"amount\": 5000,
            \"quantity\": 1
        }
    ],
    \"sold_at\": \"2025-01-15\"
}"
Example response:

GET api/v1/sales/{id}

GET
https://app.pipelead.to
/api/v1/sales/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the sale.

Example:
2
Example request:
curl --request GET \
    --get "https://app.pipelead.to/api/v1/sales/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": {
        "id": 104086,
        "amount": 49169.27,
        "sold_at": "2026-08-08",
        "reference_date": "2026-08-08",
        "created_at": "2026-08-08 20:04:28",
        "updated_at": "2026-11-24 16:21:10"
    }
}

PUT api/v1/sales/{id}

PUT
PATCH
https://app.pipelead.to
/api/v1/sales/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the sale.

Example:
2

Body Parameters

Example request:
curl --request PUT \
    "https://app.pipelead.to/api/v1/sales/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 500000,
    \"tags\": [
        2824.67702
    ],
    \"created_by\": 1,
    \"sold_at\": \"2025-01-15\"
}"
Example response:
{
    "data": {
        "id": 104087,
        "amount": 23088.07,
        "sold_at": "2026-11-19",
        "reference_date": "2026-11-19",
        "created_at": "2026-11-19 20:35:38",
        "updated_at": "2026-11-24 16:21:10"
    }
}

DELETE api/v1/sales/{id}

DELETE
https://app.pipelead.to
/api/v1/sales/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the sale.

Example:
2
Example request:
curl --request DELETE \
    "https://app.pipelead.to/api/v1/sales/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]