WebstoryDocs

REST API

The Webstory REST API, for scripts and apps that don't use MCP: base address, sign-in, lists, errors and every endpoint.

The REST API does the same things as the agent tools, with the same permissions and the same limits. Use it from scripts and apps that don't speak MCP.

Base address

https://webstoryapp.com/api/v1/agent

Sign in

Get a token with OAuth, exactly as for an agent, with https://webstoryapp.com/api/v1/agent as the resource. See Authentication. Send it on every request:

Authorization: Bearer <access token>

Conventions

  • JSON in and out, with snake_case field names.
  • Path parts such as {story_id} are arguments. Other arguments go in the query string (GET) or a JSON body (POST, PUT).
  • Lists take limit (1 to 50, default 20) and cursor, and answer next_cursor, which is null on the last page.
  • Errors come back as { "error": "…", "code": "…" } with an HTTP status. See Errors.
  • Requests that change something take an Idempotency-Key header. Send the same value when you retry, so the change isn't made twice.
  • Times are ISO 8601 in UTC. Lengths are in seconds.

Endpoints

MethodPathToolScope
GET/api/v1/agent/workspaceget_workspaceAny
GET/api/v1/agent/storieslist_storiesstories:read
GET/api/v1/agent/stories/{story_id}get_storystories:read
GET/api/v1/agent/stories/{story_id}/reels/{reel_id}get_reelstories:read
GET/api/v1/agent/stories/{story_id}/reels/{reel_id}/shareget_reel_sharestories:read
POST/api/v1/agent/stories/{story_id}/reels/{reel_id}/share-linkscreate_share_linkstories:share
GET/api/v1/agent/stories/{story_id}/statsget_story_statsinsights:read
GET/api/v1/agent/commentslist_commentscomments:read
GET/api/v1/agent/chatslist_chatschats:read
GET/api/v1/agent/chats/{chat_id}get_chatchats:read
GET/api/v1/agent/orderslist_ordersorders:read
GET/api/v1/agent/orders/{order_id}get_orderorders:read
PUT/api/v1/agent/notification-endpointset_notification_endpointnotifications
GET/api/v1/agent/brandslist_brandsstories:read
POST/api/v1/agent/storiescreate_storystories:edit
PATCH/api/v1/agent/stories/{story_id}update_storystories:edit
POST/api/v1/agent/stories/{story_id}/reelsadd_reelsstories:edit
PATCH/api/v1/agent/stories/{story_id}/reels/{reel_id}update_reelstories:edit
POST/api/v1/agent/stories/{story_id}/reels/{reel_id}/movemove_reelstories:edit
POST/api/v1/agent/stories/{story_id}/reels/{reel_id}/duplicateduplicate_reelstories:edit
DELETE/api/v1/agent/stories/{story_id}/reels/{reel_id}remove_reelstories:edit
POST/api/v1/agent/stories/{story_id}/replace-textreplace_textstories:edit
GET/api/v1/agent/stories/{story_id}/previewcreate_previewstories:read
GET/api/v1/agent/medialist_mediamedia:read
POST/api/v1/agent/media/importsimport_mediamedia:upload
POST/api/v1/agent/media/filesupload_filemedia:upload
POST/api/v1/agent/media/uploadscreate_uploadmedia:upload
POST/api/v1/agent/media/upload-pagescreate_upload_pagemedia:upload
GET/api/v1/agent/stories/{story_id}/reels/{reel_id}/elementslist_reel_elementsstories:read
PUT/api/v1/agent/stories/{story_id}/reels/{reel_id}/buttonsset_buttonstories:edit
DELETE/api/v1/agent/stories/{story_id}/reels/{reel_id}/buttons/{button_id}remove_buttonstories:edit
PUT/api/v1/agent/stories/{story_id}/side-buttonsset_side_buttonstories:edit
GET/api/v1/agent/changeslist_changesstories:read
POST/api/v1/agent/changes/{change_id}/undoundo_changestories:edit

OpenAPI

The OpenAPI description of the REST API is at /openapi.json, generated from the same definitions as the server. Webstory also serves it at https://webstoryapp.com/api/v1/openapi.json.