Roami

For developers and agents

Most bloggers never need this page. It covers keys, the terminal, the public API, and agent-readable setup.

Connect with OAuth (no key)

Bloggers: start at Connect your agent. Claude and Cursor use SSE; Gemini uses Streamable HTTP.

https://mcp.roami.xyz/sse
https://mcp.roami.xyz/mcp

Connect with a key

Create a key under Developers → Create MCP key in the Roami app (self-serve; no email to the founder). Then add the server with a header.

claude mcp add roami --transport sse https://mcp.roami.xyz/sse --header "x-api-key: YOUR_KEY"

What an agent can do

AreaExamples
SearchStriking-distance queries, opportunities, query tracking
PostsRead, search, find similar, draft, update. Never publish
AuditContent and media hygiene, dry-run fixes, re-audit
IdeasSurface gaps and file briefs
Media and placesAlt text, folders, place links
SocialCluster and draft posts for approval

Playbooks: Call the API, Build a public site.

REST

API reference

Authenticate with an API key, then work with posts, media, places, and more.

Authentication

Base URL: https://api.roami.xyz

Send either header. Bearer tokens that start with sk_ are treated as API keys; other Bearer tokens are treated as session JWTs.

  • Authorization: Bearer sk_...
  • x-api-key: sk_...
curl 'https://api.roami.xyz/api/posts' \
  -H 'Authorization: Bearer sk_...'

Posts & Ideas

Create and update drafts, search content, manage ideas, and link related posts. Beta MCP tools: create_post, update_post, get_post, get_post_content, search_content, create_idea, get_idea, update_idea, link_related_posts.

GET/api/posts

List posts for the authenticated project.

Request: Optional query: status, search, limit, offset.

Response: { success, data: Post[] }

curl -X GET 'https://api.roami.xyz/api/posts?status=DRAFT&limit=20' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
POST/api/posts

Create a post (defaults to DRAFT).

Request: { title, slug?, content?, projectId, status? }

Response: { success, data: Post }

curl -X POST 'https://api.roami.xyz/api/posts' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"title":"Notes from the road","projectId":"..."}'
GET/api/posts/:id

Fetch a post by id (includes blocks, tags, places when requested).

Response: { success, data: Post }

curl -X GET 'https://api.roami.xyz/api/posts/POST_ID' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
PUT/api/posts/:id

Update post fields; can set placeIds and related post links.

Request: { title?, content?, placeIds?, relatedPostIds?, ... }

Response: { success, data: Post }

curl -X PUT 'https://api.roami.xyz/api/posts/POST_ID' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"title":"Updated title","relatedPostIds":["OTHER_ID"]}'
POST/api/posts/:id/publish

Publish a draft post.

Response: { success, data: Post } or 403 for beta keys

curl -X POST 'https://api.roami.xyz/api/posts/POST_ID/publish' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
POST/api/posts/:id/tags

Attach tags to a post (MCP: attach_tag_to_post).

Request: { tagIds: string[] }

Response: { success, data }

curl -X POST 'https://api.roami.xyz/api/posts/POST_ID/tags' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"tagIds":["TAG_ID"]}'
GET/api/ideas

List ideas for the project.

Response: { success, data: Idea[] }

curl -X GET 'https://api.roami.xyz/api/ideas' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
POST/api/ideas

Create an idea.

Request: { title, description?, projectId }

Response: { success, data: Idea }

curl -X POST 'https://api.roami.xyz/api/ideas' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"title":"Essay angle","projectId":"..."}'
GET/api/ideas/:id

Fetch one idea.

Response: { success, data: Idea }

curl -X GET 'https://api.roami.xyz/api/ideas/IDEA_ID' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
PUT/api/ideas/:id

Update an idea.

Request: { title?, description?, status? }

Response: { success, data: Idea }

curl -X PUT 'https://api.roami.xyz/api/ideas/IDEA_ID' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"title":"Refined angle"}'

Media

Images, galleries, videos, and photo stories (reels). Beta MCP tools: list_images, update_image, list/create/update galleries, list/update videos, photo story CRUD + photo set helpers.

GET/api/media/images

List media library images.

Request: Optional query: search, folderId, limit.

Response: { success, data: Image[] }

curl -X GET 'https://api.roami.xyz/api/media/images?limit=50' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
PUT/api/media/images/:id

Update image metadata (title, alt, caption, GPS).

Request: { title?, altText?, caption?, latitude?, longitude? }

Response: { success, data: Image }

curl -X PUT 'https://api.roami.xyz/api/media/images/IMAGE_ID' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"altText":"Sunrise over the ridge"}'
GET/api/galleries

List galleries.

Response: { success, data: Gallery[] }

curl -X GET 'https://api.roami.xyz/api/galleries' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
POST/api/galleries

Create a gallery.

Request: { title, projectId, description? }

