Plazbot Developer Hub
Automation
Contact
Opportunity
Workspace
Opportunity
Get Opportunity By Id
Servicio para Obtener una oportunidad filtrado por el ID.
GET
/
api
/
opportunity
/
{id}
curl --request GET \
--url https://api.plazbot.com/api/opportunity/{id} \
--header 'x-workspace-id: <x-workspace-id>'
{
"success": true,
"code": 200,
"errorCode": null,
"message": "List obtained successfully.",
"data": [
{
"id": "string",
"opportCode": "string",
"opportStatus": 1,
"winLossStatus": 0,
"winLossDate": null,
"finalAmount": 0,
"creationDate": "2025-04-08T03:52:53.3774876Z",
"creationTypeId": 1,
"updatedDate": null,
"deletionDate": null,
"userDeletion": null,
"statusId": 1,
"files": [],
"orderInCards": 1,
"orderInCardsLastUpdated": "2025-04-08T03:52:54.663308Z",
"activities": [],
"segmentationId": null,
"workspaceId": "string",
"name": "string",
"description": "string",
"amount": 0,
"userCreation": "string",
"contactId": "string",
"expirationDate": null,
"assignedAgentId": null,
"stageId": null
}
]
}
Headers
Path Parameters
Oportunidad ID
Query Parameters
Workspace ID
Response
200 - application/json
OK
The response is of type object
.
curl --request GET \
--url https://api.plazbot.com/api/opportunity/{id} \
--header 'x-workspace-id: <x-workspace-id>'
{
"success": true,
"code": 200,
"errorCode": null,
"message": "List obtained successfully.",
"data": [
{
"id": "string",
"opportCode": "string",
"opportStatus": 1,
"winLossStatus": 0,
"winLossDate": null,
"finalAmount": 0,
"creationDate": "2025-04-08T03:52:53.3774876Z",
"creationTypeId": 1,
"updatedDate": null,
"deletionDate": null,
"userDeletion": null,
"statusId": 1,
"files": [],
"orderInCards": 1,
"orderInCardsLastUpdated": "2025-04-08T03:52:54.663308Z",
"activities": [],
"segmentationId": null,
"workspaceId": "string",
"name": "string",
"description": "string",
"amount": 0,
"userCreation": "string",
"contactId": "string",
"expirationDate": null,
"assignedAgentId": null,
"stageId": null
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.