CLI
Konten ini belum tersedia dalam bahasa Anda.
Set the named API key created in the web app:
export ANKK_THREADS_API_KEY="<your-api-key>"The CLI targets https://threads-api.ankk.app by default. For local
development, use the named HTTPS tunnel:
export ANKK_THREADS_API_BASE_URL="https://threads-api-dev.ankk.app"Common commands:
ankk-threads accounts listankk-threads content listankk-threads content create --account-id <uuid> --text "Hello Threads"ankk-threads content publish <content-id>ankk-threads status <job-id> --kind publishankk-threads uploads put image.jpg --content-type image/jpegankk-threads listening add threads --account-id <uuid>ankk-threads listening posts --query launchankk-threads analytics collect-account \ --account-id <uuid> \ --from 2026-07-01T00:00:00Z \ --to 2026-07-08T00:00:00Z \ --timezone Asia/Seoulankk-threads analytics posts --account-id <uuid>Use --json for automation. The CLI remains a thin client: validation,
ownership, idempotency, publishing, and canonical status are controlled by the
API and domain services.
Manage signed customer webhooks:
ankk-threads webhooks listankk-threads webhooks create \ --name production \ --url https://example.com/webhooks/ankk \ --event threads.publish.succeeded threads.publish.failedankk-threads webhooks deliveries --json