CRM
Link CRM email reference
POST
/
v1
/
crm
/
object-types
/
{objectKind}
/
records
/
{objectID}
/
emails
Link CRM email reference
curl --request POST \
--url https://api.wazapin.com/v1/crm/object-types/{objectKind}/records/{objectID}/emails \
--header 'Content-Type: application/json' \
--data '
{
"conversation_id": "<string>",
"direction": "<string>",
"message_id": "<string>",
"occurred_at": "<string>",
"snippet": "<string>",
"subject": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
conversation_id: '<string>',
direction: '<string>',
message_id: '<string>',
occurred_at: '<string>',
snippet: '<string>',
subject: '<string>'
})
};
fetch('https://api.wazapin.com/v1/crm/object-types/{objectKind}/records/{objectID}/emails', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/crm/object-types/{objectKind}/records/{objectID}/emails"
payload = {
"conversation_id": "<string>",
"direction": "<string>",
"message_id": "<string>",
"occurred_at": "<string>",
"snippet": "<string>",
"subject": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"created_at": "<string>",
"direction": "<string>",
"id": "<string>",
"object_id": "<string>",
"object_kind": "<string>",
"snippet": "<string>",
"subject": "<string>",
"updated_at": "<string>",
"conversation_id": "<string>",
"linked_by": "<string>",
"message_id": "<string>",
"occurred_at": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
⌘I
Link CRM email reference
curl --request POST \
--url https://api.wazapin.com/v1/crm/object-types/{objectKind}/records/{objectID}/emails \
--header 'Content-Type: application/json' \
--data '
{
"conversation_id": "<string>",
"direction": "<string>",
"message_id": "<string>",
"occurred_at": "<string>",
"snippet": "<string>",
"subject": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
conversation_id: '<string>',
direction: '<string>',
message_id: '<string>',
occurred_at: '<string>',
snippet: '<string>',
subject: '<string>'
})
};
fetch('https://api.wazapin.com/v1/crm/object-types/{objectKind}/records/{objectID}/emails', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/crm/object-types/{objectKind}/records/{objectID}/emails"
payload = {
"conversation_id": "<string>",
"direction": "<string>",
"message_id": "<string>",
"occurred_at": "<string>",
"snippet": "<string>",
"subject": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"created_at": "<string>",
"direction": "<string>",
"id": "<string>",
"object_id": "<string>",
"object_kind": "<string>",
"snippet": "<string>",
"subject": "<string>",
"updated_at": "<string>",
"conversation_id": "<string>",
"linked_by": "<string>",
"message_id": "<string>",
"occurred_at": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}