tweetsmash-api
Installation
SKILL.md
TweetSmash API
Use this skill to work directly with the TweetSmash REST API after verifying the current docs. Read references/api-reference.md before choosing an endpoint. Read references/bookmarks-filters.md only when bookmark filtering is required.
Procedures
Step 1: Validate Credentials and Scope
- Confirm that a TweetSmash API key is available before making requests. Prefer
TWEETSMASH_API_KEYin the shell environment. - Read
references/api-reference.mdto confirm the current endpoint, required headers, rate limits, and status codes. - If the task requires bookmark filtering or pagination, read
references/bookmarks-filters.md.
Step 2: Build the Request
- Use
Authorization: Bearer $TWEETSMASH_API_KEYon every request. - Use
Content-Type: application/jsonfor all examples in this skill. Keep the base URL ashttps://api.tweetsmash.com/v1. - If the task fetches bookmarks with filters, execute
python3 scripts/build-bookmarks-url.pywith the needed flags to generate a correctly encoded URL. - If the task adds labels, start from
assets/add-labels-body.jsonand fill intweet_idsplus eitherlabel_idorlabel_name. - If the task removes labels, start from
assets/remove-labels-body.jsonand fill intweet_idspluslabel_name.