> ## Documentation Index
> Fetch the complete documentation index at: https://developer.eka.care/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Dawakhana Config

> 
### Overview

This API returns whether the **in-house pharmacy (Dawakhana)** is enabled for your workspace. When enabled, Dawakhana is listed as a pharmacy and orders can be placed with it.

Dawakhana is **enabled by default**: a workspace that has never changed the setting returns `enabled: true`.



## OpenAPI

````yaml get /ipd/v1/service/dawakhana/config
openapi: 3.0.0
info:
  title: Ekacare API & Webhook Documentation
  contact: {}
  version: '1.0'
servers:
  - description: Production
    url: https://api.eka.care
  - description: Stage/Sandbox
    url: https://api.dev.eka.care
security: []
paths:
  /ipd/v1/service/dawakhana/config:
    get:
      tags:
        - IPD API
      summary: Get Dawakhana Config
      description: >-

        ### Overview


        This API returns whether the **in-house pharmacy (Dawakhana)** is
        enabled for your workspace. When enabled, Dawakhana is listed as a
        pharmacy and orders can be placed with it.


        Dawakhana is **enabled by default**: a workspace that has never changed
        the setting returns `enabled: true`.
      operationId: GetIpdDawakhanaConfig
      parameters:
        - name: auth
          in: header
          required: true
          schema:
            type: string
          example: >-
            eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM
      responses:
        '200':
          description: OK — the Dawakhana setting.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdDawakhanaConfigResponse'
              example:
                success: true
                data:
                  enabled: true
        '400':
          description: Bad Request — the setting could not be loaded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceFailure'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceError'
      deprecated: false
components:
  schemas:
    IpdDawakhanaConfigResponse:
      title: IpdDawakhanaConfigResponse
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            enabled:
              type: boolean
              description: '`true` when the in-house pharmacy is enabled.'
    IpdServiceFailure:
      title: IpdServiceFailure
      type: object
      properties:
        success:
          type: boolean
          description: Always `false`.
        error:
          type: string
          description: Human-readable error message.
    IpdServiceError:
      title: IpdServiceError
      type: object
      properties:
        message:
          type: string
          description: Human-readable error message.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.