For the complete documentation index, see llms.txt. This page is also available as Markdown.

Mock Scenarios

List scenarios for a workspace

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
Responses
200

Scenario summaries

No content

get/sfp/api/mocks/workspaces/{workspace}/scenarios

No content

Start capturing a scenario

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
Body
namestringRequired
Responses
201

Recording started

No content

post/sfp/api/mocks/workspaces/{workspace}/scenarios

No content

Stop capturing — journal slice becomes steps

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
namestringRequired
Responses
200

Scenario captured with step summary

No content

post/sfp/api/mocks/workspaces/{workspace}/scenarios/{name}/stop

No content

Get a scenario with steps

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
namestringRequired
Responses
200

Full scenario

No content

get/sfp/api/mocks/workspaces/{workspace}/scenarios/{name}

No content

Delete a scenario

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
namestringRequired
Responses
200

Scenario removed

No content

delete/sfp/api/mocks/workspaces/{workspace}/scenarios/{name}

No content

Edit a step's replayed response

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
namestringRequired
seqstringRequired
Body
Responses
200

Step updated

No content

put/sfp/api/mocks/workspaces/{workspace}/scenarios/{name}/steps/{seq}

No content

Arm — replay this scenario on the next clickthrough

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
namestringRequired
Responses
200

Scenario armed; per-service stub counts

No content

post/sfp/api/mocks/workspaces/{workspace}/scenarios/{name}/arm

No content

Disarm — baseline rules apply again

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
namestringRequired
Responses
200

Scenario disarmed

No content

delete/sfp/api/mocks/workspaces/{workspace}/scenarios/{name}/arm

No content

Rewind sequences to the first response

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
namestringRequired
Responses
200

Sequences restarted

No content

post/sfp/api/mocks/workspaces/{workspace}/scenarios/{name}/rewind

No content

Export as a committable scenario playbook

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
namestringRequired
Responses
200

scenario yaml

No content

get/sfp/api/mocks/workspaces/{workspace}/scenarios/{name}/export.yaml

No content

Last updated

Was this helpful?