Notes
Note endpoints read and add the notes that your team writes on a deal.
List notes
Notes on a deal.
Path parameters
| Name | Type |
|---|---|
idRequiredThe ID. | integer |
Query parameters
| Name | Type |
|---|---|
limitItems per page (1-200). Default 50. | integer |
cursorThe next_cursor from the previous page. Up to 200 characters. | string |
updated_sinceUnix seconds. Only items created or changed at or after this time. | integer |
Example request
curl https://www.ideapulley.com/api/v2/deals/42/notes \
-H "Authorization: Bearer $IDEAPULLEY_KEY"const res = await fetch("https://www.ideapulley.com/api/v2/deals/42/notes", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.IDEAPULLEY_KEY}`,
},
});
const data = await res.json();import os
import requests
res = requests.get(
"https://www.ideapulley.com/api/v2/deals/42/notes",
headers={"Authorization": f"Bearer {os.environ['IDEAPULLEY_KEY']}"},
)
data = res.json()Response
{
"data": [
{ … }
],
"next_cursor": "eyJpZCI6NDJ9",
"has_more": true
}Add a note
Add a note to a deal.
Path parameters
| Name | Type |
|---|---|
idRequiredThe ID. | integer |
Headers
| Name | Type |
|---|---|
Idempotency-KeyOptional. A retry with the same key and body gets the first answer for 24 hours. | string |
Body parameters
| Name | Type |
|---|---|
contentRequiredThe note text. Up to 5,000 characters. | string |
Example request
curl -X POST https://www.ideapulley.com/api/v2/deals/42/notes \
-H "Authorization: Bearer $IDEAPULLEY_KEY" \
-H "Content-Type: application/json" \
-d '{"content":"Met the founder. Strong on distribution."}'const res = await fetch("https://www.ideapulley.com/api/v2/deals/42/notes", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.IDEAPULLEY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"content": "Met the founder. Strong on distribution."
}),
});
const data = await res.json();import os
import requests
res = requests.post(
"https://www.ideapulley.com/api/v2/deals/42/notes",
headers={"Authorization": f"Bearer {os.environ['IDEAPULLEY_KEY']}"},
json={
"content": "Met the founder. Strong on distribution."
},
)
data = res.json()Response
{
"data": { … }
}