referenceId is aB3cD4eF and your project slug is payments-api, a mock with endpoint /users is reachable at:
List Mocks
GET /api/projects/:projectId/mocks
Returns all mock endpoints defined for the specified project.
Path Parameters
string
required
The UUID of the project.
Create Mock
POST /api/projects/:projectId/mocks
Creates a new mock endpoint for the project.
Path Parameters
string
required
The UUID of the project.
string
required
A human-readable name for the mock, used in the dashboard.
string
required
The HTTP method this mock responds to. Accepted values:
GET, POST, PUT, PATCH, DELETE. Defaults to GET.string
required
The path this mock handles, relative to
/api/mock/. For example, /users or /orders/123.string
required
The raw response body to return. JSON must be provided as a string. Defaults to
{}.object
Key-value pairs of HTTP response headers. Defaults to an empty object.
integer
The HTTP status code the mock returns. Defaults to
200.string
An optional description of what this mock simulates.
201 Created
Get Mock
GET /api/projects/:projectId/mocks/:mockId
Returns a single mock endpoint by its ID.
Path Parameters
string
required
The UUID of the project.
string
required
The UUID of the mock.
Update Mock
PUT /api/projects/:projectId/mocks/:mockId
Updates one or more fields of an existing mock endpoint.
Path Parameters
string
required
The UUID of the project.
string
required
The UUID of the mock to update.
string
Updated display name.
string
Updated HTTP method.
string
Updated endpoint path.
string
Updated response body string.
object
Updated response headers.
integer
Updated HTTP status code.
string
Updated description.
Delete Mock
DELETE /api/projects/:projectId/mocks/:mockId
Permanently removes a mock endpoint.
Path Parameters
string
required
The UUID of the project.
string
required
The UUID of the mock to delete.
Mock Object
string
UUID that uniquely identifies the mock.
string
UUID of the project that owns this mock.
string
Display name shown in the dashboard.
string
Optional description of what this mock simulates.
string
HTTP method this mock responds to (
GET, POST, PUT, PATCH, DELETE).string
The path relative to
/api/mock/ at which this mock is served on the subdomain.string
The raw string returned as the response body when the mock is invoked.
object
Key-value HTTP response headers returned when the mock is invoked.
integer
HTTP status code returned when the mock is invoked.
string
ISO 8601 timestamp of creation.
string
ISO 8601 timestamp of the last update.