Steps
- Export your key as an environment variable
- Run the cURL command
- Schedule with cron if needed
Example (bash)
export BPK=bpk_live_YOUR_KEY
curl -X POST https://blogjh.lovable.app/api/public/v1/posts -H "Authorization: Bearer $BPK" \
-H "Content-Type: application/json" \
-d '{"title":"From terminal","html":"<p>Hi</p>","is_draft":true}'FAQ
How do I list my posts?
Send a GET request to https://blogjh.lovable.app/api/public/v1/posts with the same header.
