Get opportunity
GET
/api/v1/ext/opportunities/{id}
One opportunity with its pipeline, stage and contact.
Auth: Bearer access_token
Scope: opportunities.read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | number | yes | Opportunity id. |
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 |
Response schema
opportunityobjectidnumberOpportunity id.
Example:
55workspace_idnumberThe workspace it belongs to.
Example:
7namestringOpportunity name.
Example:
Website redesignvaluenumberDeal value.
Example:
1200currencystringISO currency code.
Example:
USDstatusstring"open", "won", "lost" or "abandoned".
Example:
openlost_reasonstringnullable
Set while status is "lost".
pipelineobjectid and name of its pipeline.
stageobjectid, name, color, position, is_won, is_lost of its stage.
contactobjectThe linked contact: id, first_name, last_name, email, phone_number, company_name.
owner_idnumbernullable
The assigned user, when set.
sourcestringnullable
Free text: where the deal came from.
tagsarray<string>Opportunity tags.
custom_fieldsobjectOpportunity custom field values by key.
closed_atstring (ISO 8601)nullable
When it was won / lost / abandoned; null while open.
stage_changed_atstring (ISO 8601)When it entered its current stage.
last_activity_atstring (ISO 8601)Last change of any kind.
RequestResponses
curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/opportunities/{id}" \
-H "Authorization: Bearer <ACCESS_TOKEN>"OK
{
"success": true,
"data": {
"id": 55,
"workspace_id": 7,
"name": "Website redesign",
"value": 1200,
"currency": "USD",
"status": "open",
"lost_reason": null,
"pipeline_id": 3,
"pipeline": {
"id": 3,
"name": "Sales"
},
"stage_id": 9,
"stage": {
"id": 9,
"name": "Qualified",
"color": "#22c55e",
"position": 1,
"is_won": false,
"is_lost": false
},
"contact_id": 1234,
"contact": {
"id": 1234,
"first_name": "Ann",
"last_name": "Lee",
"email": "ann@example.com",
"phone_number": "+61412345678",
"company_name": "Lee Studio"
},
"owner_id": null,
"source": "website",
"tags": [
"web"
],
"custom_fields": {},
"closed_at": null,
"stage_changed_at": "2026-10-27T09:00:00.000Z",
"last_activity_at": "2026-10-27T09:00:00.000Z",
"created_at": "2026-10-27T09:00:00.000Z",
"updated_at": "2026-10-27T09:00:00.000Z"
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters
Opportunity id.
Request URL
GEThttps://backend.mysmsgateway.app/api/v1/ext/opportunities/%7Bid%7D
Previous
« List opportunities
Next
Create opportunity »
