Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Works

Trabalhos dos agents

Listar os trabalhos da conta

get

Listar os trabalhos da conta

Authorizations
x-company_idstringRequired
Query parameters
pagenumberOptional

Pagina atual da listagem

Default: 0
limitnumberOptional

Limite de registro por página(max. 200)

Default: 50
work_typestring · enumOptional

Tipo de trabalho

Default: allPossible values:
work_namestringOptional

Nome do trabalho buscado

Responses
200

successful operation

application/json
pagenumberOptionalExample: 0
totalnumberOptionalExample: 1234
get/work
GET /v1/pub/work HTTP/1.1
Host: api.multiagents.app
x-company_id: YOUR_API_KEY
Accept: */*
{
  "page": 0,
  "total": 1234,
  "works": [
    {
      "agent_id": "43533fbd-3458-446f-912f-3bb9870176951",
      "work_status": "paused",
      "work_name": "Aquecimento",
      "work_id": "0ba0e3b4-b95e-42af-9c2c-36b69f19a018",
      "work_type": "outbound",
      "work_lead_id": "6f74ac6e-7f0f-40a1-bcc7-9f34fdfacfec",
      "lead_id": "c033e7cd-ab7f-4b80-9801-3c30ffd0bd4f",
      "team_id": null,
      "current_stage": "attention",
      "lead_temperature": "cold",
      "status": "discarded",
      "last_interaction_at": null,
      "added_at": "2025-02-13T11:43:49.044Z",
      "updated_at": "2025-02-13T11:43:49.044Z",
      "tag_ids": [
        "text"
      ],
      "completed_task_count": 6
    }
  ]
}

Alterar leads ao trabalho

post

Alterar leads ao trabalho

Authorizations
x-company_idstringRequired
Body
work_idstringOptionalExample: 6f74ac6e-7f0f-40a1-bcc7-9f34fdfacfec
work_typestringOptionalExample: outbound
Responses
200

successful operation

No content

post/work
POST /v1/pub/work HTTP/1.1
Host: api.multiagents.app
x-company_id: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 203

{
  "work_id": "6f74ac6e-7f0f-40a1-bcc7-9f34fdfacfec",
  "work_type": "outbound",
  "leads": [
    {
      "lead_id": "c033e7cd-ab7f-4b80-9801-3c30ffd0bd4f",
      "current_stage": "new",
      "lead_temperature": "cold",
      "status": "analyzing"
    }
  ]
}

No content

Adicionar leads ao trabalho

put

Adicionar leads ao trabalho

Authorizations
x-company_idstringRequired
Body
work_idstringOptionalExample: 6f74ac6e-7f0f-40a1-bcc7-9f34fdfacfec
work_typestringOptionalExample: outbound
Responses
200

successful operation

No content

put/work
PUT /v1/pub/work HTTP/1.1
Host: api.multiagents.app
x-company_id: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 203

{
  "work_id": "6f74ac6e-7f0f-40a1-bcc7-9f34fdfacfec",
  "work_type": "outbound",
  "leads": [
    {
      "lead_id": "c033e7cd-ab7f-4b80-9801-3c30ffd0bd4f",
      "current_stage": "new",
      "lead_temperature": "cold",
      "status": "analyzing"
    }
  ]
}

No content

Delete leads do trabalho

delete

Delete leads do trabalho

Authorizations
x-company_idstringRequired
Query parameters
work_idstringRequired

Id do trabalho

Example: 0ba0e3b4-b95e-42af-9c2c-36b69f19a018
work_lead_idstringRequired

Id do lead no trabalho

Example: 0ba0e3b4-b95e-42af-9c2c-36b69f19a018
work_typestring · enumRequired

Tipo de trabalho

Example: outboundPossible values:
Responses
200

successful operation

No content

delete/work
DELETE /v1/pub/work?work_id=0ba0e3b4-b95e-42af-9c2c-36b69f19a018&work_lead_id=0ba0e3b4-b95e-42af-9c2c-36b69f19a018&work_type=outbound HTTP/1.1
Host: api.multiagents.app
x-company_id: YOUR_API_KEY
Accept: */*

No content

Last updated