Skip to main content
Answer

Issue with Add conversation link endpoint

  • October 10, 2023
  • 1 reply
  • 104 views

alnoor

I’m trying to use the Add conversation link endpoint but after every attempt with various conversation ids I am getting from the UI, I get a 404 error:

{"_error":{"status":404,"title":"Not found","message":"Invalid id"}}

I’ve confirmed I’m using valid conversation ids because the Get conversation endpoint works fine with the same ids.

Below is an example curl request I’m performing, generated and copied from the docs:

Any ideas what could be going on?

curl --request POST \
--url https://api2.frontapp.com/conversations/cnv_14lrv1os/links \
--header 'authorization: Bearer XXXXXXXXXX' \
--header 'content-type: application/json' \
--data '
{
"link_ids": [
"Example Link"
],
"link_external_urls": [
"https://www.example.com"
]
}

 

Best answer by alnoor

After reading over the docs again I now realize this was a misunderstanding on my end. Reading more closely, I’ve figured out you need to use the Create link endpoint first and use the link_id generated for Add conversation link.

Thanks!

1 reply

alnoor
  • Author
  • Helper
  • Answer
  • October 10, 2023

After reading over the docs again I now realize this was a misunderstanding on my end. Reading more closely, I’ve figured out you need to use the Create link endpoint first and use the link_id generated for Add conversation link.

Thanks!