List Opportunity
GET
/
v1
/
resources
/
crmOpportunity
const options = {
method: 'GET',
headers: {
'x-api-key': '<api-key>',
'x-api-secret': '<api-key>',
'x-connector-id': '<api-key>',
'x-owner-id': '<api-key>',
'x-session-token': '<api-key>'
}
};
fetch('https://api.runmorph.dev/v1/resources/crmOpportunity', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
{
"object": "list",
"data": [
{
"object": "resource",
"model": "<string>",
"id": "<string>",
"fields": {
"name": "<string>",
"amount": 1,
"currency": "<string>",
"stage": {
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<any>",
"rawResource": "<any>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"pipeline": {
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<any>",
"rawResource": "<any>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"owner": {
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<any>",
"rawResource": "<any>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"contacts": [
{
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<any>",
"rawResource": "<any>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"companies": [
{
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<any>",
"rawResource": "<any>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"engagements": [
{
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<any>",
"rawResource": "<any>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
},
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"rawResource": "<any>",
"warnings": [
{
"code": "<string>",
"message": "<string>"
}
]
}
],
"next": "<string>"
}
Authorizations
Query Parameters
Query parameter that accepts a raw query string and auto-detects and parses emails, phone numbers (E.164), URLs, domains, and ISO dates
Response
200
application/json
OK
The response is of type object
.
const options = {
method: 'GET',
headers: {
'x-api-key': '<api-key>',
'x-api-secret': '<api-key>',
'x-connector-id': '<api-key>',
'x-owner-id': '<api-key>',
'x-session-token': '<api-key>'
}
};
fetch('https://api.runmorph.dev/v1/resources/crmOpportunity', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
{
"object": "list",
"data": [
{
"object": "resource",
"model": "<string>",
"id": "<string>",
"fields": {
"name": "<string>",
"amount": 1,
"currency": "<string>",
"stage": {
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<any>",
"rawResource": "<any>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"pipeline": {
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<any>",
"rawResource": "<any>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"owner": {
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<any>",
"rawResource": "<any>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"contacts": [
{
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<any>",
"rawResource": "<any>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"companies": [
{
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<any>",
"rawResource": "<any>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"engagements": [
{
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<any>",
"rawResource": "<any>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
},
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"rawResource": "<any>",
"warnings": [
{
"code": "<string>",
"message": "<string>"
}
]
}
],
"next": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.