cURL
curl -s -X POST http://127.0.0.1:4100/api/projects/demo-coffee/sessions \
-H 'content-type: application/json' -H 'x-alibi-api-key: junnu-key-demo' \
-d '{"recorder":"junnu","isolationMode":"warm_pool"}'import httpx
r = httpx.post(
"http://127.0.0.1:4100/api/projects/demo-coffee/sessions",
headers={"x-alibi-api-key": "junnu-key-demo"},
json={"recorder": "junnu", "isolationMode": "warm_pool"},
)
print(r.json())const options = {
method: 'POST',
headers: {'x-alibi-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({suiteId: '<string>', recorder: 'junnu', poolWaitMs: 123})
};
fetch('http://127.0.0.1:4100/api/projects/{id}/sessions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"projectId": "<string>",
"suiteId": "<string>",
"status": "idle",
"steps": [
{
"id": "<string>",
"order": 123,
"source": "api",
"request": {
"method": "<string>",
"path": "<string>",
"headers": {},
"body": "<unknown>"
},
"response": {
"status": 123,
"body": "<unknown>"
},
"mutations": [
{}
],
"reads": [
{}
],
"assertions": [
{}
],
"ignoreRules": [
{}
],
"browser": {}
}
],
"isolationMode": "schema_prefix",
"sandboxId": "<string>",
"recorder": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"stoppedAt": "2023-11-07T05:31:56Z",
"sandbox": {
"id": "<string>",
"projectId": "<string>",
"mode": "schema_prefix",
"dataPlane": "<string>",
"status": "warming",
"label": "<string>",
"sessionId": "<string>",
"recorder": "<string>",
"sql": {},
"redis": {},
"docker": {},
"k8s": {},
"branch": {},
"createdAt": "2023-11-07T05:31:56Z",
"checkedOutAt": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>"
}{
"error": "<string>"
}Sessions
Start Record session
Start → checkout sandbox (default warm_pool) → steps → Stop. Concurrent recorders (Junnu/Laddu) each receive a distinct sandboxId.
POST
/
projects
/
{id}
/
sessions
cURL
curl -s -X POST http://127.0.0.1:4100/api/projects/demo-coffee/sessions \
-H 'content-type: application/json' -H 'x-alibi-api-key: junnu-key-demo' \
-d '{"recorder":"junnu","isolationMode":"warm_pool"}'import httpx
r = httpx.post(
"http://127.0.0.1:4100/api/projects/demo-coffee/sessions",
headers={"x-alibi-api-key": "junnu-key-demo"},
json={"recorder": "junnu", "isolationMode": "warm_pool"},
)
print(r.json())const options = {
method: 'POST',
headers: {'x-alibi-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({suiteId: '<string>', recorder: 'junnu', poolWaitMs: 123})
};
fetch('http://127.0.0.1:4100/api/projects/{id}/sessions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"projectId": "<string>",
"suiteId": "<string>",
"status": "idle",
"steps": [
{
"id": "<string>",
"order": 123,
"source": "api",
"request": {
"method": "<string>",
"path": "<string>",
"headers": {},
"body": "<unknown>"
},
"response": {
"status": 123,
"body": "<unknown>"
},
"mutations": [
{}
],
"reads": [
{}
],
"assertions": [
{}
],
"ignoreRules": [
{}
],
"browser": {}
}
],
"isolationMode": "schema_prefix",
"sandboxId": "<string>",
"recorder": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"stoppedAt": "2023-11-07T05:31:56Z",
"sandbox": {
"id": "<string>",
"projectId": "<string>",
"mode": "schema_prefix",
"dataPlane": "<string>",
"status": "warming",
"label": "<string>",
"sessionId": "<string>",
"recorder": "<string>",
"sql": {},
"redis": {},
"docker": {},
"k8s": {},
"branch": {},
"createdAt": "2023-11-07T05:31:56Z",
"checkedOutAt": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
Body
application/json
Response
Session + sandbox