Skip to main content

Mock server

Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: mock-server · 25 operations

GET /v1/mock/{mock_id}​

Serve Mock Root Get

Serve the mock for a request to the instance root path.

Operation id: serve_mock_root_get_v1_mock__mock_id__get

Parameters

NameInTypeRequiredDescription
mock_idpathstringyesPath parameter identifying the mock id segment.

Responses

StatusDescriptionBody
200Successful response for serve mock root get.application/json any
422Validation Errorapplication/json HTTPValidationError

PUT /v1/mock/{mock_id}​

Serve Mock Root Put

Serve the mock for a request to the instance root path.

Operation id: serve_mock_root_put_v1_mock__mock_id__put

Parameters

NameInTypeRequiredDescription
mock_idpathstringyesPath parameter identifying the mock id segment.

Responses

StatusDescriptionBody
200Successful response for serve mock root put.application/json any
422Validation Errorapplication/json HTTPValidationError

POST /v1/mock/{mock_id}​

Serve Mock Root Post

Serve the mock for a request to the instance root path.

Operation id: serve_mock_root_post_v1_mock__mock_id__post

Parameters

NameInTypeRequiredDescription
mock_idpathstringyesPath parameter identifying the mock id segment.

Responses

StatusDescriptionBody
200Successful response for serve mock root post.application/json any
422Validation Errorapplication/json HTTPValidationError

PATCH /v1/mock/{mock_id}​

Serve Mock Root Patch

Serve the mock for a request to the instance root path.

Operation id: serve_mock_root_patch_v1_mock__mock_id__patch

Parameters

NameInTypeRequiredDescription
mock_idpathstringyesPath parameter identifying the mock id segment.

Responses

StatusDescriptionBody
200Successful response for serve mock root patch.application/json any
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/mock/{mock_id}​

Serve Mock Root Delete

Serve the mock for a request to the instance root path.

Operation id: serve_mock_root_delete_v1_mock__mock_id__delete

Parameters

NameInTypeRequiredDescription
mock_idpathstringyesPath parameter identifying the mock id segment.

Responses

StatusDescriptionBody
200Successful response for serve mock root delete.application/json any
422Validation Errorapplication/json HTTPValidationError

HEAD /v1/mock/{mock_id}​

Serve Mock Root Head

Serve the mock for a request to the instance root path.

Operation id: serve_mock_root_head_v1_mock__mock_id__head

Parameters

NameInTypeRequiredDescription
mock_idpathstringyesPath parameter identifying the mock id segment.

Responses

StatusDescriptionBody
200Successful response for serve mock root head.application/json any
422Validation Errorapplication/json HTTPValidationError

OPTIONS /v1/mock/{mock_id}​

Serve Mock Root Options

Serve the mock for a request to the instance root path.

Operation id: serve_mock_root_options_v1_mock__mock_id__options

Parameters

NameInTypeRequiredDescription
mock_idpathstringyesPath parameter identifying the mock id segment.

Responses

StatusDescriptionBody
200Successful response for serve mock root options.application/json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/mock/{mock_id}/{sub_path}​

Serve Mock Path Get

Serve the mock for any request path under the instance base URL.

Operation id: serve_mock_path_get_v1_mock__mock_id___sub_path__get

Parameters

NameInTypeRequiredDescription
mock_idpathstringyesPath parameter identifying the mock id segment.
sub_pathpathstringyesPath parameter identifying the sub path segment.

Responses

StatusDescriptionBody
200Successful response for serve mock path get.application/json any
422Validation Errorapplication/json HTTPValidationError

PUT /v1/mock/{mock_id}/{sub_path}​

Serve Mock Path Put

Serve the mock for any request path under the instance base URL.

Operation id: serve_mock_path_put_v1_mock__mock_id___sub_path__put

Parameters

NameInTypeRequiredDescription
mock_idpathstringyesPath parameter identifying the mock id segment.
sub_pathpathstringyesPath parameter identifying the sub path segment.

Responses

StatusDescriptionBody
200Successful response for serve mock path put.application/json any
422Validation Errorapplication/json HTTPValidationError

POST /v1/mock/{mock_id}/{sub_path}​

Serve Mock Path Post

Serve the mock for any request path under the instance base URL.

Operation id: serve_mock_path_post_v1_mock__mock_id___sub_path__post

Parameters

