Reference
Notes
GET/api/v1/notesList notes
The notes kept on one record, newest first, with author and time, and whether the caller may change each one (only its author may).scope notes
Query
| carrierrequired | one of company, person, lead, quote, order, invoice, contract, incomingInvoice, campaign, partnerWhat the note is kept on. |
| idrequired | stringThe record's id. A quote, order or invoice may also be named by its number, e.g. "AB-2026-0007". |
Response 200
| notes[] | object[] |
| notes[].id | string |
| notes[].author | string |
| notes[].created_at | string |
| notes[].edited_at | string | null |
| notes[].body | string |
| notes[].via_agent | string | null |
| notes[].agentoptional | string |
| notes[].yours | boolean |
| url | string |
Schema
{
"type": "object",
"properties": {
"notes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"author": {
"type": "string"
},
"created_at": {
"type": "string"
},
"edited_at": {
"type": [
"string",
"null"
]
},
"body": {
"type": "string"
},
"via_agent": {
"type": [
"string",
"null"
]
},
"agent": {
"type": "string"
},
"yours": {
"type": "boolean"
}
},
"required": [
"id",
"author",
"created_at",
"edited_at",
"body",
"via_agent",
"yours"
],
"additionalProperties": false
}
},
"url": {
"type": "string"
}
},
"required": [
"notes",
"url"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.
POST/api/v1/notesAdd note
Adds a note to a company, person, lead, quote, order, invoice, incoming invoice or contract, as the person this agent works for. Notes are internal: nobody outside reads them.scope notes
Body (JSON)
| carrierrequired | one of company, person, lead, quote, order, invoice, contract, incomingInvoice, campaign, partnerWhat the note is kept on. |
| idrequired | stringThe record's id. A quote, order or invoice may also be named by its number, e.g. "AB-2026-0007". |
| bodyrequired | string |
Response 200
| id | string |
| url | string |
Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"id",
"url"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.
PATCH/api/v1/notes/{id}Update note
Replaces the text of a note the caller wrote. A note somebody else wrote stays as it is.scope notes
Path
| idrequired | stringThe note's id, from list_notes. |
Body (JSON)
| bodyrequired | string |
Response 200
| id | string |
| url | string |
Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"id",
"url"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.
DELETE/api/v1/notes/{id}Delete note
Deletes a note the caller wrote. A note somebody else wrote stays.scope notes
Path
| idrequired | stringThe note's id, from list_notes. |
Response 200
| deleted | string |
Schema
{
"type": "object",
"properties": {
"deleted": {
"type": "string"
}
},
"required": [
"deleted"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.