API Reference
API Overview
Public API for posting, scheduling, uploads, and delivery inspection.
PostMantis public API lives under /api/v1.
Core flow
- List connected profiles with
GET /api/v1/profiles. - Upload media with
POST /api/v1/uploads, thenPOST /api/v1/uploads/complete; posts reference returned artifact IDs. For direct file posts, sendmultipart/form-datawith apayloadJSON field and named file parts. - Create immediate or scheduled work with
POST /api/v1/posts. - Read state with
GET /api/v1/posts/{postId}. - Cancel future scheduled work with
POST /api/v1/posts/{postId}/cancel.
Post states
| State | Meaning |
|---|---|
pending | Accepted. Worker has not settled work yet. |
scheduled | Waiting for scheduled time or delivery completion. |
completed | All deliveries settled. |
canceled | Future delivery was canceled. |
Endpoints
GET /api/v1/postsPOST /api/v1/postsGET /api/v1/posts/{postId}PATCH /api/v1/posts/{postId}— edit future scheduled post body/media/provider options/schedulePOST /api/v1/posts/{postId}/cancelPOST /api/v1/uploadsPOST /api/v1/uploads/completeGET /api/v1/publish/logs
Create is async acceptance. Read post later for final delivery result.