NameInTypeRequiredDescription
mock_idpathstringyesPath parameter identifying the mock id segment.
sub_pathpathstringyesPath parameter identifying the sub path segment.

Responses

StatusDescriptionBody
200Successful response for serve mock path post.application/json any
422Validation Errorapplication/json HTTPValidationError

PATCH /v1/mock/{mock_id}/{sub_path}​

Serve Mock Path Patch

Serve the mock for any request path under the instance base URL.

Operation id: serve_mock_path_patch_v1_mock__mock_id___sub_path__patch

Parameters

NameInTypeRequiredDescription
mock_idpathstringyesPath parameter identifying the mock id segment.
sub_pathpathstringyesPath parameter identifying the sub path segment.

Responses

StatusDescriptionBody
200Successful response for serve mock path patch.application/json any
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/mock/{mock_id}/{sub_path}​

Serve Mock Path Delete

Serve the mock for any request path under the instance base URL.

Operation id: serve_mock_path_delete_v1_mock__mock_id___sub_path__delete

Parameters

NameInTypeRequiredDescription
mock_idpathstringyesPath parameter identifying the mock id segment.
sub_pathpathstringyesPath parameter identifying the sub path segment.

Responses

StatusDescriptionBody
200Successful response for serve mock path delete.application/json any
422Validation Errorapplication/json HTTPValidationError

HEAD /v1/mock/{mock_id}/{sub_path}​

Serve Mock Path Head

Serve the mock for any request path under the instance base URL.

Operation id: serve_mock_path_head_v1_mock__mock_id___sub_path__head

Parameters

NameInTypeRequiredDescription
mock_idpathstringyesPath parameter identifying the mock id segment.
sub_pathpathstringyesPath parameter identifying the sub path segment.

Responses

StatusDescriptionBody
200Successful response for serve mock path head.application/json any
422Validation Errorapplication/json HTTPValidationError

OPTIONS /v1/mock/{mock_id}/{sub_path}​

Serve Mock Path Options

Serve the mock for any request path under the instance base URL.

Operation id: serve_mock_path_options_v1_mock__mock_id___sub_path__options

Parameters

NameInTypeRequiredDescription
mock_idpathstringyesPath parameter identifying the mock id segment.
sub_pathpathstringyesPath parameter identifying the sub path segment.

Responses

StatusDescriptionBody
200Successful response for serve mock path options.application/json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/mocks/{tenant_slug}​

List Mocks

List the tenant's mock instances, newest first, one page at a time.

The body is a JSON array of at most limit instances (200 at most). The X-Has-More response header says whether more exist and X-Next-Cursor carries the cursor of the next page (#7196).

Args: tenant_slug: The tenant in the URL. request: The inbound request, for the instances' base URLs. response: The outgoing response (paging headers are set on it). limit: Page size. cursor: Where the page starts (the previous page's X-Next-Cursor). auth_data: The authenticated principal.

Returns: One page of instances.

Raises: HTTPException: 400 for a malformed cursor; 404 when the mock server is disabled.

Operation id: list_mocks_v1_mocks__tenant_slug__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
limitqueryintegernoPage size. At most 200.
cursorquerystring or nullnoOpaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list mocks.application/json array of MockInstanceResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/mocks/{tenant_slug}​

Provision Mock

Provision a mock instance from a published version and return its stable base URL.

The version must be published. Its OpenAPI document is generated once and frozen into the instance so the mock is stable for its lifetime. Free-tier expiry and the per-instance rate limit are applied from configuration (overridable within bounds).

Caller-supplied scenarios keep the RC1-2.2 request shape — a list of rules — and are folded into the engine's settings shape at provision time (#5532, MSC-2.2), with the same translator that migrates instances provisioned before the fold. Rules that cannot be translated are reported on the instance rather than dropped.

Operation id: provision_mock_v1_mocks__tenant_slug__post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for provision mock.

Responses

StatusDescriptionBody
201Successful response for provision mock.application/json MockInstanceResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/mocks/{tenant_slug}/usage​

Get Mock Usage

