API & MCP guide

Automate customer photo curation with REST or MCP

The Socialphotos API and remote MCP server let you manage your store's customer photo and video galleries from scripts, internal tools, or AI coding agents such as Claude Code and Cursor:

  • Review incoming customer photos from Upload Pages, storefront Customer Uploads, Bulk Uploads, Instagram, and TikTok.
  • Curate customer photos into independent copies, organize homepage and page galleries, and reorder photos.
  • Tag Shopify products in photos so shoppers can see customer photos on each product page (Advanced and Premium plans).
  • Create and manage Upload Pages, queue Instagram or TikTok post link imports, and check gallery analytics.

REST base URL: https://socialphotosapp.com/api/v1
MCP server URL: https://socialphotosapp.com/mcp
OpenAPI 3.1 schema: https://socialphotosapp.com/api/v1/openapi.json
Markdown docs & AI discovery: /support/api.md, /llms.txt, /.well-known/mcp/server-card.json

Curation workflow (approve vs. reject)

Socialphotos stores content in three stages: Sources → Curated Photos → Galleries & Tagged Products. A typical agent or script curation loop looks like this:

  1. Pull uncurated incoming items: Call list_sources(curated: false) (or GET /api/v1/sources?curated=false). Each record includes id, source_type, media_type, username, caption, thumbnail_url, and media_url.
  2. Fetch destinations: Call list_galleries (page galleries) and list_products (synced Shopify products).
  3. Approve and place selected photos: Call curate_photo(source_type, source_id, gallery_ids: [...], product_ids: [...]) (or POST /api/v1/photos/curate). This creates an independent curated copy, places it into the selected galleries and product pages, and marks curated: true so it drops out of the uncurated queue.
  4. Reject unwanted items: Call delete_source(source_type, id) (or DELETE /api/v1/sources/:source_type/:id) to remove unwanted items from your incoming queue. Deleting a source never removes curated photos already created from it.

To adjust display order later, call reorder_gallery (PUT /api/v1/galleries/:id/reorder) with photo_ids listed top-of-gallery first.

Create an API key

  1. While signed into Socialphotos on an active Basic, Advanced, or Premium plan, open Settings → API & MCP (or open API & MCP settings).
  2. Click Create API key.
  3. Give the key a clear name (for example, "Claude Code" or "Weekly curation script") and choose an access level:
    • Full access (read_write): inspect store data and make changes (curate photos, edit galleries, tag products, create Upload Pages, import links).
    • Read only (read): view account details, incoming sources, curated photos, galleries, products, Upload Pages, and analytics without changing anything.
  4. Copy the sp_live_... key right away. Socialphotos stores only a one-way cryptographic hash and never shows the full key again.

You can have up to 10 active API keys per store and revoke any key immediately from Settings → API & MCP.

Connect an AI agent (MCP)

Socialphotos hosts a stateless Streamable HTTP MCP server (JSON-RPC 2.0) at https://socialphotosapp.com/mcp authenticated with your Bearer API key. No local bridge or npm package is needed.

Claude Code

claude mcp add --transport http socialphotos https://socialphotosapp.com/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

Cursor

Add this entry to .cursor/mcp.json:

{
  "mcpServers": {
    "socialphotos": {
      "url": "https://socialphotosapp.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

ChatGPT (Custom GPT Actions)

Plain ChatGPT chats cannot send outbound authenticated HTTP requests directly. To curate from ChatGPT with your API key:

  1. In ChatGPT, open Explore GPTs → Create → Configure → Actions → Create new action.
  2. Click Import from URL and paste https://socialphotosapp.com/api/v1/openapi.json.
  3. Under Authentication, choose API Key, set Auth Type to Bearer, and paste your sp_live_... key.
  4. Save the GPT and ask it to show uncurated photos with thumbnails, recommend product matches, and curate the items you approve.

Available MCP tools (21)

Area Tools
Account get_account
Incoming sources list_sources, delete_source
Curated photos list_photos, curate_photo, update_photo, delete_photo
Page galleries list_galleries, get_gallery, create_gallery, update_gallery, remove_from_gallery, reorder_gallery
Shopify products list_products, tag_product (Advanced+), untag_product (Advanced+)
Upload Pages list_upload_pages, create_upload_page, update_upload_page
Imports & analytics import_social_link, get_analytics

Read-only API keys only expose the 8 read-only tools in tools/list and reject any write call with insufficient_scope.

REST API v1 reference

Pass your API key in the Authorization header on every request:

curl -sS https://socialphotosapp.com/api/v1/account \
  -H "Authorization: Bearer YOUR_API_KEY"
Endpoint Description
GET /api/v1/account Store summary, active plan, plan capabilities, and counts.
GET /api/v1/sources
GET / DELETE /api/v1/sources/:source_type/:id
List, inspect, or delete incoming source items across all 10 source types (upload_page, customer_upload, bulk_upload, instagram_post, instagram_tag, instagram_mention, instagram_story, instagram_hashtag, instagram_link, tiktok_link).
GET /api/v1/photos
POST /api/v1/photos/curate
GET / PATCH / DELETE /api/v1/photos/:id
List curated photos, curate a source item into galleries and/or tagged products, edit caption or username, or delete a curated copy.
GET / POST /api/v1/galleries
GET / PATCH / DELETE /api/v1/galleries/:id
POST /api/v1/galleries/:id/photos
DELETE /api/v1/galleries/:id/photos/:photo_id
PUT /api/v1/galleries/:id/reorder
Create, rename, show/hide, soft-delete, populate, and reorder page galleries.
GET /api/v1/products
GET /api/v1/products/:id
POST /api/v1/products/sync
POST / DELETE /api/v1/products/:id/photos
PUT /api/v1/products/:id/reorder
Search synced Shopify products, trigger a catalog sync, and tag, untag, or reorder product page photos (Advanced and Premium plans).
GET / POST /api/v1/upload_pages
GET / PATCH / DELETE /api/v1/upload_pages/:id
List, create, rename, enable/disable, or retire customer Upload Pages.
GET /api/v1/imports
POST /api/v1/imports/instagram
POST /api/v1/imports/tiktok
Queue asynchronous Instagram post link or TikTok post link imports and check their status.
GET /api/v1/analytics/overview Gallery views, product page views, photo views, photo clicks, and product clicks for a date range (up to 365 days).

For exact request schemas and query parameters, fetch /api/v1/openapi.json (no authentication required).

Plans, rate limits, and curated copies

  • Eligible plans: API and MCP access requires an active Basic, Advanced, or Premium plan. Stores on Setup, Free, or canceled plans receive HTTP 402 (plan_required).
  • Product tagging: Tagging products in photos and reordering product galleries require the Advanced or Premium plan (HTTP 402, plan_upgrade_required on Basic).
  • Independent curated copies: Curating a source photo creates an independent copy stored in Socialphotos. Deleting a source record keeps your curated photo in every gallery and product page; deleting a curated photo removes its placements while keeping the original source.
  • Klaviyo events: If Klaviyo is connected, curating a customer upload via the API or MCP fires Approved Customer Photo once on first curation, matching the web app.
  • Rate limits: 120 requests per minute per API key across REST and MCP, 30 write requests per minute on REST endpoints, and 10 link imports per minute. Exceeded limits return HTTP 429 with a Retry-After header.

On this page