Works
Trabalhos dos agents
Listar os trabalhos da conta
Authorizations
x-company_idstringRequired
Query parameters
pagenumberOptionalDefault:
Pagina atual da listagem
0limitnumberOptionalDefault:
Limite de registro por página(max. 200)
50work_typestring · enumOptionalDefault:
Tipo de trabalho
allPossible values: work_namestringOptional
Nome do trabalho buscado
Responses
200
successful operation
application/json
pagenumberOptionalExample:
0totalnumberOptionalExample:
1234400
Invalid status value
default
Unexpected error
application/json
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
Authorizations
x-company_idstringRequired
Body
work_idstringOptionalExample:
6f74ac6e-7f0f-40a1-bcc7-9f34fdfacfecwork_typestringOptionalExample:
outboundResponses
200
successful operation
No content
404
Trabalho não encontrado
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
Authorizations
x-company_idstringRequired
Body
work_idstringOptionalExample:
6f74ac6e-7f0f-40a1-bcc7-9f34fdfacfecwork_typestringOptionalExample:
outboundResponses
200
successful operation
No content
404
Trabalho não encontrado
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
Authorizations
x-company_idstringRequired
Query parameters
work_idstringRequiredExample:
Id do trabalho
0ba0e3b4-b95e-42af-9c2c-36b69f19a018work_lead_idstringRequiredExample:
Id do lead no trabalho
0ba0e3b4-b95e-42af-9c2c-36b69f19a018work_typestring · enumRequiredExample:
Tipo de trabalho
outboundPossible values: Responses
200
successful operation
No content
404
Trabalho ou lead nao encontrado
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