Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mymarky.ai/llms.txt

Use this file to discover all available pages before exploring further.

Setup

Add these instructions to your project’s CLAUDE.md:
## Marky API — Social Media Posting

Base URL: https://api.mymarky.ai/api
Auth: Bearer mk_live_YOUR_KEY_HERE
Business ID: YOUR_BIZ_ID

### Create and schedule a post
1. POST /posts with {"business_id": "BIZ_ID", "caption": "text", "publish_to": ["instagram", "linkedin"]}
2. POST /posts/{id}/schedule with {"publish_at": "2026-04-15T14:00:00Z"}

### Manage content library
- POST /folders with {"business_id": "BIZ_ID", "name": "Blog Posts"}
- POST /library/files with {"business_id": "BIZ_ID", "path": "/blog/post-title", "content": "# markdown"}
- POST /media (multipart upload) to add images
- POST /files/{id}/media with {"media_ids": ["img-id"]} to attach images to files

### List resources
- GET /businesses — list workspaces
- GET /posts?business_id=BIZ_ID — list posts (cursor pagination)
- GET /topics?business_id=BIZ_ID — list topics
- GET /folders?business_id=BIZ_ID — list folders
- GET /files?business_id=BIZ_ID — list files

### Error format
All errors return: {"error": {"type": "...", "code": "...", "message": "...", "doc_url": "..."}}

Example workflow

Ask Claude Code:
“Create a social post about our spring collection launch, schedule it for tomorrow at 2pm on Instagram and LinkedIn”
Claude Code will:
  1. Call POST /api/posts with the caption
  2. Call POST /api/posts/{id}/schedule with tomorrow’s date
  3. Report back with the scheduled post details

Tips

  • Put the API key in your .env file, not in CLAUDE.md
  • Full reference and examples: docs.mymarky.ai
  • Use POST /api/feedback for product feedback about the API