Skip to content

API reference

Base URL: https://api.mynahcast.xyz. Authenticate with Authorization: Bearer myn_live_…. The machine-readable spec is the source of truth: https://api.mynahcast.xyz/v1/openapi.json (OpenAPI 3.1), with request and response schemas for every operation.

Each operation is also an MCP tool with the same input. Writes accept an Idempotency-Key header, and the ones marked dry_run accept ?dry_run=true.

  • POST/v1/posts/validate
    Validate a post against every target channel without saving itmynahcast_validate_post · posts:read
  • POST/v1/posts
    Create a post for one brand, fanned out to one or more channelsmynahcast_create_post · posts:write · dry_run
  • GET/v1/posts/{postId}
    Get one post with its per-channel delivery statemynahcast_get_post · posts:read
  • GET/v1/posts
    List posts (cursor pagination), filtered by brand, status, channel and time rangemynahcast_list_posts · posts:read
  • PATCH/v1/posts/{postId}
    Edit a post's content, channels or schedule (before it publishes)mynahcast_update_post · posts:write · dry_run
  • POST/v1/posts/{postId}/reschedule
    Move a post to a new time, or unschedule it (schedule: null)mynahcast_reschedule_post · posts:write · dry_run
  • DELETE/v1/posts/{postId}
    Delete a post and cancel every delivery that has not gone outmynahcast_delete_post · posts:write · dry_run
  • GET/v1/posts/{postId}/timeline
    Every delivery attempt for a post, with platform response codesmynahcast_get_post_timeline · posts:read
  • POST/v1/posts/{postId}/approval
    Submit a post for approval (binds to its exact current content)mynahcast_submit_for_approval · posts:write · dry_run
  • POST/v1/approvals/{approvalId}/decision
    Approve, request changes on, or reject a post (humans only)mynahcast_decide_approval · approvals:decide
  • GET/v1/channels
    List connected channels and their healthmynahcast_list_channels · channels:read
  • GET/v1/channels/{channelId}/capabilities
    Limits, media rules and the settings schema of one channelmynahcast_get_channel_capabilities · channels:read
  • POST/v1/media/uploads
    Get a presigned URL to upload a file directly to storagemynahcast_request_upload · media:write · dry_run
  • POST/v1/media/{mediaId}/complete
    Confirm an upload finished; the file is checked in storagemynahcast_complete_upload · media:write
  • GET/v1/brands/{brandId}/voice
    Read a brand's active voice profilemynahcast_get_brand_voice · posts:read
  • PUT/v1/brands/{brandId}/voice
    Publish a new version of a brand's voice profilemynahcast_update_brand_voice · voice:write · dry_run
  • POST/v1/brands/{brandId}/autopilot/stop
    Emergency stop: hold every scheduled post of the brandmynahcast_stop_all · posts:write · dry_run
  • POST/v1/brands/{brandId}/autopilot/resume
    Resume publishing after stop_allmynahcast_resume_all · autopilot:write · dry_run
  • GET/v1/brands/{brandId}/autopilot
    Whether publishing is stopped for a brand (stop_all), plus approval mode, daily cap and queued postsmynahcast_get_autopilot · posts:read
  • GET/v1/brands/{brandId}/autopilot/prompt
    Ready-made weekly instruction to paste into your own agentmynahcast_get_batch_prompt · posts:read
  • GET/v1/brands/{brandId}/product-context
    Read the brand's product context (what the product is, who it is for, proof, CTA, banned claims)mynahcast_get_product_context · posts:read
  • PUT/v1/brands/{brandId}/product-context
    Save the brand's product context (replaces the whole record)mynahcast_set_product_context · posts:write · dry_run
  • POST/v1/brands/{brandId}/styles
    Create or update a reusable post style for a brandmynahcast_save_style · posts:write · dry_run
  • GET/v1/brands/{brandId}/styles
    List a brand's saved styles (default first)mynahcast_list_styles · posts:read
  • GET/v1/styles/{styleId}
    Read one style (hook patterns, tone, caption style, length, slide count, colours, fonts, do/don't)mynahcast_get_style · posts:read
  • DELETE/v1/styles/{styleId}
    Delete a saved stylemynahcast_delete_style · posts:write · dry_run
  • GET/v1/brands/{brandId}/content-memory
    List what the brand already drafted, published or had rejected (hooks, topics, claims, rejection reasons)mynahcast_get_content_memory · posts:read
  • POST/v1/brands/{brandId}/batches
    Submit a weekly batch of posts (validated, scheduled within daily caps, approval per the brand's mode)mynahcast_submit_batch · posts:write · dry_run
  • POST/v1/batches/{batchId}/approve
    Release a whole batch with one approval (humans only)mynahcast_approve_batch · approvals:decide
  • PUT/v1/brands/{brandId}/autopilot/settings
    Set approval mode and per-channel daily capmynahcast_set_autopilot_settings · autopilot:write
  • GET/v1/account
    Your workspace, plan and trial status, and your brandsmynahcast_get_account · posts:read
  • GET/v1/connect-link
    Get a link where the user connects a social account (Bluesky, Mastodon, …) on mynahcast.xyzmynahcast_connect_channel · channels:read
  • GET/v1/report
    What went out (and what failed) in a date range, with links to the live postsmynahcast_get_report · posts:read
  • GET/v1/account/plan-link
    A link to the workspace's plan page on mynahcast.xyz (to add a card before scheduling on the trial, when the trial ends, or when a limit is reached)mynahcast_get_checkout_link · posts:read
  • GET/v1/approvals/calendar
    Month calendar of planned posts with approve / edit / skip (renders as an interactive card where supported)mynahcast_show_approval_calendar · posts:read
  • POST/v1/approvals/ui-decide
    Approve or skip one post from the approval calendar card. Only the card calls this, on a user's clickmynahcast_ui_decide_post · approvals:decide
  • GET/v1/brands
    List the brands in this workspace (each has its own channels, voice and calendar)mynahcast_list_brands · posts:read
  • POST/v1/brands
    Create another brand in this workspace (counts toward the plan's brand allowance)mynahcast_create_brand · admin · dry_run
  • GET/v1/analytics
    Published and failed posts per day, per channel and by hour of day, over the plan's analytics historymynahcast_get_analytics · posts:read

Errors

Errors are application/problem+json with type, title, status, code and a requestId; validation errors add a fix hint. 401 means a missing or revoked key, 403 a key without the scope, 422 a post that fails validation, 429 a rate limit (respect Retry-After).