v1
Embudos

Consultar un embudo

GET/api/v1/pipelines/{id}

Devuelve un embudo por su id, con sus etapas.

La clave de API necesita el permisoConfigurar embudos y etapaspipelines.manage

Parámetros

NombreDóndeDescripción
idobligatoriostring (uuid)pathId del embudo.

Respuestas

200El embudo.
application/json
{
  "id": "fd6d3028-390a-4a5f-a30a-96cd98da840b",
  "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
  "name": "Pipeline de negócios",
  "color": null,
  "icon": null,
  "isDefault": true,
  "order": 0,
  "type": "Deal",
  "createdAt": "2026-11-17T14:57:14.441771Z",
  "updatedAt": null,
  "stages": [
    {
      "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
      "id": "88f89ad0-dd68-4f84-9b9b-337950ff949b",
      "pipelineId": "fd6d3028-390a-4a5f-a30a-96cd98da840b",
      "name": "Aberto",
      "color": "#94A3B8",
      "order": 0,
      "isWon": false,
      "isLost": false,
      "slaDays": null,
      "targetConversionRate": null,
      "createdAt": "2026-11-17T14:57:14.441771Z",
      "updatedAt": null
    },
    {
      "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
      "id": "72abe4d8-8ecb-4daa-8ae0-e8418a006488",
      "pipelineId": "fd6d3028-390a-4a5f-a30a-96cd98da840b",
      "name": "Proposta",
      "color": "#3B82F6",
      "order": 1,
      "isWon": false,
      "isLost": false,
      "slaDays": null,
      "targetConversionRate": null,
      "createdAt": "2026-11-17T14:57:14.441771Z",
      "updatedAt": null
    },
    {
      "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
      "id": "0c0bef33-7db7-42b7-9944-fd19da3851eb",
      "pipelineId": "fd6d3028-390a-4a5f-a30a-96cd98da840b",
      "name": "Negociação",
      "color": "#8B5CF6",
      "order": 2,
      "isWon": false,
      "isLost": false,
      "slaDays": null,
      "targetConversionRate": null,
      "createdAt": "2026-11-17T14:57:14.441771Z",
      "updatedAt": null
    },
    {
      "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
      "id": "63b3eae9-a9a8-46a1-81fc-807d25733798",
      "pipelineId": "fd6d3028-390a-4a5f-a30a-96cd98da840b",
      "name": "Fechado",
      "color": "#10B981",
      "order": 3,
      "isWon": true,
      "isLost": false,
      "slaDays": null,
      "targetConversionRate": null,
      "createdAt": "2026-11-17T14:57:14.441771Z",
      "updatedAt": null
    },
    {
      "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
      "id": "5f28b219-a697-41d6-9313-6ff7cde48dd6",
      "pipelineId": "fd6d3028-390a-4a5f-a30a-96cd98da840b",
      "name": "Perdido",
      "color": "#EF4444",
      "order": 4,
      "isWon": false,
      "isLost": true,
      "slaDays": null,
      "targetConversionRate": null,
      "createdAt": "2026-11-17T14:57:14.441771Z",
      "updatedAt": null
    }
  ]
}
401Credenciales ausentes o inválidas. La respuesta es la misma para una clave inexistente y para un secret incorrecto; sin el encabezado X-API-KEY, llega sin cuerpo.
application/json
{
  "error": "unauthorized",
  "message": "Credenciais de API inválidas."
}
403La clave se autenticó, pero no tiene el permiso que la ruta exige, o el plan no incluye la función.
application/json
{
  "error": "forbidden",
  "message": "A chave de API não tem acesso a esta rota: falta o escopo exigido, ou a rota não aceita chave de API."
}
404El registro no existe en esta empresa.
application/json
{
  "error": "not_found",
  "message": "Registro não encontrado."
}
429Se alcanzó el límite de solicitudes por minuto. Espera el tiempo del encabezado Retry-After.
application/json
{
  "error": "too_many_requests",
  "message": "Muitas requisições com esta chave de API. Aguarde o fim da janela e tente novamente."
}
curl -X GET "https://api.guria.io/api/v1/pipelines/{id}" \
  -H "X-API-KEY: $GURIA_API_KEY" \
  -H "X-API-SECRET: $GURIA_API_SECRET"
Respuesta · 200
{
  "id": "fd6d3028-390a-4a5f-a30a-96cd98da840b",
  "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
  "name": "Pipeline de negócios",
  "color": null,
  "icon": null,
  "isDefault": true,
  "order": 0,
  "type": "Deal",
  "createdAt": "2026-11-17T14:57:14.441771Z",
  "updatedAt": null,
  "stages": [
    {
      "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
      "id": "88f89ad0-dd68-4f84-9b9b-337950ff949b",
      "pipelineId": "fd6d3028-390a-4a5f-a30a-96cd98da840b",
      "name": "Aberto",
      "color": "#94A3B8",
      "order": 0,
      "isWon": false,
      "isLost": false,
      "slaDays": null,
      "targetConversionRate": null,
      "createdAt": "2026-11-17T14:57:14.441771Z",
      "updatedAt": null
    },
    {
      "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
      "id": "72abe4d8-8ecb-4daa-8ae0-e8418a006488",
      "pipelineId": "fd6d3028-390a-4a5f-a30a-96cd98da840b",
      "name": "Proposta",
      "color": "#3B82F6",
      "order": 1,
      "isWon": false,
      "isLost": false,
      "slaDays": null,
      "targetConversionRate": null,
      "createdAt": "2026-11-17T14:57:14.441771Z",
      "updatedAt": null
    },
    {
      "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
      "id": "0c0bef33-7db7-42b7-9944-fd19da3851eb",
      "pipelineId": "fd6d3028-390a-4a5f-a30a-96cd98da840b",
      "name": "Negociação",
      "color": "#8B5CF6",
      "order": 2,
      "isWon": false,
      "isLost": false,
      "slaDays": null,
      "targetConversionRate": null,
      "createdAt": "2026-11-17T14:57:14.441771Z",
      "updatedAt": null
    },
    {
      "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
      "id": "63b3eae9-a9a8-46a1-81fc-807d25733798",
      "pipelineId": "fd6d3028-390a-4a5f-a30a-96cd98da840b",
      "name": "Fechado",
      "color": "#10B981",
      "order": 3,
      "isWon": true,
      "isLost": false,
      "slaDays": null,
      "targetConversionRate": null,
      "createdAt": "2026-11-17T14:57:14.441771Z",
      "updatedAt": null
    },
    {
      "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
      "id": "5f28b219-a697-41d6-9313-6ff7cde48dd6",
      "pipelineId": "fd6d3028-390a-4a5f-a30a-96cd98da840b",
      "name": "Perdido",
      "color": "#EF4444",
      "order": 4,
      "isWon": false,
      "isLost": true,
      "slaDays": null,
      "targetConversionRate": null,
      "createdAt": "2026-11-17T14:57:14.441771Z",
      "updatedAt": null
    }
  ]
}