Docus Lab SAAS Sandbox
  1. Visit
Docus Lab SAAS Sandbox
  • Getting Started
  • Initial Biomarkers and Biomarker Groups Setup
  • Flow Between Lab and API
  • Limitations
  • Support
  • Patient
    • Create a patient
      POST
    • Update a patient
      PUT
    • Get patient by ID
      GET
  • Visit
    • Create visit
      POST
    • Create composite visit
      POST
    • Generate AI report
      POST
    • Get AI report by visit ID
      GET
  • Lab Test
    • Create a plain lab test
      POST
    • Create a lab test with biomarkers
      POST
    • Create bulk plain lab tests
      POST
    • Create bulk lab tests with biomarkers
      POST
    • Get lab test by ID
      GET
  • Biomarker Group
    • Create a biomarker group
      POST
    • Update a biomarker group
      PUT
    • Get biomarker group by ID
      GET
  • Biomarker
    • Create a biomarker
      POST
    • Update biomarker by ID
      PUT
    • Get biomarker by ID
      GET
  • Branch
    • Create a branch
      POST
    • Update branch by ID
      PUT
    • Get branch by ID
      GET
  • Webhooks
    • Health reports
    • Notifications
  • Schemas
    • Schemas
      • UpdateBiomarkerDto
      • CreateLabTestPlanDTO
      • UpdateBiomarkerGroupDto
      • LabTestReport
      • CreateCompositeVisitDto
      • MultipleTestIdsDto
      • CreateBulkLabTestsPlainDTO
      • CreateBulkLabTestsDTO
      • CreateBranchDto
      • UpdateBranchDto
      • Biomarker
      • CreateBiomarkerGroupDto
      • CreateBiomarkerDto
      • SingleReport
      • CreatePatientDto
      • UpdatePatientDto
      • CreateVisitDto
      • CreateLabTestDTO
  1. Visit

Create visit

POST
/visit

Request

Header Params

Body Params application/json

Examples

Responses

🟢201Created
application/json
Body

🟢201Access URL
🟠400Invalid input
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/visit' \
--header 'x-api-key: {{api-key}}' \
--header 'x-docus-key: {{docus-key}}' \
--header 'x-auth-secret: {{auth-secret}}' \
--header 'x-team-id: {{team-id}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "visit_id": "v_010_1",
    "patient_id": "patient_010",
    "date": "2022-07-21",
    "pregnant": "false",
    "physician_email": "sometest@docus.ai",
    "test_ids": [
        {
            "partner_test_id": "35",
            "biomarker_group_id": "GRP007"
        }
    ]
}'
Response Response Example
201 - Example 1
{
    "patient_url": "https://partner_name.docus.ai/access/result/161c3c10-8343-44b6-9024-8db17b951754/27832ac46ba38993ef01202290cdbeae",
    "physician_url": "https://partner_name.docus.ai/access/result/9024-8db17b9517-54161c3c10-8343-44b6/23ef01202290cdbeae7832ac46ba3899"
}
Modified at 2025-10-24 09:37:15
Previous
Get patient by ID
Next
Create composite visit
Built with