Closed posta246 closed 6 days ago
Hi, Im always happy to help! First of all I can warmly recommend the Linkwarden API docs. The url you want to POST to is https://linkwarden.my_domain.tld/api/v1/links. The data has to be formatted correctly which is not easy to figure out.
Example for a curl command:
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer "
Hope this solves your problem!
Thanks a lot, it works, this is the full command that included the use of variables, if someone read it in the future:
#curl -s -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $LINKWARDEN_TOKEN" -d '{"url":"'$BOOKMARK'","description":"","type":"url","tags":[],"preview":"","image":"","pdf":"","readable":"","textContent":"","collection":{"id":1}}' https://linkwarden.your_domain.tld/api/v1/links
Hi Dacid99, sorry me if I disturb you here, I'm trying to make a bash script to load into linkwarden one or more link I save here and there. Might you help me with the curl command to send to linkwarden istance? API are not clear to me. I ask you I image you use them for the app (that is great!!!). I wuold like to use something like:
curl -H "Authorization: Bearer <MY_TOKEN>" https://linkwarden.my_domain.tld/api/v1/<MY_LINK>
Can you help me? Thanks a lot!