Skip to content

Add a note to a conversation

POST
/api/v1/conversations/{id}/notes
curl --request POST \
--url https://digize.com/api/v1/conversations/example/notes \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "body": "example", "mentions": [] }'

Adds an internal note to a conversation, which the contact never sees. Members named in mentions (user ids) are notified, by email too unless they turned mentions off.

Needs the crm:write permission.

id
required
string
>= 1 characters <= 64 characters
Idempotency-Key
string
>= 1 characters <= 255 characters

Makes the request safe to send again: for 24 hours the same key and request answer the first response without repeating the change.

Example

5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69
Media typeapplication/json
object
body
required
string
>= 1 characters <= 5000 characters
mentions
Array<string>
default: <= 20 items

Done

Media typeapplication/json
object
id
required
string
conversationId
required
string
kind
required

A message on the conversation’s channel, a call to or from one of the workspace’s numbers, or a member’s internal note, which the contact never sees.

string
Allowed values: message call note
direction
required
string
Allowed values: in out
author
required
One of:
object
kind
required
string
Allowed value: contact
from
required
string
to
required
string
subject
required
string | null
body
required
string
status
required

Pending until Twilio takes it, then queued, sent and delivered, or failed or undelivered; received for one that came in.

string
Allowed values: pending queued sent delivered failed undelivered received
error
required

Why it didn’t go.

string | null
attachments
required
Array<object>
object
name
required
string
type
required
string
size
required
number
url
required

A signed link that works for an hour.

string | null
state

A texted picture still on its way from Twilio (pending), or one that couldn’t be kept (failed); left out once it’s here.

string
Allowed values: pending failed
fullEmailUrl
required

The whole email, when it was too long to show here.

string | null
call
required
Any of:
object
status
required
string
Allowed values: ringing answered completed missed voicemail failed
durationSeconds
required
number
recording
required
Any of:
object
kind
required
string
Allowed values: voicemail call
status
required
string
Allowed values: pending stored absent failed
seconds
required
number | null
url
required
string | null
sentAt
required
string format: date-time
opened
required
Any of:
object
at
required
string format: date-time
kind
required
string
Allowed values: person machine
client
required
string | null
seenAt
required
Any of:
string format: date-time
mentions
required

A note’s @mentions, by user id.

Array<string>
template
required
Any of:
object
sid
required
string
name
required
string
variables
required
object
key
additional properties
string

Example

{
"kind": "message",
"direction": "in",
"author": {
"kind": "contact"
},
"status": "pending",
"attachments": [
{
"state": "pending"
}
],
"call": {
"status": "ringing",
"recording": {
"kind": "voicemail",
"status": "pending"
}
},
"opened": {
"kind": "person"
}
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

A request with the same Idempotency-Key is still running (conflict).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The Idempotency-Key was used with a different request.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}