v1

latestOpenAPI 3.0.32026-07-26229361630.0 KB
Doctor and clinic API

Get Workspace Information

Overview

The Get Workspace Information API retrieves basic information about a business including the business ID and business name. This API is designed to provide essential business details for authenticated requests.

Endpoint

URL: {{HOST}}/cdr/v1/get_business_info

Method: GET

Request Parameters

This endpoint does not require any parameters. The auth header contains business-id information which will be used to fetch the details.

Response Parameters

ParameterTypeDescription
statusstringStatus of the response (success)
bidstringUnique identifier of the business
business_namestringName of the business
get/cdr/v1/get_business_info/

Headers

authstring required
Example:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM

The auth token of the business. It is used to authenticate the client. This should be fetched from auth api.

Response

OK

statusstring
bidstring
business_namestring

Example response

{
  "status": "success",
  "bid": "789235904342534",
  "business_name": "Example business"
}