Posts
Publish or schedule a post
Publishes now, or at scheduledFor. If the workspace requires approval the post waits in a person's inbox (202) and goes out once approved.
https://traceeai.com/api/v1/posts/{postId}/publishCLI:tracee posts publish·MCP:postsaction publish
Authorizations
AuthorizationstringheaderrequiredBearer <key>: a personal key (tracee loginor Settings → Personal keys), a workspace key, or an MCP client's OAuth token. See Authentication.
Headers
Tracee-WorkspacestringFor a personal key or OAuth token that reaches several workspaces: the workspace id to act on. Workspace keys don't need it.
uuid
Path parameters
postIdstringrequireduuid
Body
scheduledForstringPublish at this time instead of now. Must be in the future.
date-time
notestringContext for the person who approves it.
up to 500 characters
Response
- 200Published, scheduled, or failed per channel.PublishResult
statusstringrequiredpending_approval: waiting in a person's approval inbox; it publishes once approved.
Available options:
pending_approvalscheduledpublishedpartially_publishedfailedapprovalRequestIdstring | nullrequiredSet when status is pending_approval.
uuid
messagestring | nullrequiredpostobjectrequired
- 202Waiting for a person's approval.PublishResult
statusstringrequiredpending_approval: waiting in a person's approval inbox; it publishes once approved.
Available options:
pending_approvalscheduledpublishedpartially_publishedfailedapprovalRequestIdstring | nullrequiredSet when status is pending_approval.
uuid
messagestring | nullrequiredpostobjectrequired