Creates a new mock API in WireMock CloudInputname (string, required): The name of the mock API
hostname (string, optional): Custom hostname for the mock API
type (string, optional): Type of the mock API (e.g., openapi, graphql). Defaults to openapi if not specified.OutputConfirmation with mock API details
Imports a list of stubs to a specific mock APIInputmockApiId (string): The ID of the mock API
stubsJson (string): WireMock stub mappings in JSON formatOutputConfirmation message
Fetches stub mappings for a given Mock API. Supports pagination to avoid token limits when dealing with large numbers of stubs.InputmockApiId (string): The ID of the mock API
page (integer, optional): Page number for pagination (1-based). If not specified, returns all stubs.
limit (integer, optional): Maximum number of stubs to return per page. If not specified, returns all stubs.OutputJSON containing stub mappings
Updates a specific stub mappingInputmockApiId (string): The ID of the mock API
stubId (string): The ID of the stub mapping to update
stubJson (string): The new stub mapping definition in JSON formatOutputConfirmation message
Deletes a specific stub mappingInputmockApiId (string): The ID of the mock API
stubId (string): The ID of the stub mapping to deleteOutputConfirmation message
Fetches the OpenAPI document for a mock APIInputmockApiId (string): The ID of the mock API to fetch the OpenAPI document fromOutputOpenAPI document content
Pushes an OpenAPI document to a mock APIInputmockApiId (string): The ID of the mock API to push the OpenAPI document to
openApiDocument (string): The OpenAPI document content in YAML or JSON formatOutputConfirmation message
Fetches the GraphQL schema document for a mock APIInputmockApiId (string): The ID of the mock API to fetch the GraphQL schema fromOutputGraphQL schema document content
Pushes a GraphQL schema document to a mock APIInputmockApiId (string): The ID of the mock API to push the GraphQL schema to
graphQLDocument (string): The GraphQL schema document contentOutputConfirmation message
Starts recording HTTP traffic from a target service. The recording will proxy requests to the specified base URL and capture all traffic for later analysis. Only one recording session can be active at a time.InputbaseUrl (string): The base URL of the target service to record traffic from
destination (string, optional): The destination to save recorded events to (format: cloud:mock_api_id). If omitted, events will not be persisted.OutputRecording session details including proxy port
Checks the status of the current recording session. Returns information about whether a recording is active and, if so, the target URL and proxy port being used.InputNoneOutputRecording status information
Stops the currently active recording session and returns the number of requests that were recorded. If no recording is active, returns an error.InputNoneOutputNumber of recorded requests
Captures a request/response event in the currently active recording session. This allows you to manually add HTTP interactions to the recording that weren’t captured through the proxy. The recording session must be active (started with start_recording) before using this tool.Inputrequest (object): The HTTP request object to capture
response (object): The HTTP response object to captureOutputConfirmation message
Lists all data sources accessible by the user. This includes both CSV and database data sources that the user has permission to access.Inputq (string, optional): A filter for the retrieved items. Only items whose name contains the filter value will be retrieved. The filter is case insensitive.
page (integer, optional): The index of the page to retrieve.
limit (integer, optional): The amount of page items to retrieve.OutputList of data sources with metadata
Fetches the metadata for a single data source by its ID. This includes information about the data source such as its name, type (CSV or DATABASE), column metadata, state, and other properties.InputdataSourceId (string): The ID of the data source to fetch metadata forOutputData source metadata
Fetches the actual data from a data source as CSV format. This returns the raw CSV data that can be used for analysis, processing, or display purposes.InputdataSourceId (string): The ID of the data source to fetch data fromOutputCSV data content
Updates an existing data source in WireMock Cloud. Supports both CSV and DATABASE data source types.InputdataSourceId (string): The ID of the data source to update
dataSource (object): The updated data source configuration objectOutputConfirmation message
Updates the data for a data source from CSV content. This replaces all existing data in the data source with the provided CSV data.InputdataSourceId (string): The ID of the data source to update data for
csvData (string): The CSV data to upload. Should be properly formatted CSV with headers in the first row and data rows following.OutputConfirmation message
Deletes a data source by its ID from WireMock Cloud. This operation permanently removes the data source and cannot be undone.InputdataSourceId (string): The ID of the data source to deleteOutputConfirmation message
Makes an HTTP request to any endpoint and returns the response. Supports all HTTP methods, custom headers, and request bodies.HTTP requests can optionally be authenticated using configured authenticators. See HTTP Request Authentication for more details.Inputmethod (string): The HTTP request method (e.g., GET, POST, PUT, DELETE)
absoluteUrl (string): The full URL to make the request to
headers (object, optional): HTTP headers as key-value pairs
body (string, optional): Request body content
bodyAsBase64 (string, optional): Base64 encoded body contentOutputHTTP response including status, headers, and body
Look up documentation articles to help with WireMock usage and best practices. Returns the content of the specified documentation article.Inputdocument (string): The documentation article to retrieve (enum values: stub_creation, stateful_stubbing, api_crawling, data_driven_stubbing, validating_and_fixing)OutputDocumentation article content