---
title: View Doctor by Id
slug: view-doctor-by-id
icon: {"faIcon":"fa-solid fa-code"}
createdAt: 2023-01-26T14:46:57.000Z
---

This call returns the data for a specific doctor given an Id

## Return

This call returns a doctor object, fulyl resolved to the list of locations they are associated with.

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "/V1/dispensary/practice/doctor/:doctor_id",
  "name": "API",
  "method": "GET",
  "request": {
    "pathParameters": [
      {
        "kind": "required",
        "name": "doctor_id",
        "type": "Number",
        "children": [],
        "description": "The id for the location"
      }
    ],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Authorization",
        "type": "string",
        "children": [],
        "description": "The Access Token"
      }
    ],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "sT7x5eCla7VJy6tWNaRmD",
        "code": "{\n    \"doctor_id\": 321,\n    \"doctor_name\": \"Dr. Wasserman\",\n    \"email\": \"drwass@example.com\",\n    \"first_name\": \"Jim\",\n    \"last_name\": \"Wasserman\",\n    \"telephone\":\"\",\n    \"locations\":[\n        {\n            \"location_id\": 12345,\n            \"location_name\": \"Main Office\",\n            \"city\": \"Chicago\",\n            \"region_id\": \"IL\",\n            \"country_id\": \"US\",\n            \"address\": [\n                \"Street Address\",\n                \"Office Suite\"\n            ],\n            \"postcode\": \"\",\n            \"telephone\": \"\"\n        }\n    ]\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "sT7x5eCla7VJy6tWNaRmD"
  },
  "examples": {
    "languages": [
      {
        "id": "LHVvurBLV3O1dJZkyhQCQ",
        "code": "curl --location -g --request GET 'https://{{api_host}}/rest/{{scope}}/V1/practice/doctor/321' \\\n--header 'Content-Type: application/json' \\\n--header 'Authorization: Bearer {{access_token}}' ",
        "language": "curl",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "LHVvurBLV3O1dJZkyhQCQ"
  },
  "description": "",
  "currentNewParameter": {
    "label": "Path Parameter",
    "value": "pathParameters"
  },
  "autoGeneratedAnchorSlug": "api",
  "legacyHash": "iX0nZCxFb6SCjj5lbCMLq"
}
```
:::

