Keystone Developers
Open Keystone

Changelog

What changed

Additions, changes, and removals in the API contracts and the MCP server. Newest first.

  1. The Auth service declares its surfaces and credentials

    Heimdal's spec now names each operation's surface and credential, as SOR's does, so the Auth service is four surfaces: the Auth API for signing in and the signed-in person's own account, the Consumer auth API for a website's visitors, the Auth internal API for Keystone's services, and Auth webhooks for SendGrid. Sign-in routes such as POST /api/v1/auth/login declare a reCAPTCHA token (X-Recaptcha-Token), the consumer sign-in routes the site's X-API-Key, GET /api/v1/consumer/me a consumer token, and POST /api/v1/webhooks/sendgrid/events SendGrid's signature. GET / is a health probe and is no longer listed. On SOR, the Meta and Instagram OAuth callbacks, such as GET /api/v1/admin/businesses/{business_id}/social_integrations/meta/oauth/callback, move from the Console API to Webhooks and callbacks, and they answer without a console token whether or not billing is enforced.

  2. Every operation declares its surface and its credential

    SOR's spec now names each operation's surface as a tag and its credential in security, from the schemes in components.securitySchemes, and this reference reads both from there. On the Public API the site key is the SiteApiKey scheme rather than an X-API-Key parameter of every operation; the Edits API declares a console token, or an MCP access token with keystone-mcp's key, and a run token with the agents deployment's key for POST /api/v1/edits/agent-tools/{tool}. Each webhook declares its provider's signature: GitHub's and Meta's X-Hub-Signature-256, Entri's Entri-Signature-V3, Twilio's HTTP Basic and Retell's x-retell-signature. The Auth service's internal operations declare X-Internal-Api-Key, and POST /api/v1/internal/agent-run-tokens declares X-Agent-Run-Issuer-Key.

  3. Conversation tools, code tools, and form uploads

    A contact's tools are conversation_* (conversation_reply, conversation_handoff and the rest, formerly customer_*), and a run that serves a contact acts as CONTACT; a site's files are read and changed with code_* in place of site_*, and the *_guide tools are gone. The Public API adds POST /api/v1/public/form_uploads and GET /api/v1/public/industry_media. Twilio's texting registration events arrive at POST /api/v1/webhooks/twilio/texting/{brand_id}. The Auth service adds POST /api/v1/auth/token/exchange, POST /api/v1/internal/agent-run-tokens/renew and email address changes by code.

  4. An act in a run is one call; approvals are Needs you items

    An act Ask Keystone's run calls now runs as asked or is held as a Needs you item for a person's yes, in one call: SOR answers {"status": "held", "item": …} when it holds it. request_approval, request_standing and pending_action_id are gone from the agents deployment, and with them POST /api/v1/edits/agent-tools/{tool}/approval and …/approvals/{action_id}/standing. A person presses the item's button (needs_you_press) to run it. See The agents deployment.

  5. A customer's run token names its conversation or call

    Heimdal's internal run token request takes conversation_id or call_id in place of reading them off the thread's id: a CUSTOMER run must name exactly one, and the token carries it as a claim that SOR binds the run to. An Ask Keystone thread's id is a plain UUID with nothing in it. SOR's POST /api/v1/internal/assistant/calls no longer answers a thread_id, and GET /api/v1/admin/businesses/{business_id}/revision is gone: the console follows its business's changes instead.

  6. Specs: Heimdal 46 → 41 operations

    Heimdal's document is regenerated from the service; it had fallen behind.

    Added. POST /api/v1/auth/code and POST /api/v1/auth/code/verify (sign in with an emailed code); POST /api/v1/users/current_user/phone/code and POST /api/v1/users/current_user/phone/confirm; POST /api/v1/internal/notifications/send-email and POST /api/v1/internal/assistant-mentions/send-email; POST /api/v1/internal/users/{user_id}/guest-session, POST …/guest-claim/code, POST …/guest-claim/verify and PUT …/password.

    Removed. Role and permission management: /api/v1/roles/* and /api/v1/permissions/* (twelve operations). A person's reach is their platform role on the access token; an admin changes it with PATCH /api/v1/users/{user_id}/role. Also POST /api/v1/internal/lead-notifications/send-email, …/review-notifications/send-email and …/escalation-notifications/send-email, replaced by POST /api/v1/internal/notifications/send-email.

    Changed. Every refusal is now an ErrorBody with a machine code from ErrorCode beside its detail.

  7. MCP: one server, Keystone's capabilities as its tools

    The Keystone MCP server is now one server for any MCP client. Its tools are Keystone's capabilities, the same ones Ask Keystone uses, plus businesses_find to pick the business; each takes the business_id it is for and goes to POST /api/v1/edits/businesses/{business_id}/tools/{tool}. Every call runs at once as the signed-in person's own, acts included, as a click in the console would. Edit sessions, the picker card, card tokens and the per-feature action tools are gone, and so are the guides that described them. See the tool reference and Connecting an MCP client.

  8. Tools: one for each job, deletes as records changes, records and NO_CHANGE

    Where two tools did one job, one is left. A draft campaign and a live one are changed with the same tools, ads_update_campaign, ads_update_ad_set, ads_update_ad, ads_create_ad_set, ads_create_ad and the delete tools: a draft's change is made at once, and a live campaign's, which reaches Meta, is decided on a card. An ad set or an ad is turned on or off by its enabled field. ads_copy_ad makes its copy at once, switched off, without a card.

    A package's or a service's items and a record's offers are fields of business_update: service_item_ids on a service or a package, offer_ids on a service item or a package, each the whole list in order. A service item's create or update takes the other end of the same links, service_ids and package_ids, so a new item goes into its services and packages in one call. A new offer is a business_update create of an offer, with the package_ids and service_item_ids it goes on. An offer taken off a record stays the business's; an offer is deleted on its own.

    A library photo, video, file or artifact is deleted as a records change: a business_update delete of a photo, video, file or artifact, undone like any other change with business_undo and its changeset_id. Several in one call are deleted together or not at all.

    contacts_merge merges two contacts and closes any open duplicate review of the pair. Whether Keystone answers a contact is their conversation's ai_enabled, changed with conversations_update (which no longer takes ai_mode); contacts no longer take or return auto_contact_enabled, and read it as ai_enabled. Draft replies are gone, and with them conversations_send_draft and conversations_discard_draft. files_save saves documents only; an attached picture goes to the library with photos_import (attached_photo_ids). seo_overview includes the site's stored health. autopilots_update and autopilots_undo name the autopilot with autopilot, not agent. guidance_update writes one scope's guidance in full.

    WasNow
    ads_switch_adads_update_ad (enabled)
    ads_switch_off_ad_setads_update_ad_set (enabled: false)
    ads_update_draftads_update_campaign, ads_create_ad_set, ads_create_ad
    artifact_deletebusiness_update (an artifact delete)
    business_create_offerbusiness_update (an offer create)
    business_link_offerbusiness_update (offer_ids)
    business_remove_offerbusiness_update (offer_ids)
    business_set_item_servicesbusiness_update (the item's service_ids)
    business_set_package_itemsbusiness_update (service_item_ids)
    business_set_service_itemsbusiness_update (service_item_ids)
    contacts_dismiss_duplicatecontacts_keep_apart
    contacts_merge_duplicatecontacts_merge (merge_contact_id)
    contacts_start_textingcontacts_opt_in
    contacts_stop_textingcontacts_opt_out
    file_deletebusiness_update (a file delete)
    guidance_add, guidance_setguidance_update
    photo_deletebusiness_update (a photo delete)
    seo_healthseo_overview
    video_deletebusiness_update (a video delete)

    What a change records, and a change of nothing

    Every change tool in the tool reference now names in records the facts it records in the business's Activity (business_update: business.record.created, business.record.updated, business.record.deleted); a read records none. A call that would change nothing, a record set to what it already holds or a conversation marked read with nothing unread, is refused with the code NO_CHANGE instead of succeeding as a change.

    Other parameters changed: blog_save takes at, then and timezone instead of status; content_list filters by statuses, not states; customer_handoff no longer takes reason; billing_buy_credits, billing_manage_link and billing_subscribe take a return_url; google_place takes address_only; and blog_overview takes a post_id.

  9. Routines in place of autopilots; each switch on what it switches

    The autopilots are gone, and with them autopilots_list, autopilots_update and autopilots_undo. Everything Keystone does for a business unasked is a routine. A routine runs on a fact (with a filter on its fields) or a schedule, and each run asks Ask Keystone its instructions, which does the work with its own tools; a copy of one of Keystone's defaults starts with Keystone's instructions for it. With auto_approve on, every act its runs ask for runs at once; off, each waits for the owner in Needs you. routines_create and routines_update take area, instructions, auto_approve and model_id (empty for Auto); tool, tool_args, as_autopilot and only_after_new_facts are gone, and so is routines_run: a routine runs when it is set off.

    Guidance has two scopes, everyone (everything Ask Keystone does for the business, routines included) and customers (texts, the site's chat and calls with customers), for guidance_list and guidance_update.

    What an autopilot switched is now set on the thing itself:

    WasNow
    The Conversations autopilot answering textsphone_numbers_update (ai_texts), per number
    The Website autopilot's chatwebsite_chat, website_chat_update (enabled, greeting)
    The Library autopilot describing photoslibrary_settings, library_settings_update (describe_photos)
    An autopilot looking after a campaignads_update_campaign (is_managed, lead_follow_up_enabled)
    The Conversations autopilot texting a new leadconversations_follow_up, which the lead follow-up routine asks Ask Keystone to call

    In the capabilities contract a capability's agent is now its area: the area whose model runs it on Auto.

  10. Tool names: one convention

    Every tool's name now starts with its area and then says what it does. An area is one word, or two joined by _ (phone_numbers, needs_you): plural for things a business has many of (ads, contacts, listings, photos), singular for what it has one of (blog, social, website, business). Reading many is _list, reading one is _get. Making or deleting a record is create and delete, putting an existing thing on or off another is add and remove, changing fields is update, and pulling from outside Keystone is sync. Where an area has several kinds of thing, the thing follows the verb (ads_pause_campaign, ads_delete_ad_set).

    The tools that existed before took these names. A social post is changed with one tool now, social_update: a draft at once, a scheduled post on a card. The old names are gone; call the new ones. Where two tools did one job, see Tools: one for each job.

    WasNow
    account_askguest_offer_signup
    ads_add_adads_create_ad
    ads_add_ad_setads_create_ad_set
    ads_add_audienceads_create_audience
    ads_add_audience_presetads_create_audience_preset
    ads_add_lead_formads_create_lead_form
    ads_archiveads_archive_campaign
    ads_campaignads_get_campaign
    ads_change_adads_update_ad
    ads_change_ad_setads_update_ad_set
    ads_change_campaignads_update_campaign
    ads_edit_draftads_update_campaign, ads_create_ad_set, ads_create_ad
    ads_launchads_launch_campaign
    ads_lookupads_search_targeting
    ads_new_campaignads_new_draft
    ads_pauseads_pause_campaign
    ads_publishads_publish_campaign
    ads_remove_adads_delete_ad
    ads_remove_ad_setads_delete_ad_set
    ads_remove_audience_presetads_delete_audience_preset
    ads_resumeads_resume_campaign
    ads_syncads_sync_campaign
    ads_turn_all_offads_update_ad_set
    agents_settingsautopilots_list
    agents_undoautopilots_undo
    agents_updateautopilots_update
    artifact_patchartifacts_patch
    artifact_readartifacts_get
    artifact_saveartifacts_save
    artifact_updateartifacts_update
    blog_postblog_get
    blog_postsblog_list
    blog_publishblog_publish_now
    business_add_offerbusiness_update
    business_recordbusiness_get_record
    business_setupbusiness_guide
    business_snapshotbusiness_overview
    business_undo_changebusiness_undo
    business_update_recordsbusiness_update
    contactcontacts_get
    contact_callsconversations_calls
    contact_reviewscontacts_duplicates
    contacts_querycontacts_list
    conversation_messagesconversations_get
    file_readfiles_get
    file_renamefiles_rename
    form_submissionsforms_submissions
    guest_visitguest_guide
    image_generatephotos_generate
    image_generationphotos_generation_status
    index_checkwebsite_check_index
    integrations_capi_testintegrations_test_capi
    integrations_discover_listingsintegrations_sync_listings
    integrations_import_ad_accountsintegrations_sync_ad_accounts
    integrations_use_profileintegrations_switch_profile
    lead_destinationslead_destinations_list
    lead_destinations_addlead_destinations_create
    lead_destinations_changelead_destinations_update
    listinglistings_get
    listing_auditlistings_audit
    listing_performancelistings_performance
    listing_ranks_updatelistings_sync_ranks
    listing_resultslistings_results
    listing_results_synclistings_sync_results
    listing_review_savelistings_save_review
    listing_scorelistings_score
    listing_searcheslistings_searches
    listings_overviewlistings_list
    notifications_settings_updatenotifications_update
    notifynotifications_send
    pagespeedgoogle_pagespeed
    phone_numbersphone_numbers_list
    phone_numbers_changephone_numbers_update
    photo_detailphotos_get
    photo_editphotos_edit
    photo_edit_statusphotos_edit_status
    photo_set_alt_textphotos_set_alt_text
    photos_libraryphotos_list
    rank_checkgoogle_ranks
    ranks_updatewebsite_sync_ranks
    routines_changeroutines_update
    search_consolewebsite_search_console
    search_console_syncwebsite_sync_search_console
    search_volumegoogle_search_volume
    seo_site_healthseo_overview
    site_auditwebsite_audit
    social_change_scheduledsocial_update
    social_edit_draftsocial_update
    social_postsocial_get
    social_postssocial_list
    social_refresh_engagementsocial_sync_engagement
    speed_checkwebsite_check_speed
    tracked_searches_updatewebsite_choose_searches
    url_inspectionwebsite_url_inspection
    visitors_syncwebsite_sync_visitors
    website_remove_domainwebsite_disconnect_domain
    website_review_page_savewebsite_save_page_review
    website_review_searches_savewebsite_save_search_review
    website_review_site_savewebsite_save_site_review
    website_search_fixesseo_fix
  11. MCP: 9 → 75 tools, act-now actions, and the agents deployment

    The MCP reference now mirrors the whole public server, in thirteen groups.

    Features through the session. Photos (find_photos, add_photos, generate_photos, edit_photo, photo_job), the website and its site agent (website_status, generate_website, request_site_change, site_change_status, answer_site_agent), website setup (website_domain, add_site_document, website_models, import_from_website, website_import, extract_website_import), ads (ads_overview, ads_campaign, ads_report, draft_ad_campaign, update_ad_draft, create_ad_campaign, ad_copy_ideas, ask_ads_agent, ads_agent_conversation), blog (blog_posts, blog_post, draft_blog_post, create_blog_post, update_blog_post, blog_overview, blog_post_results), social (social_posts, draft_social_post, update_social_draft), reviews and listings (reviews, listings, listing, listing_results), contacts (contacts, contact, contacts_pipeline, contact_reviews), conversations (conversations, conversation_messages), and seo_overview, seo_site_health, form_submissions, agent_settings.

    Act-now actions. Twelve <feature>_action tools (ads, agents, blog, business, contacts, conversations, forms, listings, media, reviews, social, website) ask for 92 things that leave Keystone or cannot be undone; the user confirms on a card (confirm_action, decline_action) or in the console's Waiting for you. waiting_for_you lists what waits across businesses, decide_request answers an agent's request, and find_work reads the work queues without a claim. The actions and their parameters are generated from SOR's capabilities contract. Guide: Act-now actions.

    Core changes. find_business now lets a user claim and work on a business whose site is live. get_snapshot and read_business include forms and website image slots, and propose_changes takes form and website entities (with website_photos by slot). Card tokens gained answer:, confirm:, decline: and decide:; views gained photos, website, ads, records, action, waiting and queue (Cards and card tokens). How a session works covers claims, feature tools and attempt.

    Agents deployment. The same server with MCP_AUDIENCE=agents, in-cluster only, serves workflow-engine's agents under Heimdal run tokens: 19 capability-bound tools with their rules, and request_approval for the ones that need a person. Documented in the reference's last section and in The agents deployment.

    npm run check now expects 63 hand-mirrored tools plus one action tool per feature in specs/capabilities.json.

  12. Specs: SOR 704 → 774 operations, Heimdal 45 → 46, capabilities contract vendored

    Both OpenAPI documents are now generated from each service's main rather than copied from the console's vendored files, which had drifted onto a branch. SOR's surfaces now count agent 46, console 434, edits 80, internal 161, public 42, system 4, webhooks 7.

    Edits API (+66). A business's features hang off its session: /api/v1/edits/sessions/{session_id}/ gained photos (list, search, import, generate, edit, jobs), website (status, draft, requests, answer, domain, documents, models, imports and their extraction), ads (overview, campaigns, report, drafts, new drafts, copy ideas, the campaign agent and its messages), agents, listings (and results), blog (posts, overview, performance), social, reviews, contacts (pipeline, reviews), conversations (and messages), seo (and site health), forms/submissions, and actions. Across businesses: GET /api/v1/edits/actions, POST …/actions/{id}/confirm|decline|decide, GET …/businesses/{id}/actions, agent-tools (POST …/agent-tools/{tool}, …/approval), and queues. The reference groups them per feature (Photos, Website, Ads, Blog, … , Actions (ask), Agent tools, Work queues) instead of under Sessions.

    Console API. GET /admin/businesses/{id}/seo/changes and /seo/todos, POST …/seo/approvals/{action_id}/approve|dismiss; GET /businesses/{id}/form_submissions and GET /businesses/{id}/contacts/{contact_id}/form_submissions.

    Internal API. POST /internal/media/gallery/{photo_id}/import, GET /internal/capabilities, POST /internal/edits/actions/{id}/thread-decision, POST /internal/edits/agent-runs/ended.

    Removed. /api/v1/admin/ai/providers* and /api/v1/ai/providers* (six operations and the AiProvider schemas).

    Heimdal. POST /api/v1/internal/agent-run-tokens issues the 15-minute run tokens workflow-engine's agents carry to the MCP agents deployment; POST /api/v1/auth/signup changed shape.

    Capabilities contract. specs/capabilities.json (111 capabilities, 20 tool rules) is vendored from sor-service contracts/capabilities.json; the MCP reference derives its action tools and the agents deployment's tools from it. npm run specs:sync copies it alongside the two OpenAPI documents.

  13. Developer center opens

    A generated reference for every operation in the SOR and Heimdal OpenAPI contracts, grouped into surfaces by audience and credential, plus the Keystone MCP server's nine tools. Start with Conventions.

  14. Enterprise access and the API licence

    The API and the MCP server are an Enterprise feature, and the terms are now written down. Who can use the API says what a Keystone Enterprise subscription includes, how credentials are scoped, and how to get set up. The Keystone API licence is the commercial licence for programmatic access: what a subscriber may build, what it may not do, how credentials and business data are handled, and the 90-day notice Keystone gives before a breaking change. A notice on the home page, the API and MCP landings, and each external surface points at both.