强大的社交媒体发布技能,适用于PostQube。触发条件包括:在Threads上发布帖子;创建“Thread Storm”或“Auto‑chained”。
PostQube allows you to seamlessly publish text, images, and videos to social media platforms (currently specializing in Threads) via its REST API. It supports native Thread Storming, which automatically chains multiple posts together into a single cohesive thread.
POSTQUBE_API_KEY environment variable.Follow these steps when the user asks to post or manage social media content:
POSTQUBE_API_KEY is present.curl to interact with the PostQube API (Base URL: https://postqube.quickbitsoftware.com).postId or a direct link to the post with the user after a successful request.Published single posts or native threads.
Endpoint: POST /api/v1/post
ParameterTypeRequiredDescriptionplatformstringYesThe target platform (e.g., "threads").textstringConditionalContent for a single post (Max 500 chars).threadsarrayConditionalArray of objects [{"text": "..."}] for automatic chaining.mediaUrlsarrayNoPublicly accessible URLs for images or videos.mediaTypestringNo"IMAGE", "VIDEO", or "CAROUSEL".replyToIdstringNoThe platformPostId to reply to.
Single Post:
bash
curl -X POST https://postqube.quickbitsoftware.com/api/v1/post \
-H "x-api-key: $POSTQUBE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"platform": "threads",
"text": "Revolutionizing social media with PostQube! 🚀"
}'
Thread Storm (Chaining):
bash
curl -X POST https://postqube.quickbitsoftware.com/api/v1/post \
-H "x-api-key: $POSTQUBE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"platform": "threads",
"threads": [
{ "text": "1/ This is how easy it is to start a thread..." },
{ "text": "2/ PostQube handles the native chaining for you." },
{ "text": "3/ Try it out today!" }
]
}'
Query the status of a specific post using its internal postId.
Endpoint: GET /api/v1/post/{postId}
bash
curl https://postqube.quickbitsoftware.com/api/v1/post/{postId} \
-H "x-api-key: $POSTQUBE_API_KEY"
Fetch a list of recent posts for a specific platform.
Endpoint: GET /api/v1/posts
bash
curl "https://postqube.quickbitsoftware.com/api/v1/posts?platform=threads&limit=10" \
-H "x-api-key: $POSTQUBE_API_KEY"
Check your remaining API quota and usage limits.
Endpoint: GET /api/v1/usage
bash
curl https://postqube.quickbitsoftware.com/api/v1/usage \
-H "x-api-key: $POSTQUBE_API_KEY"
Status CodeMeaningAgent Action400Bad RequestCheck platform support and character limits (500 max).401UnauthorizedAsk the user to verify their POSTQUBE_API_KEY.402Quota ExceededSuggest upgrading at postqube.quickbitsoftware.com/pricing.502Platform ErrorThe social network rejected the post. Check media URLs or content.
mediaUrls are publicly accessible. Private/Local paths will fail.threads chaining feature.