You can add a note to a single contact.
Security
bearerAuth
Intercom-Versionstring(intercom_version)
Intercom API version.
By default, it's equal to the version set in the app package.
Default:"2.14"
Enum:"1.0""1.1""1.2""1.3""1.4""2.0""2.1""2.2""2.3""2.4"
Example:2.14
- The production API serverhttps://api.intercom.io/contacts/{id}/notes
- The european API serverhttps://api.eu.intercom.io/contacts/{id}/notes
- The australian API serverhttps://api.au.intercom.io/contacts/{id}/notes
- Successful response
- Admin not found
- Contact not found
library(httr)
body = '{
"admin_id": 991267583,
"body": "Hello"
}'
id = "123"
# create you own operator
"%&%" <- function(x, y)paste0(x,y)
url = "https://api.intercom.io/contacts/" %&% id %&% "/notes"
data_req <- POST(
url,
add_headers("Content-Type" = "application/json", "Intercom-Version" = "2.14", "Authorization" = "Bearer <YOUR_TOKEN_HERE>"),
body = body,
encode = "json",
verbose()
)
content(data_req)Successful response
Response
{ "type": "note", "id": "31", "created_at": 1734537390, "contact": { "type": "contact", "id": "6762f0ad1bb69f9f2193bb62" }, "author": { "type": "admin", "id": "991267583", "name": "Ciaran124 Lee", "email": "admin124@email.com", "away_mode_enabled": false, "away_mode_reassign": false }, "body": "<p>Hello</p>" }