ai DocgenDocs
Get API key
OverviewGuidesAPI reference
API reference
IntroductionAuthenticationErrorsStreaming
Sessions
POSTStart a sessionPOSTSend a messageGETRetrieve a sessionGETList a subject's sessionsGETList messagesGETRetrieve the answersPOSTClose a sessionDELDelete a sessionPOSTExchange a launch code
Documents
POSTCreate a documentGETRetrieve a documentGETStream eventsGETDownload a file
Usage
GETUsage for your organisation
Objects
SessionTurnMessageQuestionActionAnswersDocumentUsageError
Objects

The SessionList object

Returned by List a subject's sessions.

Attributes

object enum required
One of list
data array of Session objects required
has_more boolean required
The SessionList object
{  "object": "list",  "data": [    {      "id": "ses_01JBA2M8K3Q4R5S6T7V8W9X0YZ",      "object": "session",      "status": "active",      "phase": "intake",      "subject": "wp_user:48213",      "form": {        "id": "tpl_01JAZ7RKQ3M8D2X5V9T4N6P0CE",        "version": 1,        "title": "Residential Lease Agreement",        "kind": "catalog",        "identified_by": "user_choice"      },      "jurisdiction": {        "code": "US-FL",        "source": "detected"      },      "progress": {        "answered": 3,        "total": 11      },      "pending_question": null,      "actions": [],      "outputs": [],      "settings": {        "max_questions": 15,        "confirm_form": true      },      "livemode": false,      "created_at": "2026-10-09T10:41:02Z",      "last_activity_at": "2026-10-09T10:44:40Z",      "expires_at": "2026-10-16T10:41:02Z"    }  ],  "has_more": false}

AiLawyer is not a law firm. Documents generated through the API are not legal advice and don't create an attorney-client relationship. Your product should tell its users the same.

Quickstart API reference Errors