I am trying to upload an image via an API through Retool. Below is the cURL command:
curl -X POST -H "Authorization: YOUR-API-KEY" -H "Content-Type: image/jpg" --data-binary @myFilename.jpg https://[host]/v1/media?fileName=myFilename.jpg&broadcastAllowed=true
The command works perfectly in my command line, but I don't know how to go about this in Retool. Can anyone explain how this can be done?
Hey @Jaydon_Walters! This should definitely be possible 
You can first create a REST API resource
https://docs.retool.com/docs/connect-to-rest-apis
Then, in an app, you can create a query using that REST API resource.
In your query, you can add the headers and body value you need!
https://docs.retool.com/docs/api-requests
Let me know if you get stuck anywhere and I'd be happy to help.
Hi @victoria! This definitely helped, thank you
Wonderful, so happy to hear it
Thank you for letting me know and write us back anytime!