Response: { success, data: Gallery }

curl -X POST 'https://api.roami.xyz/api/galleries' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"title":"Coast road","projectId":"..."}'
PUT/api/galleries/:id

Update gallery metadata or membership.

Response: { success, data: Gallery }

curl -X PUT 'https://api.roami.xyz/api/galleries/GALLERY_ID' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"title":"Coast road — edit"}'
GET/api/videos

List videos.

Response: { success, data: Video[] }

curl -X GET 'https://api.roami.xyz/api/videos' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
PUT/api/videos/:id

Update video metadata.

Response: { success, data: Video }

curl -X PUT 'https://api.roami.xyz/api/videos/VIDEO_ID' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"title":"Market walk"}'
GET/api/reels

List photo stories (reels).

Response: { success, data: Reel[] }

curl -X GET 'https://api.roami.xyz/api/reels' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
POST/api/reels

Create a photo story.

Request: { title, projectId, ... }

Response: { success, data: Reel }

curl -X POST 'https://api.roami.xyz/api/reels' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"title":"Weekend strip","projectId":"..."}'
GET/api/reels/:id

Fetch one photo story (MCP: get_photo_story).

Response: { success, data: Reel }

curl -X GET 'https://api.roami.xyz/api/reels/REEL_ID' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
PUT/api/reels/:id

Update photo story fields and photo membership.

Response: { success, data: Reel }

curl -X PUT 'https://api.roami.xyz/api/reels/REEL_ID' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"title":"Weekend strip — v2"}'

Tags

Project-scoped taxonomy. Beta MCP tools: list_tags, create_tag, attach_tag_to_post.

GET/api/tags

List tags for the project.

Response: { success, data: Tag[] }

curl -X GET 'https://api.roami.xyz/api/tags' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
POST/api/tags

Create a tag.

Request: { name, projectId, slug? }

Response: { success, data: Tag }

curl -X POST 'https://api.roami.xyz/api/tags' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"name":"slow-travel","projectId":"..."}'
DELETE/api/tags/:id

Delete a tag.

Response: { success }

curl -X DELETE 'https://api.roami.xyz/api/tags/TAG_ID' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'

Places

Geographic places linked to posts. Beta MCP tools: search_places, create_place, link_post_places.

GET/api/places/search

Search places by name/region.

Request: Query: q (required).

Response: { success, data: Place[] }

curl -X GET 'https://api.roami.xyz/api/places/search?q=Chiang%20Mai' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
POST/api/places

Create a place.

Request: { name, country?, region?, latitude?, longitude?, projectId }

Response: { success, data: Place }

curl -X POST 'https://api.roami.xyz/api/places' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"name":"Chiang Mai","country":"Thailand","projectId":"..."}'
PUT/api/posts/:id

Link places to a post via placeIds (MCP: link_post_places).

Request: { placeIds: string[] }

Response: { success, data: Post }

curl -X PUT 'https://api.roami.xyz/api/posts/POST_ID' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"placeIds":["PLACE_ID"]}'

Trip Journal

Trip capture pipeline (logs → scaffold). Beta MCP tools: list_trip_journals, create_trip_journal, get_trip_journal, add_trip_journal_log, create_journal_entry.

GET/api/trip-journal/trips

List trip journals for the caller.

Response: { success, data: TripJournal[] }

curl -X GET 'https://api.roami.xyz/api/trip-journal/trips' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
POST/api/trip-journal/trips

Create a trip journal.

Request: { title, startDate?, endDate? }

Response: { success, data: TripJournal }

curl -X POST 'https://api.roami.xyz/api/trip-journal/trips' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"title":"Leh road trip"}'
GET/api/trip-journal/trips/:id

Fetch one trip with logs.

Response: { success, data: TripJournal }

curl -X GET 'https://api.roami.xyz/api/trip-journal/trips/TRIP_ID' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
POST/api/trip-journal/trips/:id/logs

Add a log entry to a trip (MCP: add_trip_journal_log).

Request: { text, loggedAt?, placeName? }

Response: { success, data }

curl -X POST 'https://api.roami.xyz/api/trip-journal/trips/TRIP_ID/logs' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"text":"Crossed the pass at 16:00"}'
POST/api/journals

Create a journal entry (MCP: create_journal_entry).

Request: { content, mood?, projectId, ... }

Response: { success, data: JournalEntry }

curl -X POST 'https://api.roami.xyz/api/journals' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"content":"Quiet morning.","projectId":"..."}'

Hygiene (read-only)

Read-only SEO and media audits. Exposed as MCP tools (no dedicated REST routes). Beta allowlist includes both audit tools so partners can check drafts before CMS review.

MCP tools

audit_content_hygiene

Audit a post or landing page for metadata, internal links, places, media coverage, and block structure.

audit_media_hygiene

