List activities
GET
/api/v1/ext/opportunities/{id}/activities
An opportunity's history, newest first.
Auth: Bearer access_token
Scope: opportunities.read
One row per change: created, stage changed, status changed, value changed and so on. details carries what changed.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | number | yes | Opportunity id. |
| page | query | number | no | Default 1. |
| limit | query | number | no | 1–100, default 20. Anything else is a 400. |
Responses
| Status | When |
|---|---|
200 | OK |
401 | Missing or invalid token |
403 | Missing scope |
404 | Opportunity does not exist or is not owned by the installer |
RequestResponses
curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/opportunities/{id}/activities" \
-H "Authorization: Bearer <ACCESS_TOKEN>"OK
{
"success": true,
"data": [
{
"id": 2,
"type": "stage_changed",
"from_stage": {
"id": 8,
"name": "New lead"
},
"to_stage": {
"id": 9,
"name": "Qualified"
},
"from_status": null,
"to_status": null,
"details": null,
"created_at": "2026-10-27T10:00:00.000Z"
},
{
"id": 1,
"type": "created",
"from_stage": null,
"to_stage": {
"id": 8,
"name": "New lead"
},
"from_status": null,
"to_status": "open",
"details": {
"to_value": 1200
},
"created_at": "2026-10-27T09:00:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"max_limit": 100,
"total": 2,
"total_pages": 1
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters
Opportunity id.
Query parameters
Default 1.
1–100, default 20. Anything else is a 400.
Request URL
GEThttps://backend.mysmsgateway.app/api/v1/ext/opportunities/%7Bid%7D/activities
Previous
« Delete opportunity
Next
List calendars »
