---
updatedAt: 2025-11-04T10:01:01.000Z
agentTools:
  projectIndex: https://api.fracttal.com/v3-pt/llms.txt
---

# Consultar recursos do tipo de serviço das tarefas

Através desta API você pode consultar a lista de recursos do tipo serviços que têm associados as diferentes tarefas criadas na sua companhia.

## Parâmetros de entrada

Pode-se filtrar a informação através do seguinte query\_params:

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Parâmetro
      </th>

      <th style={{ textAlign: "left" }}>
        Tipo
      </th>

      <th style={{ textAlign: "left" }}>
        Requerido
      </th>

      <th style={{ textAlign: "left" }}>
        Descrição
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        <code>id_task</code>
      </td>

      <td style={{ textAlign: "left" }}>
        _Inteiro_
      </td>

      <td style={{ textAlign: "left" }}>
        Opcional
      </td>

      <td style={{ textAlign: "left" }}>
        Id da tarefa. [Pode ser consultado aqui.](https://api.fracttal.com/reference/consultar-activadores-de-las-tareas) (campo _id_task_)
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        <code>start</code>
      </td>

      <td style={{ textAlign: "left" }}>
        _Inteiro_
      </td>

      <td style={{ textAlign: "left" }}>
        Opcional
      </td>

      <td style={{ textAlign: "left" }}>
        Número de registro onde iniciará a consulta. Por padrão 0.  
        Todas as consultas estão limitadas a 100 registros, quando há mais dessa quantidade deve-se utilizar este parâmetro para a paginação.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        <code>limit</code>
      </td>

      <td style={{ textAlign: "left" }}>
        _Inteiro_
      </td>

      <td style={{ textAlign: "left" }}>
        Opcional
      </td>

      <td style={{ textAlign: "left" }}>
        Quantidade de registros que mostrará a petição. O valor por padrão é 100.
      </td>
    </tr>
  </tbody>
</Table>

## Parâmetros de saída

| Parâmetro                      | Tipo      | Descrição      |
| :----------------------------- | :-------- | :------------- |
| <code>id\_task</code>          | *Inteiro* | Id da tarefa   |
| <code>id\_service\_type</code> | *Inteiro* | Id do serviço  |
| <code>qty</code>               | *Inteiro* | Quantidade     |
| <code>unit\_cost</code>        | *Inteiro* | Custo unitário |
| <code>total\_cost</code>       | *Inteiro* | Custo total    |
| <code>order\_number</code>     | *Inteiro* | Ordem          |
| <code>note</code>              | *Texto*   | Nota           |

## Exemplo:

Petição: **(GET)<https://app.fracttal.com/api/tasks_resources_services/>**

```json Response
{
  "success": true,
  "message": "200",
  "data": [
     {
            "id": 6,
            "id_company": 914,
            "id_task": 42,
            "id_service_type": 3,
            "qty": 1,
            "unit_cost": 801500,
            "total_cost": 801500,
            "order_number": 4,
            "iterations": {},
            "note": null
        },
        {
            "id": 29,
            "id_company": 914,
            "id_task": 105,
            "id_service_type": 8,
            "qty": 1,
            "unit_cost": 1500,
            "total_cost": 1500,
            "order_number": 5,
            "iterations": {},
            "note": null
        },
        {
            "id": 24,
            "id_company": 914,
            "id_task": 44,
            "id_service_type": 11,
            "qty": 1,
            "unit_cost": null,
            "total_cost": 0,
            "order_number": 6,
            "iterations": {},
            "note": null
        },
        {
            "id": 16271,
            "id_company": 914,
            "id_task": 1123959,
            "id_service_type": 1369,
            "qty": 1,
            "unit_cost": 300,
            "total_cost": 300,
            "order_number": 2,
            "iterations": {},
            "note": null
        }
  ],
  "total": 4
}
```

<HTMLBlock>{`
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Maven+Pro&display=swap" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Heebo' rel='stylesheet'>
<style>
      table {
      border-collapse: collapse;
      border-radius: 1em;
      overflow: hidden;
    }
    
    th,
    td {
      border: 1px solid #E5E5E5;
      padding: 1em;
    }


    body {
      margin: 1.5em;
    }

    .font{
font-size: 14px;
font-weight: 700;
line-height: 17px;
letter-spacing: 0em;
text-align: left;
    color: #4687F1;
      font-style: uppercase;
  }
    table thead {
      background: rgba(70, 135, 241, 0.1) !important;
      color: #4687F1 !important;
      font-size: 13px !important;
      line-height: 17px !important;
    }
  .type-get {
      background-color: #6bbd5b;
      color: white;
      font-size: .7rem;
      padding: .2rem;
      border-radius: .2rem;
      text-transform: uppercase;
      font-weight: bold;
  }
  
  .frame-full {
      width: 100%;
      height: 1000px;
      border-width: 0;
  }

  h1, h2, h3, h4, h5, h6 {
  	font-family: 'Heebo', sans-serif;
  }
  
  code {
  	max-height: 40vh!important;
  }
  
  hr.rounded {
    border-top: 5px solid black;
    border-radius: 5px;
  }
  
  #ReferencePlayground {
  	display: none;
  }
  .Reference-section {
  	display: none;
  }
</style>
`}</HTMLBlock>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "Consultar recursos do tipo de serviço das tarefas"
  },
  "servers": [
    {
      "url": " https://app.fracttal.com/api/tasks_resources_services"
    }
  ],
  "paths": {
    "/ ": {
      "get": {
        "description": "",
        "operationId": "",
        "responses": {
          "200": {
            "description": ""
          }
        },
        "parameters": []
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": true
  }
}
```