CRM
Convert inbox conversation to support ticket
POST
/
v1
/
crm
/
custom-object-types
/
tickets
/
convert-from-conversation
Convert inbox conversation to support ticket
curl --request POST \
--url https://api.wazapin.com/v1/crm/custom-object-types/tickets/convert-from-conversation \
--header 'Content-Type: application/json' \
--data '
{
"conversation_id": "<string>",
"intent": "<string>",
"requester_phone": "<string>",
"subject": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
conversation_id: '<string>',
intent: '<string>',
requester_phone: '<string>',
subject: '<string>'
})
};
fetch('https://api.wazapin.com/v1/crm/custom-object-types/tickets/convert-from-conversation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/crm/custom-object-types/tickets/convert-from-conversation"
payload = {
"conversation_id": "<string>",
"intent": "<string>",
"requester_phone": "<string>",
"subject": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"created_at": "<string>",
"custom_fields": "<unknown>",
"display_name": "<string>",
"fields": {},
"id": "<string>",
"kind": "<string>",
"metadata": "<unknown>",
"relationships_summary": {},
"updated_at": "<string>",
"enrichment_summary": {}
}{
"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>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
Response
Created
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Convert inbox conversation to support ticket
curl --request POST \
--url https://api.wazapin.com/v1/crm/custom-object-types/tickets/convert-from-conversation \
--header 'Content-Type: application/json' \
--data '
{
"conversation_id": "<string>",
"intent": "<string>",
"requester_phone": "<string>",
"subject": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
conversation_id: '<string>',
intent: '<string>',
requester_phone: '<string>',
subject: '<string>'
})
};
fetch('https://api.wazapin.com/v1/crm/custom-object-types/tickets/convert-from-conversation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/crm/custom-object-types/tickets/convert-from-conversation"
payload = {
"conversation_id": "<string>",
"intent": "<string>",
"requester_phone": "<string>",
"subject": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"created_at": "<string>",
"custom_fields": "<unknown>",
"display_name": "<string>",
"fields": {},
"id": "<string>",
"kind": "<string>",
"metadata": "<unknown>",
"relationships_summary": {},
"updated_at": "<string>",
"enrichment_summary": {}
}{
"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>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}