Skip to main content
GET
/
api
/
v1
/
activities
/
{id}
Buscar atividade por ID
curl --request GET \
  --url https://api.g1.datacrazy.io/api/v1/activities/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "e9a09677-cf00-4d84-aa12-6d78d6786555",
  "createdAt": "2025-06-18T22:18:36.666Z",
  "title": "Reunião online",
  "description": "Negociar preços com o cliente",
  "startDate": "2025-10-09T03%3A00%3A00.000Z",
  "endDate": "2025-10-09T03%3A00%3A00.000Z",
  "isCompleted": "true",
  "lead": "2025-10-09T03%3A00%3A00.000Z",
  "business": {
    "id": "e9a09677-cf00-4d84-aa12-6d78d6786555",
    "createdAt": "2025-06-18T22:18:36.666Z",
    "stageId": "e6803a51-4bd6-416b-b516-3622ff256732",
    "leadId": "c1152508-fdfd-4905-a3f4-f3850cc00bf0",
    "attendantId": "7e7da46a-a0ed-43c2-a3aa-3ac253f41b4d",
    "nextActivityId": "3d3d23a-a0ed-43c2-a3aa-3ac23433f41g01",
    "total": "70000",
    "discount": 500,
    "addition": 0,
    "shipping": 2000,
    "coupon": "CUPOM100",
    "shippingType": "Sedex",
    "status": "in_process",
    "code": 50607,
    "externalId": "f33420908-dcdc-4905-a3f4-f3850cc43bf0",
    "lastMovedAt": "2025-06-18T22:18:36.611Z",
    "statusChangedAt": "2025-06-18T22:20:14.611Z4",
    "products": [],
    "lossReasonId": "null",
    "justification": "",
    "productsCount": 2
  },
  "attendant": {
    "userId": "t9kn9mqPakdGG535GQK3hod8wzM2",
    "id": "6807e48c25ece34f9f1ba7dd",
    "name": "Joao Silva",
    "email": "joaosilva@gmail.com",
    "phone": "5547991331190",
    "imageURL": "https://dc-qqqq1111pb.s3.amazonaws.com/profiles/koQGLa8p68fNZiiSmE1tec2LHtc2_2025-05-24T00%3A27%3A23.486Z"
  },
  "activityType": {
    "id": "e9a09677-cf00-4d84-aa12-6d78d6786555",
    "name": "Reunião presencial",
    "color": "#FF2200"
  },
  "required": "false",
  "flow": {
    "id": "8fcd6ff0-6b45-40e3-8e7d-abd456a5a459",
    "name": "Fluxo de mensagens de boas-vindas",
    "description": "Automação disparada para clientes não cadastrados na base",
    "createdAt": "2025-09-09T16:27:15.522Z",
    "updatedAt": "2025-09-09T16:27:15.522Z",
    "group": "1",
    "active": false
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Response

200 - application/json
title
string
required

Título da atividade.

Example:

"Reunião online"

id
string

ID da atividade.

Example:

"e9a09677-cf00-4d84-aa12-6d78d6786555"

createdAt
string<date-time>

Data de criação da atividade.

Example:

"2025-06-18T22:18:36.666Z"

description
string

Descrição da atividade.

Example:

"Negociar preços com o cliente"

startDate
string<date-time>

Filtro de intervalo, negócios que estão em negociação ou estavam em negociação em determinado intervalo. Formato (ISO 8601): YYYY-MM-DDTHH:mm:ss.sssZ

Example:

"2025-10-09T03%3A00%3A00.000Z"

endDate
string<date-time>

Filtro de intervalo, negócios que estão em negociação ou estavam em negociação em determinado intervalo. Formato (ISO 8601): YYYY-MM-DDTHH:mm:ss.sssZ

Example:

"2025-10-09T03%3A00%3A00.000Z"

isCompleted
boolean

Valor boneano que indica se a atividade está concluida ou não

Example:

"true"

lead
object

Lead vinculado a atividade

Example:

"2025-10-09T03%3A00%3A00.000Z"

business
object

Negócio vinculado a atividade

attendant
object

Atendente vinculado a atividade

activityType
object

Tipo da atividade

required
boolean

Valor boneano que indica se a atividade é obrigatória ou não

Example:

"false"

flow
object

Automação vinculada a atividade