Skip to content
Posthoop

The command-line tool and webhooks

Post a file from a terminal, and have Posthoop tell your own systems when a post publishes or fails.

The command-line tool

The CLI posts local files and checks on posts from a terminal. It needs an API key with Publishing access. See API keys.

CommandWhat it does
posthoop loginChecks a key and saves your connection
posthoop accountsLists the social accounts in the workspace
posthoop post <file...> --to <destinations>Publishes, schedules or validates a post
posthoop postsLists recent posts with their status on each account
posthoop status <id>Shows one post and its outcomes

Useful options for post:

  • --caption sets the caption.
  • --at schedules for a future time, written with its offset.
  • --dry-run checks the files and accounts without uploading or publishing.
  • --to takes platforms separated by commas. Use platform:@handle when you have several accounts on one platform.

Installation steps are in the CLI docs.

Webhooks

A webhook is an address of yours that Posthoop calls when something happens, so your system doesn't have to keep asking.

Webhooks need a plan that includes them. Only admins and owners can manage endpoints.

Add an endpoint

  1. Open Settings, then Webhooks.
  2. Under New endpoint, enter the Endpoint URL. It must be HTTPS.
  3. Tick the Events you want.
  4. Select Add endpoint.

Posthoop shows a signing secret once, under Copy your signing secret. Copy it then. You use it to check that a delivery came from Posthoop.

Test and watch deliveries

Select Send test on an endpoint, then open its Delivery log. Each delivery is listed with its result. A delivery that fails is retried, and the log shows when the next attempt is.

Untick Enable deliveries to pause an endpoint without deleting it. Remove endpoint stops deliveries and deletes its history.

How to verify a signature, with code, is in the webhook docs.

Checked against the app on .

Was this helpful?

Your answer is recorded with the article's name and nothing about you.