Privébericht met bijlage/upload via API

Is het mogelijk om de API te gebruiken om een direct bericht met een bijlage/upload te verzenden?

Dit is mogelijk via de webinterface, maar het is mij niet duidelijk hoe dit met de API te emuleren is.

1 like

Hi, you need two API requests. One to upload the file, which returns the url, and one to create the post in which you insert the URL.

3 likes

Thanks. When using the GUI the upload has different security depending on the context (topic vs private message), so I’d need to mimic the same settings in the upload API call to have the same outcome.

Looking at the API it isn’t clear to me how to achieve this