Return mock usage counters and daily rollups for the tenant (#4420, SIM-1.5).

Note: project_slug and version_label filter the dailyRollups only. monthlyRequestCount, monthlyQuota, and mockRps are always tenant-wide totals, regardless of any filter parameters.

Operation id: get_mock_usage_v1_mocks__tenant_slug__usage_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
daysqueryintegernoQuery parameter: days.
project_slugquerystring or nullnoURL-safe project slug within the tenant.
version_labelquerystring or nullnoQuery parameter: version label.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get mock usage.application/json MockUsageResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/mocks/{tenant_slug}/{mock_id}​

Get Mock

Inspect one mock instance owned by the tenant.

Operation id: get_mock_v1_mocks__tenant_slug___mock_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
mock_idpathstringyesPath parameter identifying the mock id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get mock.application/json MockInstanceResponse
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/mocks/{tenant_slug}/{mock_id}​

Destroy Mock

Destroy a mock instance and all of its state.

Operation id: destroy_mock_v1_mocks__tenant_slug___mock_id__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
mock_idpathstringyesPath parameter identifying the mock id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
204Successful response for destroy mock.—
422Validation Errorapplication/json HTTPValidationError

PUT /v1/mocks/{tenant_slug}/{mock_id}/active-scenario​

Switch Active Scenario

Switch the instance's default scenario (takes effect immediately, no restart).

The switch writes activeScenario into the instance's settings — the same key, read the same way, as a version's stored active scenario (#5531, MSC-2.1). The two spellings that used to describe this one concept are now one.

Operation id: switch_active_scenario_v1_mocks__tenant_slug___mock_id__active_scenario_put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
mock_idpathstringyesPath parameter identifying the mock id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for switch active scenario.

Responses

StatusDescriptionBody
200Successful response for switch active scenario.application/json MockInstanceResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/broker-bindings​

List a version's mock broker bindings (metadata only)

Where the version's hosted mock publishes AsyncAPI events, beyond WebSocket/SSE. A version with event channels and no binding is served over WebSocket/SSE only.

The SASL credential is write-only: it is stored envelope-encrypted and no route ever returns it. Responses carry metadata only: the bootstrap hosts, TLS flags, SASL mechanism, the master-key version that sealed the credential, whether it currently opens (readable), and when it was created and rotated.

Requires versions:view.

Operation id: list_mock_broker_bindings_v1_versions__tenant_slug___project_id___version_record_id__mock_broker_bindings_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list a version's mock broker bindings (metadata only).application/json BrokerBindingListResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/broker-bindings​

Bind a version's mock to a broker

Bind the version's hosted mock to a Kafka broker: bootstrap hosts, tls flags, an optional saslMechanism (PLAIN, SCRAM-SHA-256, SCRAM-SHA-512) with its credential, and a clientIdPrefix. mqtt and amqp are reserved and refused.

Every bootstrap host is resolved, and a host that reaches a private, loopback, link-local or otherwise non-public address is refused 422 broker-address-disallowed. The dev broker named by APIOME_MOCK_DEV_BROKER_BOOTSTRAP (the docker compose --profile broker Redpanda) is exempt; APIOME_MOCK_BROKER_ALLOW_PRIVATE=true lifts the check for local development.

The SASL credential is write-only: it is stored envelope-encrypted and no route ever returns it. Responses carry metadata only: the bootstrap hosts, TLS flags, SASL mechanism, the master-key version that sealed the credential, whether it currently opens (readable), and when it was created and rotated.

One binding per version and protocol: a second is a 409.

Requires versions:edit (version creator or tenant administrator). Audited as mock.broker_binding.create, with metadata only.

Operation id: create_mock_broker_binding_v1_versions__tenant_slug___project_id___version_record_id__mock_broker_bindings_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for bind a version's mock to a broker.

Responses

StatusDescriptionBody
201Successful response for bind a version's mock to a broker.application/json BrokerBindingOut
404No such version in this project.—
409This version already has a binding for that protocol.—
422broker-binding-invalid, broker-protocol-unsupported, or broker-address-disallowed.—
503A credential was given and no broker encryption key is configured.—

DELETE /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/broker-bindings/{binding_id}​

Delete a broker binding

Remove the binding and its sealed credential. The version's events go back to WebSocket/SSE only.

Requires versions:edit. Audited as mock.broker_binding.delete.

Operation id: delete_mock_broker_binding_v1_versions__tenant_slug___project_id___version_record_id__mock_broker_bindings__binding_id__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
binding_idpathstringyesPath parameter identifying the binding id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
204Successful response for delete a broker binding.—
404No such binding on this version.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/broker-bindings/{binding_id}/rotate​

Rotate a broker binding's SASL credential

Replace the SASL credential in place, atomically. The binding keeps its id, address and flags. The body is {credential: {username, password}}. The SASL credential is write-only: it is stored envelope-encrypted and no route ever returns it. Responses carry metadata only: the bootstrap hosts, TLS flags, SASL mechanism, the master-key version that sealed the credential, whether it currently opens (readable), and when it was created and rotated.

Requires versions:edit. Audited as mock.broker_binding.rotate.

Operation id: rotate_mock_broker_binding_v1_versions__tenant_slug___project_id___version_record_id__mock_broker_bindings__binding_id__rotate_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
binding_idpathstringyesPath parameter identifying the binding id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for rotate a broker binding's sasl credential.

Responses

StatusDescriptionBody
200Successful response for rotate a broker binding's sasl credential.application/json BrokerBindingOut
404No such binding on this version.—
422The binding has no SASL mechanism, or the credential is not acceptable.—
503No broker encryption key is configured.—

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/broker-bindings/{binding_id}/test​

Test a broker binding (connect and read metadata)

Connect to one bootstrap host, complete TLS and SASL, and read cluster metadata — nothing is produced, consumed or created. The answer is reachable or unreachable with a reason: auth, credential-unavailable, address-disallowed, tls, timeout, connect or protocol. A wrong password is unreachable: auth; the broker's own error text is never returned. Every host is SSRF-checked again first.

The result is cached for 60 seconds per binding state (cached: true); a rotation tests afresh.

Requires versions:edit. Audited as mock.broker_binding.test.

Operation id: probe_mock_broker_binding_v1_versions__tenant_slug___project_id___version_record_id__mock_broker_bindings__binding_id__test_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
binding_idpathstringyesPath parameter identifying the binding id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for test a broker binding (connect and read metadata).application/json BrokerProbeResult
404No such binding on this version.—
422Validation Errorapplication/json HTTPValidationError

Schemas used​

BrokerBindingCreate​

Body for binding a version's mock to a broker.

Attributes: protocol: kafka. mqtt / amqp are reserved (XPC-2.5) and refused. bootstrap: The broker's host:port entries, as a list or a comma-separated string. tls: TLS flags. sasl_mechanism: PLAIN, SCRAM-SHA-256 or SCRAM-SHA-512; omit for no SASL. credential: The SASL credential; required exactly when a mechanism is given. client_id_prefix: The Kafka client.id prefix Apiome's connections present.

PropertyTypeRequiredDescription
protocolenum "kafka", "mqtt", "amqp"nokafka. mqtt and amqp are reserved for a later release and refused.
bootstraparray of string or stringyesThe broker's bootstrap servers: host:port entries (port defaults to 9092), as a list or a comma-separated string. Every host must resolve to a public address.
tlsBrokerTlsnoTLS flags.
saslMechanismenum "PLAIN", "SCRAM-SHA-256", "SCRAM-SHA-512" or nullnoThe SASL mechanism, or omit it for a broker without authentication.
credentialBrokerCredentialInput or nullnoWrite-only SASL {username, password}; required with saslMechanism. Stored encrypted; never returned by any route.
clientIdPrefixstringnoThe Kafka client.id prefix: 1–64 of A-Z a-z 0-9 . _ -.

BrokerBindingListResponse​

A version's broker bindings, described.

Attributes: schema_version: The projection's shape. version_id: The version addressed. encryption_configured: Whether this deployment can store a SASL credential. protocols: The protocols a binding can be created for now. reserved_protocols: Protocols reserved for a later release. sasl_mechanisms: The SASL mechanisms accepted. dev_broker_bootstrap: The dev broker's host:port entries when the compose profile is active, else None. bindings: One entry per stored binding.

PropertyTypeRequiredDescription
schemaVersionstringnoSchema Version.
versionIdstringyesVersion ID.
encryptionConfiguredbooleanyesEncryption Configured.
protocolsarray of stringyesProtocols.
reservedProtocolsarray of stringyesReserved Protocols.
saslMechanismsarray of stringyesSasl Mechanisms.
devBrokerBootstraparray of string or nullnoDev Broker Bootstrap.
bindingsarray of BrokerBindingOutyesBindings.

BrokerBindingOut​

A stored binding, described without revealing its credential.

Attributes: schema_version: The projection's shape. id: The binding id. version_id: The version it belongs to. protocol: kafka. bootstrap: The normalized host:port entries. dev_broker: Whether the binding points at the configured dev broker. tls: TLS flags. sasl_mechanism: The SASL mechanism, or None. has_credential: Whether a SASL credential is stored. key_version: Which master key sealed the credential, or None. readable: Whether the credential can be opened with the keys configured now (True when there is none to open). False means every connection would fail closed. client_id_prefix: The client.id prefix. created_at: When it was stored. created_by: Who stored it. rotated_at: When its credential was last replaced, or None. rotated_by: Who last replaced it.

PropertyTypeRequiredDescription
schemaVersionstringnoSchema Version.
idstringyesStable resource identifier.
versionIdstringyesVersion ID.
protocolstringyesProtocol.
bootstraparray of stringyesBootstrap.
devBrokerbooleannoDev Broker.
tlsBrokerTlsyesTls.
saslMechanismstring or nullnoSasl Mechanism.
hasCredentialbooleannoHas Credential.
keyVersioninteger or nullnoKey Version.
readablebooleannoReadable.
clientIdPrefixstringyesClient ID Prefix.
createdAtstring (date-time) or nullnoCreated At.
createdBystring or nullnoCreated By.
rotatedAtstring (date-time) or nullnoRotated At.
rotatedBystring or nullnoRotated By.

BrokerBindingRotate​

Body for replacing a binding's SASL credential in place.

Attributes: credential: The replacement credential.

PropertyTypeRequiredDescription
credentialBrokerCredentialInputyesThe replacement {username, password}, in the same shape as at creation.

BrokerProbeResult​

What one connectivity test found.

Attributes: binding_id: The binding tested. status: reachable or unreachable. reason: Why it is unreachable (one of :data:REASONS), or None when reachable. summary: "reachable" or "unreachable: <reason>", for a status line. bootstrap: The entry that answered (reachable) or None. brokers: How many brokers the cluster metadata lists (reachable only). topics: How many topics the metadata lists (reachable only). checked_at: When the probe actually ran (earlier than now when cached). cached: Whether this result came from the 60-second cache.

PropertyTypeRequiredDescription
bindingIdstringyesBinding ID.
statusenum "reachable", "unreachable"yesStatus.
reasonenum "auth", "credential-unavailable", "address-disallowed", "tls", "timeout", "connect", … or nullnoReason.
summarystringyesShort summary suitable for navigation and reference docs.
bootstrapstring or nullnoBootstrap.
brokersinteger or nullnoBrokers.
topicsinteger or nullnoTopics.
checkedAtstring (date-time)yesChecked At.
cachedbooleannoCached.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

MockInstanceResponse​

Public view of a provisioned mock instance.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
namestringyesHuman-readable name.
baseUrlstringyesBase URL.
tenantSlugstringyesTenant Slug.
projectSlugstringyesProject Slug.
versionSlugstringyesVersion Slug.
statusstringyesStatus.
activeScenariostringyesActive Scenario.
scenariosarray of stringyesScenarios.
operationCountintegeryesNumber of operation.
rateLimitPerMinuteintegeryesRate Limit Per Minute.
requestCountintegeryesNumber of request.
createdAtstring or nullnoCreated At.
expiresAtstring or nullnoExpires At.
lastActivityAtstring or nullnoLast Activity At.
migrationNotesarray of stringnoRules from the pre-#5532 configuration that could not be translated onto the single mock engine, reported rather than silently dropped. Empty when the fold was lossless.

MockProvisionRequest​

Request body to provision a mock instance from a published version.

PropertyTypeRequiredDescription
projectSlugstringyesProject Slug.
versionSlugstringyesVersion Slug.
namestring or nullnoDisplay name; defaults to the coordinates.
ttlHoursinteger or nullnoAuto-expiry in hours; clamped to the configured maximum.
rateLimitPerMinuteinteger or nullnoRate Limit Per Minute.
seedinteger or nullnoDeterministic data-generation seed.
scenariosarray of MockScenario or nullnoScenarios.
activeScenariostring or nullnoActive Scenario.

MockScenarioSwitchRequest​

Request body to switch a mock instance's active scenario.

PropertyTypeRequiredDescription
activeScenariostringyesActive Scenario.

MockUsageResponse​

Mock usage counters for a tenant (#4420, SIM-1.5).

PropertyTypeRequiredDescription
monthlyRequestCountintegeryesNumber of monthly request.
monthlyQuotaintegeryesMonthly Quota.
mockRpsnumberyesMock Rps.
dailyRollupsarray of MockUsageDailyRollupyesDaily Rollups.