Audit image metadata (title, alt, caption, GPS) for a post, gallery, or project-wide.

Work queue

Decisions you add to the queue from Opportunities, the dashboard, or a post’s Review tab. Each item is metadata, link, or new content, tied to a post or an idea. Agents pull the oldest item, leave notes, and complete it. Pulling marks an unclaimed item Working so two agents do not take the same job. Nothing here publishes.

GET/api/seo/opportunities/:projectId/work

List open to-dos, oldest first, up to 20 (MCP: list_work).

Response: { success, data: { items: [{ action, decision, postId?, ideaId?, title, latestUpdate, updatedAt }] } }

curl -X GET 'https://api.roami.xyz/api/seo/opportunities/PROJECT_ID/work' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
GET/api/seo/opportunities/:projectId/next

Return the oldest open to-do. If it has no note yet, records Working on it; never overwrites an existing note. data is null when the queue is empty (MCP: pull_next_work).

Response: { success, data: WorkItem | null }

curl -X GET 'https://api.roami.xyz/api/seo/opportunities/PROJECT_ID/next' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
POST/api/seo/opportunities/:projectId/work/update

Replace the progress note on an open to-do. The item stays open (MCP: update_work).

Request: { postId | ideaId, status } — status is one or two sentences; empty is rejected.

Response: { success, data }

curl -X POST 'https://api.roami.xyz/api/seo/opportunities/PROJECT_ID/work/update' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"postId":"POST_ID","status":"Drafted a new title and description."}'
POST/api/seo/opportunities/:projectId/work/complete

Mark a to-do done. Keeps the last note; deletes nothing (MCP: complete_work).

Request: { postId | ideaId }

Response: { success, data }

curl -X POST 'https://api.roami.xyz/api/seo/opportunities/PROJECT_ID/work/complete' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"postId":"POST_ID"}'

MCP tools

list_work

List open to-dos, oldest first, up to 20. Read only.

pull_next_work

Take the oldest open to-do; marks it Working if nobody has left a note.

update_work

Leave a short progress note on an open to-do.

complete_work

Mark a to-do done once the change is ready for review.

Social

One pack of drafts per published post, one draft per enabled channel. Each draft gets its channel’s next free 09:00 IST morning, and every channel may use the same morning. Agents can create, edit, and reschedule drafts and manage the Reddit catalog. They cannot publish or mark drafts posted, and cannot change channel connections.

POST/api/social-campaigns/from-post

Create the pack for a published post and write launch drafts for enabled channels. Returns the existing pack if there is one (MCP: send_post_to_socials).

Request: { postId }

Response: { success, data: SocialCampaign }

curl -X POST 'https://api.roami.xyz/api/social-campaigns/from-post' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"postId":"POST_ID"}'
GET/api/social-campaigns

List packs with their drafts for a project.

Request: Query: projectId.

Response: { success, data: SocialCampaign[] }

curl -X GET 'https://api.roami.xyz/api/social-campaigns?projectId=PROJECT_ID' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
PUT/api/social-campaigns/:id/posts/:platform

Replace a draft’s content (MCP: update_social_draft).

Request: { content } — shape depends on the channel (caption, title, body, imageUrls…).

Response: { success, data: SocialCampaign }

curl -X PUT 'https://api.roami.xyz/api/social-campaigns/CAMPAIGN_ID/posts/INSTAGRAM' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"content":{"caption":"..."}}'
PATCH/api/social-campaigns/:id/posts/:platform

Move a draft to a new date. Does not publish (MCP: reschedule_social_draft).

Request: { scheduledAt, wave? } — ISO date; wave is launch (default) or follow_up.

Response: { success, data: SocialCampaign }

curl -X PATCH 'https://api.roami.xyz/api/social-campaigns/CAMPAIGN_ID/posts/REDDIT' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"scheduledAt":"2026-10-28T03:30:00.000Z"}'
GET/api/social-campaigns/reddit/search

Search public Reddit for subreddits. Read only; posts nothing (MCP: search_reddit_subs).

Request: Query: q.

Response: { success, data: { subs: [{ name, description, subscribers }] } }

curl -X GET 'https://api.roami.xyz/api/social-campaigns/reddit/search?q=bangalore%20travel' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
GET/api/social-campaigns/reddit/about

A subreddit’s public about page. Read only (MCP: get_reddit_sub).

Request: Query: name, without r/.

Response: { success, data: { name, description, subscribers } }

curl -X GET 'https://api.roami.xyz/api/social-campaigns/reddit/about?name=bangalore' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'

MCP tools

send_post_to_socials

Create a post’s pack and write launch drafts.

list_social_week

Drafts scheduled for a week, by day.

get_social_pack

One pack with all its drafts.

update_social_draft

Edit a draft’s content.

reschedule_social_draft

Move a draft to another date.

add_social_follow_up

