Skip to main content
POST
Create Mock Tool Data

Authorizations

X-API-Key
string
header
required

Authenticate every request by passing your API key in the X-API-Key header. To get your key, go to Dashboard → API Keys and create or copy your Production API key.

Body

application/json

Request body to create a named mock tool response in the tenant mock library.

name
string
required

Human-readable name for this mock, used when picking mocks in the test-case UI.

Example:

"Success - Order Confirmed"

response
object
required

Mocked HTTP response body returned when this mock is used during simulation.

Example:
statusCode
integer<int32>
required

HTTP status code to return when this mock is used.

Example:

200

toolAlias
string
required

Agent tool alias this mock is bound to.

Example:

"get_order"

toolId
string

Identifier of the integration tool this mock belongs to. Optional when toolAlias can uniquely resolve the tool.

Example:

"tool_X9pLm2Wq8Rt3"

request
object

Optional request payload (or placeholders) associated with this mock, for documentation and capture.

Example:
delay
integer<int64>

Artificial delay in milliseconds before returning the mock response. Defaults to 0.

Example:

500

Response

Created

A mock tool response stored in the tenant mock library.

mockToolDataId
string

Public identifier of the mock tool data record.

Example:

"mock_dpKjqjKnY3z6gABF"

name
string

Human-readable name for this mock.

Example:

"Success - Order Confirmed"

toolId
string

Public identifier of the integration tool this mock belongs to.

Example:

"tool_X9pLm2Wq8Rt3"

toolAlias
string

Agent tool alias this mock was created against.

Example:

"get_order"

toolName
string

Display name of the tool at the time the mock was created.

Example:

"Get Order"

request
object

Request payload (or placeholders) associated with this mock.

Example:
response
object

Mocked HTTP response body.

Example:
statusCode
integer<int32>

HTTP status code returned when this mock is used.

Example:

200

delay
integer<int64>

Artificial delay in milliseconds before returning the mock response.

Example:

500