Skip to Content
LoremLLM

REST API

Manage projects, mocks and requests over HTTP.

Base URL: https://api.loremllm.com/v1. Authenticate with a project key.

Mocks

MethodRouteDescription
GET/mocksList mocks in the key's project
POST/mocksCreate a mock
GET/mocks/:mockGet a mock and its scenarios
PUT/mocks/:mockReplace a mock, publishing a new version
PATCH/mocks/:mockUpdate fields, publishing a new version
DELETE/mocks/:mockDelete a mock
GET/mocks/:mock/versionsList versions
POST/mocks/:mock/versions/:version/restoreRoll back

Requests

MethodRouteDescription
GET/mocks/:mock/requestsList requests. Filter with scenario, status, conversation, since
GET/mocks/:mock/requests/:idOne request with its match trace and chunks

Conversations

MethodRouteDescription
DELETE/mocks/:mock/conversations/:idReset turn counters and sequences
DELETE/mocks/:mock/conversationsReset every conversation

Example

curl https://api.loremllm.com/v1/mocks \
  -H "authorization: Bearer $LOREMLLM_KEY" \
  -H "content-type: application/json" \
  -d '{"slug":"support-bot","model":"gpt-4.1","scenarios":[{"reply":{"type":"lorem","sentences":2}}]}'

The full contract is in /openapi.json.

On this page