Add one follow-up draft after a channel has posted.

start_social_cluster

Write launch drafts for a cluster of related posts on free mornings.

search_reddit_subs

Search public Reddit for subreddits. Read only.

get_reddit_sub

Read a subreddit’s public about page. Read only.

set_reddit_catalog

Save the project’s subreddit list (up to 20). Roami ranks it for each post. Posts nothing.

Delivery (read-only)

Read your published, public posts from your own servers and agents. API key only: the key decides the project, and session tokens get 401. Responses allow cross-origin requests, cache for 60 seconds, and carry an ETag (send If-None-Match for a 304). Each post includes a readUrl share link that works without a key. Nothing here can create, change, or publish.

GET/v1/delivery/posts

Published posts, newest first.

Request: Optional query: page (default 1), limit (default 20, max 100).

Response: { success, data: { posts: [{ slug, title, excerpt, metaDescription, type, publishedAt, updatedAt, featuredImageUrl, readUrl }], pagination } }

curl -X GET 'https://api.roami.xyz/v1/delivery/posts?limit=10' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
GET/v1/delivery/posts/:slug

One published post with its content and blocks.

Response: { success, data: { ...post, content, blocks } }

curl -X GET 'https://api.roami.xyz/v1/delivery/posts/my-post-slug' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
GET/v1/delivery/feed.xml

RSS feed of published posts.

Response: application/rss+xml

curl -X GET 'https://api.roami.xyz/v1/delivery/feed.xml' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
GET/v1/delivery/feed.json

The same feed as JSON Feed.

Response: application/feed+json

curl -X GET 'https://api.roami.xyz/v1/delivery/feed.json' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'

Landing Pages

Curated destination hubs (LANDING_PAGE posts). Full-scope MCP tools only.

GET/api/landing-pages

List landing pages.

Response: { success, data }

curl -X GET 'https://api.roami.xyz/api/landing-pages' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
POST/api/landing-pages

Create a landing page.

Response: { success, data }

curl -X POST 'https://api.roami.xyz/api/landing-pages' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"title":"Thailand slow travel","slug":"thailand"}'
PUT/api/landing-pages/:id

Update landing page fields.

Response: { success, data }

curl -X PUT 'https://api.roami.xyz/api/landing-pages/LP_ID' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"title":"Thailand — updated"}'

Flight Routes

Scenic flight path content with landmarks and seat maps.

GET/api/flights

List flight routes.

Response: { success, data }

curl -X GET 'https://api.roami.xyz/api/flights' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
POST/api/flights

Create a flight route.

Response: { success, data }

curl -X POST 'https://api.roami.xyz/api/flights' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"airline":"…","origin":"DEL","destination":"LEH"}'
PUT/api/flights/:id

Update a flight route.

Response: { success, data }

curl -X PUT 'https://api.roami.xyz/api/flights/FLIGHT_ID' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"title":"…"}'

Newsletter

Campaigns, templates, segments, and send. Excluded from the beta MCP allowlist.

GET/api/newsletters/campaigns

List newsletter campaigns.

Response: { success, data }

curl -X GET 'https://api.roami.xyz/api/newsletters/campaigns' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
POST/api/newsletters/campaigns

Create a campaign.

Response: { success, data }

curl -X POST 'https://api.roami.xyz/api/newsletters/campaigns' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"name":"Weekly","subject":"…"}'
POST/api/newsletters/campaigns/:id/send

Send a campaign (supports dryRun).

Request: { dryRun?, limit? }

Response: { success, data }

curl -X POST 'https://api.roami.xyz/api/newsletters/campaigns/CAMPAIGN_ID/send' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"dryRun":true}'

Content / Media Hygiene

Mutating hygiene tools (MCP). Read-only audits are available to beta; fixes are full-scope only.

MCP tools

fix_content_metadata

Apply metadata hygiene fixes to a post (supports dry-run).

fix_content_relations

Update relation arrays (tags, places, related posts, media) for linking quality.

bulk_fix_media_hygiene

Batch update image metadata fields; supports dry-run planning.

API Key Management

Mint and revoke keys via authenticated CMS session. Excluded from beta MCP — no agent-side key minting without human oversight.

GET/api/api-keys

List API keys for the account/project.

Response: { success, data }

curl -X GET 'https://api.roami.xyz/api/api-keys' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'
POST/api/api-keys

Generate a new API key (MCP: generate_api_key).

Response: { success, data: { key, ... } }

curl -X POST 'https://api.roami.xyz/api/api-keys' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"name":"Partner key"}'
DELETE/api/api-keys/:key

Revoke an API key (MCP: revoke_api_key).

Response: { success }

curl -X DELETE 'https://api.roami.xyz/api/api-keys/sk_...' \
  -H 'Authorization: Bearer sk_...' \
  -H 'Content-Type: application/json'