what is YOUR_TOKEN
I want to use an API to retrieve files and perform related operations. I looked at the examples, and it seems that I need YOUR_TOKEN. However, my generated API has two:
UPLOADTHING_SECRET
UPLOADTHING_APP_ID
11 Replies
i can not find the X-Uploadthing-Api-Key
i think the secret is the api key
but there is two not only one string use for api key
Just tested this and the
UPLOADTHING_SECRET
works for x-uploadthing-api-key
thank you my friend
it not work for me
You many need to set the content type header
Content-Type: application/json
Also your leaking your api key in the screenshot. You should remove that
Thank you for your response. I have added Content-Type: application/json, but it still doesn't work. Thank you for pointing out the issue with the API key. It's partially omitted, so there's no problem.
Maybe all the other headers are needed too
I was able to call it fine using the web tool: https://docs.uploadthing.com/api-reference/openapi-spec#tag/default/post/listFiles
Openapi Spec – uploadthing
Docs for the best file uploader to date