Write

Publish now

Publishes a saved post to LinkedIn immediately, including any media already stored on the draft by save_draft. Refused unless confirm is true. destination optionally selects the personal profile or a company page from list_destinations. Media is not accepted here.

post/publish_now

Request

  • Base URL: https://pdb.postpen.ai/functions/v1/agent-api
  • URL: https://pdb.postpen.ai/functions/v1/agent-api/publish_now
  • Auth: HTTP bearer

Request body

idstring required

Post id to publish.

confirmboolean required

Must be true. Publishing sends the post to LinkedIn now.

destinationstring

Where to post: an id from list_destinations. Each destination has a network (linkedin today). "personal" (the default on a personal draft) is the personal LinkedIn profile; a company page is identified by its id from list_destinations (usually the organization URN). On schedule_post and publish_now, leaving it out keeps a company destination already saved on the draft, and "personal" switches to the profile.

Response

Success. JSON object; never contains LinkedIn tokens.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.