Негізгі мазмұнға өту

list_publications

Retrieve a list of publications for a specific project, with optional filters for date and status.

Parameters

  • project_id (integer, required): Project ID.
  • post_date (string, optional): Publication date in YYYY-MM-DD format.
  • publication_status (string, optional): Comma-separated list of publication statuses:
    • 0: deleted
    • 1: published
    • 2: being published
    • 3: error
    • 4: draft
    • 5: waiting for publication
    • 6: not deleted due to error
    • 10: template
    • 11: workflow stage
    • 12: approval
  • sort (string, optional): Sorting criteria (e.g., -id).
  • page (integer, optional): Page number.
  • per_page (integer, optional): Items per page.

Example Request

curl -X POST https://mcp.postmypost.io/v1/tools/call \
-H "Authorization: Bearer <your-api-token>" \
-H "Content-Type: application/json" \
-d '{
"name": "list_publications",
"arguments": {
"project_id": 123,
"publication_status": "1,5"
}
}'