最近搜索
没有最近搜索
Adding an attachment as an anonymous end-user using the API
已于 2022年9月06日 发布
The classic web widget allows anonymous users who are not logged in or verified to submit a ticket with attachments. I don't see how do to this only using the API from my own browser-based Javascript.
I have enabled anonymous ticket creation and uploads, and I can use the uploads API to upload an attachment and get a token. And I can use the tickets API to create a ticket as an anonymous end-user who is not logged in or verified.
What's not clear to me is how you can attach the upload token to a ticket comment anonymously. I get a 401 error, which makes sense because otherwise any user could attach a comment to any ticket.
Is there something I can add to the anonymous ticket creation request to add an upload token? Or some other technique I'm missing?
0
2 条评论
Rick - Particle Support
Thank you! The 3-day expiration of uploads isn't ideal, but the technique does work and I can use it for now.
0
Eric Nelson
It's a bit of a wonky thing as you can expect trying to keep anonomyous requests from adding malicious attachments and such. How I've mainly seen people do it is that they take the "content_url" that is provided in the response of the upload and have that appended on to the body of the anonomyous ticket request. Then your agents would be able to click on that and access the attachment.
Hope this helps,
0
登录以发表评论。