Solved

Issue with Add conversation link endpoint

  • 10 October 2023
  • 1 reply
  • 43 views

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"
]
}

 

icon

Best answer by alnoor 10 October 2023, 20:59

View original

1 reply

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!

Reply