Skip to content

See a Company's Activities

POST https://api.prosperworks.com/developer_api/v1/companies/{{example_company_id}}/activities

This request will show the Activity entries created for a specific Company. For more details please see the notes at the /activities endpoint.

Request body

1
2
3
4
5
6
7
8
{
  "activity_types": [
    {
      "id": 1,
      "category": "user"
    }
  ]
}

Example Requests

Company Activities

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
curl --location --request POST "https://api.prosperworks.com/developer_api/v1/companies/{{example_company_id}}/activities" \
  --header "X-PW-AccessToken: YOUR_TOKEN_HERE" \
  --header "X-PW-Application: developer_api" \
  --header "X-PW-UserEmail: YOUR_EMAIL_HERE" \
  --header "Content-Type: application/json" \
  --data "{
  \"activity_types\": [
    {
      \"id\": 1,
      \"category\": \"user\"
    }
  ]
}"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[
  {
    "id": 72,
    "parent": {
      "id": 1,
      "type": "company"
    },
    "type": {
      "id": 1,
      "category": "user"
    },
    "user_id": 1,
    "details": "Call with Alex",
    "activity_date": 1522695004,
    "old_value": null,
    "new_value": null,
    "date_created": 1522695010,
    "date_modified": 1522695004
  },
  {
    "id": 70,
    "parent": {
      "id": 2,
      "type": "person"
    },
    "type": {
      "id": 1,
      "category": "user"
    },
    "user_id": 1,
    "details": "Call with Rob",
    "activity_date": 1522694372,
    "old_value": null,
    "new_value": null,
    "date_created": 1522694392,
    "date_modified": 1522694372
  }
]