Endpoint
Copy the server URL from Settings → API & MCP Access in the browser app.
Connect an MCP client
1
Open API and MCP Access.
Sign in at https://app.letsflow.ai. Go to Settings → API & MCP Access.
2
Copy the server URL.
Use
https://app.letsflow.ai/mcp (or copy from the Model Context Protocol (MCP) Server card).3
Add the server in your client.
Supported clients include Claude Code, Cursor, and Continue. Add a remote MCP server
with the URL above.
4
Authenticate with OAuth.
Complete the OAuth flow when the client prompts you. If you belong to more than one
organization, choose one during sign-in. Flow scopes the MCP session from that
selection in the Connect access token. Clients such as Cursor, Claude, and Codex do not
need a custom organization header.
5
Verify tools load.
The client lists Flow tools available to your connection. Flow checks your team and object
permissions when you call a tool. A listed tool does not grant access to every automation.
How MCP fits with other surfaces
MCP exposes tools for supported Flow operations. Your current organization and team permissions apply to each call.
Authentication
Create service accounts and API keys on the same API & MCP Access page when you need machine access outside MCP.
What clients can do
Published MCP tools cover requester work, record management, and automation authoring or operation, subject to your current permissions. Requester tools:get_current_user: confirm identity, teams, and active request or approval keyssearch_requests: find conversations or retrieve one by itsrequest_keylist_approvals: list actionable approvals and open the exact approval in Flowlist_request_catalog: list every available request option and its input schema. You can omitcatalog_justificationwhen the selected option returnsjustification_required: falsesubmit_request: submit a matching published request option or a general request
- List and retrieve authoring skills, approval procedures, integrations, action declarations, lint rules, connector health, automations, and runs.
- Lint complete automation TypeScript without saving it.
- Create a draft, save draft revisions and numbered versions, and run mocked validation review.
- Test a saved draft revision with explicit inputs and supported simulated outcomes.
- Inspect publication readiness, choose permitted connections, and publish a saved version after its prerequisites pass.
- Start published automations in live mode, inspect their state and safe logs, and request cancellation.
get_current_user.selected_team reports the selected team’s slug and enabled capabilities. It is null when you haven’t selected a team. If workflows is absent, automation work is unavailable in that selected team. This context says nothing about another team or whether a requested automation exists. An unavailable automation can be missing or outside your access. Refresh your authorized lists or ask your team administrator to confirm access. Refresh the client’s tool catalog after updates before using added response fields.
get_automation_run includes actions, errors, and author logs in steps. Run identity uses automation.version for the saved version number, such as 3 for v3. A null version does not identify a saved checkpoint. Draft revision numbers remain separate.
Use get_automation_state to read the current revision, lock status, and allowed actions. list_automation_revisions maps each source revision to its saved version, if any. To read a specific revision’s source, pass its revision to get_automation with include_code: true.
list_automation_publications returns current publication scopes and settings. Set current_only: false to read publication history. Selected connection and execution account references identify saved settings; Flow checks their current eligibility when you publish. Schedule and event inputs require permission to read source. Use get_automation_publication_context for knowledge and instructions, and list_automation_activity for authoring event summaries.
Each history list accepts page_size from 1 to 100 and returns pagination.next_call. Pass that object back to the same tool until it is null. Cursors are specific to your account, automation, and filters.
Use get_automation_run_source with a run_key to retrieve the exact source that run used, including its revision, saved version, and checksums. If revision 2 was saved as v1 and the draft later advances to revision 3, an older run still returns revision 2 and v1. This read requires access to both the run and the automation’s source, including for archived automations. Run detail and source responses include safe execution provenance, such as whether an authorized run came from a direct, scheduled, or event trigger.
Automation creation, successful draft and version saves, publication, and automation lists return an absolute automation_url. You can use this link to view the automation in Flow. Your existing permissions determine what you can view and publish.
Save draft, Save version, Review, and Publish have separate outcomes:
- Save draft preserves source revisions while you edit.
- Save version records a numbered checkpoint, such as v1, using the same rules as Save in Flow.
- Review checks validation scenarios and required coverage for the exact saved revision.
- Publish makes a saved version available to your authorized audience after its prerequisites pass.
browse_automation_documentation with documentation_type: "automation-authoring" and filter: {}. It returns folders, pages, and the current folder’s index_page. Select the required SDK, trigger, schema, or action page with read_automation_documentation. Use automation-templates for supported starting templates, native-actions for Flow actions, or integration-actions with filter.integration for an available application. These references use the same authorized team context as action discovery; pass team_slug when needed.
Continue next_cursor with the other arguments unchanged until it is null. Read a relative Markdown link by passing its href as path and its containing folder as parent. For exact public types, call get_automation_type_declaration with the documented module and exported name, then resolve its returned references separately. Continue to use get_integration_action_declarations for selected action signatures.
To create and publish an automation through MCP:
- Create a draft with
create_automation. - Save your draft source, input examples, and validation scenarios with
save_automation_revision. - Save a version with
save_automation_version, using the automation key and draft revision. - Run validation scenarios for the returned revision with
run_automation_validation_scenarios. - Confirm that scenarios and coverage pass with
list_automation_validation_scenarios. - Call
get_automation_publication_readinesswith that revision and your intended audience. Inspect permitted connections and resolve reported blockers. - Call
publish_automationwith the same revision, audience, requiredrequest_catalog_visibility, and any selectedconnection_bindingsandexecution_identity_ref. Usenot_listedto omit the automation from the request catalog,organizationfor an organization audience, ortarget_teamsfor a team audience.
list_automation_access_targets and an approval procedure with list_approval_procedures using native_access_only: true. Select the owning team for both calls. Follow pagination.next_call until it returns null.
Call create_automation with template.name: "native-access-request" and omit candidate_steps. In template.args, include the discovered target_key, target_revision, and approval_procedure_key. Set default_duration and max_duration to positive whole-unit durations, such as 7d and 30d. The default must not exceed the maximum.
Set fulfillment.kind to manual_task with instructions and evidence_required, or to workflow with workflow_source_kind. For system, provide system_workflow_slug. For publication, provide automation_key and publication_number. Flow rechecks the target and approval procedure before creating the draft, and verifies fulfillment when publishing.
The receipt includes the complete source_files bundle with input examples and validation scenarios. Continue through Save draft, Save version, Review, and Publish as above. Native access requests use requester execution and the same audience rules as the Flow app. Copying native source into an ordinary draft does not grant native access-request authority.
Saving a version returns status: "saved", revision, and version_number. Success confirms a saved checkpoint. Check Review results and publication state separately. Repeated saves of the same draft reuse its version. If updated connection contracts create a newer revision, validate the returned revision before publishing.
If publication returns setup_required with reason_code: "automation_version_not_saved" and next_step: "save_automation_version", call that tool and validate the returned revision. Retry publication with a new mutation key. Replaying a completed setup mutation returns its original receipt, including after saving a version.
You can complete this authoring path through MCP. Browser links provide optional navigation to the current automation. Opening a link does not save, publish, select a historic revision, or restore your requested audience.
Manage records
Use the client’s tool catalog to inspect the required arguments and result schema for each operation. These tool groups manage live Flow records:- Users and memberships:
list_usersandlist_team_usersread directory entries.list_workspace_members,update_workspace_member, andremove_workspace_membermanage enrolled memberships. Removing a membership preserves the person’s identity and history. Directory-managed membership restrictions and last-administrator protection still apply. - Invitations:
create_invitation,list_invitations,resend_invitation, andrevoke_invitationmanage invitations. Creating an invitation does not mean the person has accepted it. Check the invitation status and delivery result. - Assets: discover types with
list_asset_typesandget_asset_type. Uselist_assets,get_asset,create_asset,update_asset, andassign_assetfor inventory changes.archive_assetandrestore_assetcontrol visibility. Read the current revision and writable fields before changing an asset. Connected applications retain ownership of their fields. - Teams: use
list_teams,get_team,create_team, andupdate_teamfor teams and their settings. Readpreview_team_deletionbeforedelete_team, supply the required confirmation, and userestore_teamto restore a deleted team. - Conversations:
list_conversations,get_conversation,create_conversation, andupdate_conversationwork with service conversations. Pass therevisionfrom a list or detail result asexpected_revisionto reject an edit if the conversation has changed. Useprepare_conversation_resolution,request_conversation_resolution_approval, andresolve_conversationfor resolution.delete_conversationremoves an eligible conversation from active use. Updates do not support title editing or arbitrary status changes. Conversations synchronized from another application retain their deletion restrictions.
prepare_conversation_resolution and select an entry from approval_procedures that matches your intended approvers. Pass its approval_procedure_version_id to request_conversation_resolution_approval with the conversation’s ticket_key, resolution summary, and mutation key. Preparation lists published procedures available to the conversation’s team. Flow checks current permissions and approval routing when you request approval.
Each change in these groups requires an idempotency_key argument. Reuse the same key and arguments after a timeout or lost response. Changed arguments require a new key. If you also supply an MCP metadata key, it must match the argument. A retry still requires current permission.
For patch arguments, null means unchanged. Use the schema’s explicit clear operation to remove a nullable value. Asset field changes use entries with field_key, operation, and value_json. A set entry carries JSON text in value_json; a clear entry carries null. Each field can appear only once.
Flow can perform these changes from an Automations conversation in Build mode. Asking Flow to author an automation does not itself request changes to live records.
Update automation source
Useget_automation_migration_status with an automation key and exact draft revision to inspect required source updates. The result identifies pending migrations, whether the revision is current, and whether the definition is locked.
Call apply_automation_migrations with the current revision to apply Flow’s supported updates in order. The response returns the resulting revision and complete source_files. A blocked result can include updates already saved; inspect applied_migrations and the returned source before continuing.
If another edit changes the draft, read its current revision and inspect migration status again. Retry an unchanged request with the same mutation key to retrieve its receipt. A completed migration does not save a numbered version, run Review, publish, or start the automation. Continue the normal save and Review steps with the returned revision.
Manage automation drafts
Useclone_automation with an automation key and saved draft revision to duplicate the complete artifact bundle and native automation kind. Historical revisions are valid clone sources. The new draft preserves clone lineage and does not copy live publications.
Use list_automation_transfer_targets to find teams where you have authoring authority, then call preview_automation_transfer with the current draft revision and owning_team_slug. Review all visible parent pages and pass dependency_confirmation_token to transfer_automation when confirmation is required. The transfer checks active publications, connections and native access bindings. Compatible publications keep their audience and append the new owning team’s authority. Existing runs keep their original pins.
Use set_automation_revision_lock with the current draft revision and locked: true or false to prevent or permit new revision creation. Draft saves and version finalization obey the lock. The lock does not unpublish the automation or cancel existing runs. get_automation_state reports the current lock and allowed actions.
For clone, transfer and lock retries, preserve _meta.flow.idempotencyKey and the original arguments. Use a new key when changing the request. Transfer and lock reject stale draft revisions; refresh state before retrying a changed operation.
Publication readiness and connections
Useget_automation_publication_readiness with an exact saved revision and intended audience to inspect its saved version, Review, approval procedures, execution identity, action permissions, dependencies, publication context, and connection readiness. The response distinguishes an incomplete Review, a missing connection choice, unhealthy credentials, missing provider scopes, and action-policy refusals. You must have automation editing permission for the source and each target team.
Approval blockers appear in approvals.issues with approvals.ready: false. Resolve the reported approval setup before publishing. These checks use the intended audience and the saved trigger declarations, including rules for unattended runs.
For native access requests, publish to the exact asset’s owning team or the organization. Omit connection_bindings, including an empty list; fulfillment defines the connection. Readiness reports incompatible audiences and provided bindings in native_access.issues with ready: false.
For native access requests, preflight also checks the fulfillment defined in source. Disabled ticketing or an unavailable fulfillment implementation returns a refusal with a reason code. Repair the source or ask the owning team to restore the required capability or connection, then retry. Final publication repeats these checks.
Follow pagination.next_call to inspect all connection_choices. Choose one permitted connection for each connector with connection_bindings: [{ connector_key, connection_ref }]. Use the returned opaque references. The same selection applies to every requested audience. Pass the selections to both readiness and publish_automation.
For ordinary automations, omitting connection_bindings preserves the selection rules: reuse a stored choice or choose the only eligible connection. An empty list also uses those rules; it does not clear stored selections. If several connections are eligible and none is selected, choose one explicitly. Connection repairs, provider scopes, and policy changes require the appropriate connection or policy owner.
Pass the same optional knowledge_document_refs and additional_instructions to readiness and publication. The context result reports unavailable documents, instructions that require Flow, and conflicting inherited settings. Omission preserves each field; [] clears knowledge and null clears instructions. Readiness does not return inherited content.
Readiness is advisory and does not save selections or publish. Publication checks current authorization, Review, approval procedures, connection health, policy, and context again. If conditions change after preflight, resolve the new refusal before retrying with a new mutation key.
Publication execution identity
Scheduled, event-triggered, and custom approval automations require an eligible service account. Calllist_automation_execution_identities with the exact saved revision and intended audience. Follow pagination.next_call for every account. Call get_automation_execution_identity with its opaque execution_identity_ref to inspect and page through visible team grants. Selection must cover every publication team required by the native publication rules.
Visible grants include only teams you may inspect for publication. They are not a complete statement of the account’s authority. The approval-access projection describes native source visibility; selecting an account does not grant authority to make a decision for a human.
Pass the selected execution_identity_ref to readiness and every publish_automation call. Omitted or null uses requester execution; it does not preserve the previous publication’s service account. Access-request automations always use the requester and reject this selection. Custom approval automations require an executor and request_catalog_visibility: "not_listed".
Schedules and event filters remain in the authored source. Publication pins the selected executor, revision, and build; changing the draft does not change those saved publication settings. Flow rechecks current identity eligibility before a new publication or a mutation-receipt replay. Changed selections require a new mutation key.
Publication knowledge and instructions
Useget_automation_publication_context to inspect the latest settings for each audience you can view. Follow pagination.next_call to inspect every audience. Each record includes its publication reference, instructions, and permitted knowledge documents. knowledge_selection_complete: false means a saved document is currently unavailable. The document links open the original connected source.
Use list_automation_knowledge_documents with the automation key and an optional title query to find documents you can select. Follow pagination.next_call until it is null to inspect more choices.
In publish_automation, knowledge_document_refs replaces the complete selection of up to 20 documents and additional_instructions replaces the instructions. Omit either field to preserve that field for each addressed audience. Pass [] to clear knowledge or null to clear instructions. A new audience reuses common active publication settings only when you can inspect them and they agree; otherwise, provide the explicit choices requested by Flow.
Preserved documents must still be available to you. Instructions require Flow to be enabled in the new revision. If either check fails, correct or explicitly clear that field before retrying. Earlier publication records retain their original settings. Use the same mutation key only when retrying the same arguments; changed settings require a new key.
Retire an automation
Usepreview_automation_retirement with the automation key, action: "unpublish" or "archive", and scope: "all". Follow pagination.next_call to inspect every visible affected parent. The total can include parents you do not have permission to inspect.
Call unpublish_automation to withdraw every active audience. Call archive_automation to withdraw every active audience and remove an eligible automation from normal discovery and authoring. Both require scope: "all". Individual-audience retirement is unavailable through these tools.
When confirming an impact on parent automations, pass the preview’s current dependency_confirmation_token. If dependencies change, Flow refuses the stale confirmation. Preview again before proceeding. This token identifies dependency impact; it does not establish human verification.
Retirement preserves history and the authority already assigned to running automations. It does not cancel those runs. For an archived automation, use get_automation_run_source with a known authorized run key to recover its executed source. Normal state and history listings remain unavailable. Reuse the same mutation key when retrying an unchanged request to retrieve its original receipt.
Draft tests and human confirmation
Saved validation scenarios run with mocked effects throughrun_automation_validation_scenarios. They do not start a live draft test or establish consent for real effects. The force option reruns scenarios; it does not bypass Review.
For a simulated draft test, read get_automation_test_contract with the automation key and exact saved revision number. Follow pagination.next_call to read all action choices. Then call test_automation_revision with that revision, explicit inputs, and any supported simulation_outcomes you want to select. Actions without a selection use their simulated defaults. The optional requested_for_email selects an active organization member as the beneficiary. Your signed-in identity remains the requester and executor.
Give each test a stable _meta.flow.idempotencyKey. Retry an identical request with the same key to recover its run receipt. Use a new key when you change the inputs or outcome choices. Inspect the returned run_key with get_automation_run, or request cancellation with cancel_automation_run.
The test runs the saved revision even if you later edit the draft. It does not publish, save a numbered version, or pass Review. Saved validation scenarios remain the separate path for assertions and Review coverage.
For live effects, pass side_effects_policy: "live" and explicit connection_bindings selected from the test contract. Use [] when no connections are required. Live tests run as you and do not accept simulated outcomes or another beneficiary. Your MCP client must support form elicitation and confirm the specific action. Decline, cancel, expiry, or lost permission prevents the run.
submit_automation_run starts the published automation in live mode. It does not accept a draft revision or a simulated mode.
Ordinary MCP publication requires a saved version, passing Review, an authorized audience, and ready connections. A requested Review override requires permission, a reason, and its own client confirmation. OAuth sign-in and a tool argument do not replace that confirmation. Client forms are mediated by the client; a custom client can automate responses, so they do not prove human presence independently.
For bounded action exploration:
- Call
prepare_automation_explorationwith a parent automation you can edit, its current saved revision, a stableidempotency_key, andcode. Source must declare empty inputs withschema.object({}), one direct trigger, fixed action arguments, at most 12 steps, and from 1 through 8 declared actions. - Inspect the returned saved source. Read
get_automation_test_contractfor the returned exploration key and revision, following every page of connection choices. - Call
run_automation_explorationwith that key and revision, explicitconnection_bindings, and a stableidempotency_key. Confirm the source, actions, accounts, and your execution identity in the client form. - Inspect or cancel the returned run with the run tools. Retry the identical request with the same key to recover its receipt.
MCP access mode
Organization administrators set MCP access mode on the Model Context Protocol (MCP) Server card in Settings → API & MCP Access. The mode controls what every MCP connection in the organization can do.
The mode is a ceiling, not a grant. It never lets a connection do more than that person can already do in Flow. Approval decisions stay in the authenticated browser. MCP cannot perform them.
A change applies to new MCP requests immediately. Flow records the change in the audit trail.
Troubleshoot connection issues
1
Confirm the server URL.
Confirm the server URL ends with
/mcp and uses https://app.letsflow.ai.2
Retry OAuth.
Retry OAuth if the client cached an expired token. Multi-organization users should complete
organization selection during that flow.
3
Check multi-organization linking.
If the client reports that your identity is linked in multiple organizations, disconnect and
reconnect so organization selection can be recorded on the new token.
4
Verify capabilities.
Verify your user has the capabilities required for the tools you expect (team admin or org
admin may need to grant access).
5
Check MCP access mode.
If write tools are missing for everyone, check the MCP access mode; an org
admin may have set it to read only.
6
Compare across surfaces.
Compare behavior with the same action in the browser or command-line interface (CLI)
to isolate client vs permission issues.
Legal pages for directory listings
When an assistant directory or marketplace asks for Flow legal URLs, use:
The privacy URL redirects to ServiceNow’s published privacy policy. Hosted MCP tools also advertise directory-safe titles and annotation hints (
readOnlyHint, destructiveHint, openWorldHint) on tools/list.