Umbra

Lab tests

Book online in two minutes and see a doctor as soon as today. Start in minutes and get help from a real person whenever you need it.

12 min read Updated Sep 30, 2025 v3.4.8

Overview

Our team has done this many times, so you never have to guess. Thousands of patients already trust us, and we work hard to keep it that way. We listen first, then build a plan around what you actually need.

Installation

Install the SDK with the package manager your project already uses. It needs Node 18 or newer.

terminal
$ npm install @umbra/sdk
terminal
$ yarn add @umbra/sdk
terminal
$ pnpm add @umbra/sdk
Using a server without Node? The same endpoints are available over plain HTTPS; see the API reference below.

Configuration

Same-day appointments are available for urgent needs on weekdays. Our team has done this many times, so you never have to guess. Create a file named umbra.config.json in the project root:

umbra.config.json
{
  "project": "umbra",
  "region": "ap-south",
  "categories": ["cardiology", "dental", "pediatrics"],
  "retries": 4,
  "timeoutMs": 10000,
  "webhooks": { "enabled": true }
}
OptionTypeDefaultDescription
projectstring-Your project key from the dashboard.
regionstring"us-east"Data centre closest to your patients.
retriesnumber3How often a failed call is retried.
timeoutMsnumber10000Time before a request is cancelled.
webhooks.enabledbooleanfalseSend events to your endpoint.

Your first request

Your records are private, secure and always available when you need them.

  1. Create an API keyOpen the dashboard, choose Settings › API keys and copy a new secret key.
  2. Store it safelyKeep the key in an environment variable, never in your source code.
  3. Make the callRun the snippet below; it prints the first page of results.
index.js
import { Client } from "@umbra/sdk";

const client = new Client({ apiKey: process.env.API_KEY });

// list the newest services in one category
const page = await client.services.list({ category: "cardiology", limit: 20 });

for (const item of page.data) {
  console.log(item.name, item.price);
}
Heads up: test keys only return sample data. Switch to a live key before you go to production.

API reference

Every endpoint returns JSON and uses standard HTTP status codes.

GET/v1/servicesList services with paging and filters.
POST/v1/servicesCreate a new service.
PATCH/v1/services/{id}Update some fields of a service.
DELETE/v1/services/{id}Archive a service; it can be restored for 30 days.
response.json
{
  "data": [
    { "id": "service_9445", "name": "Annual check-up", "price": 257 }
  ],
  "has_more": true
}

Troubleshooting

Same-day appointments are available for urgent needs on weekdays. Children are welcome, and our paediatric team knows how to make them smile.

Family plans cover check-ups and vaccinations for everyone under one roof. Modern equipment means faster diagnoses and more comfortable treatment.

Start in minutes and get help from a real person whenever you need it. We listen first, then build a plan around what you actually need.

Next steps

Lab results arrive in your patient portal, usually within 48 hours.

Was this page helpful?
All screens