Skip to main content

ocoya_publish_post

Creates and publishes a social post immediately. Use this when the user asks to publish now.

Arguments

NameTypeRequiredDescription
workspaceIdstringYesWorkspace ID from ocoya_list_workspaces.
captionstringNoPost caption text.
mediaUrlsstring[]NoOptional publicly reachable media URLs. Maximum 5.
socialProfileIdsstring[]NoConnected social profile IDs to publish to.
At least one of caption or mediaUrls should be provided.

Example

{
  "name": "ocoya_publish_post",
  "arguments": {
    "workspaceId": "cmayvq3hk00017apshay5qezu",
    "caption": "We are live.",
    "socialProfileIds": ["clh49poxf008x8kov4ncbjty9"]
  }
}

Returns

Returns post action details such as post group ID, status, and schedule.