---
title: Hospital  accreditation verification API
slug: api-marketplace/hospital-accreditation-verification-api
createdAt: 2024-06-06T09:53:06.042Z
---

## Introduction

This API is a part of the Hospital accreditation verification API stack.&#x20;

The Hospital Accreditation Verification API provides detailed accreditation information for hospitals. By entering the name and address of a hospital fetched from Accredited Hospital search API, users can verify the accreditation status, including accreditation number, reference number, validity period, and current status. This API is essential for healthcare providers, insurance companies, and patients who need to ensure the credibility and quality of healthcare facilities.

***

## API details

### Endpoint

:::CodeblockTabs
Production Environment

```jsx
POST https://api.signzy.app/api/v3/hospitals/accreditation
```
:::

:::CodeblockTabs
Production Environment

```jsx
POST https://api-preproduction.signzy.app/api/v3/hospitals/accreditation
```
:::

***

### Request headers&#x20;

| Name          | Value            | Required  | Description                                                                                                |
| ------------- | ---------------- | --------- | ---------------------------------------------------------------------------------------------------------- |
| Content-Type  | application/json | Mandatory | The type of content that the request body contains.                                                        |
| Authorization | XXXXXXXXXXXXXXX  | Mandatory | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |

### Request body parameters

| Parameter | Data Type | Description                  | Required   |
| --------- | --------- | ---------------------------- | ---------- |
| name      | String    | Name of the nursing home.    | Mandatory  |
| address   | String    | Address of the nursing home. | Manadatory |

```json
{
    "name": "BALAJI NURSING HOME",
    "address": "chennai tamil nadu"
}
```

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/hospitals/accreditation' \
--header 'Content-Type: application/json' \
--header 'authorization: <AUTH-TOKEN>' \
--data '{
        "name": "Shri Ram Singh Hospital",
        "address": "Delhi"
}'
```

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "name": "Shri Ram Singh Hospital",
  "address": "Delhi"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/hospitals/accreditation',
  headers: { 
    'Content-Type': 'application/json', 
    'authorization': '<AUTHTOKEN>'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

```

```python
import requests
import json

url = "https://api-preproduction.signzy.app/api/v3/hospitals/accreditation"

payload = json.dumps({
  "name": "Shri Ram Singh Hospital",
  "address": "Delhi"
})
headers = {
  'Content-Type': 'application/json',
  'authorization': '<AUTHTOKEN>'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

```go
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/hospitals/accreditation"
  method := "POST"

  payload := strings.NewReader(`{
        "name": "Shri Ram Singh Hospital",
        "address": "Delhi"
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("authorization", "<AUTHTOKEN>")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```
:::

***

### Response body parameters

| Parameter              | Data Type | Description                                      |
| ---------------------- | --------- | ------------------------------------------------ |
| result.name            | String    | Name of the nursing home.                        |
| result.address         | String    | Address of the nursing home.                     |
| result.referenceNumber | String    | Reference number assigned to the nursing home.   |
| result.accountNumber   | String    | Account number associated with the nursing home. |
| result.validTill       | String    | Expiry date of the accreditation.                |
| result.validFrom       | String    | Start date of the accreditation.                 |
| result.status          | String    | Current status of the accreditation.             |

:::CodeblockTabs
200

```json
{
    "result": [
        {
            "name": "Apollo Hospitals International Limited",
            "address": "gandhinagar gujarat",
            "referenceNumber": "H-2009-0359",
            "accountNumber": "H-2011-0067",
            "validTill": "03 Feb 2020",
            "validFrom": "04 Feb 2017",
            "status": "Expired"
        },
        {
            "name": "Apollo Hospitals International Limited",
            "address": "gandhinagar gujarat",
            "referenceNumber": "N-2017-0079",
            "accountNumber": "N-2018-0079",
            "validTill": "07 Jan 2020",
            "validFrom": "08 Jan 2018",
            "status": "Expired"
        }
    ]
}
```

400

```json
//When the name is empty string
{
    "error": {
        "name": "error",
        "message": "Name is not allowed to be an empty string",
        "status": "Bad Request",
        "statusCode": 400
    }
}
//When the name is not a string
{
    "error": {
        "name": "error",
        "message": "Name must be a string",
        "status": "Bad Request",
        "statusCode": 400
    }
}
```

401

```json
// When API key is not passed in headers
{
    "message": "No API key found in request"
}

// When wrong API key is passed in headers
{
    "message": "Invalid authentication credentials"
}
```

404

```json
{
    "error": {
        "statusCode": "404",
        "name": "error",
        "message": "Not Found",
        "status": "404"
    }
}
```

409

```json
{
    "error": {
        "name": "error",
        "message": "Error in getting Data from Upstream",
        "status": 409,
        "reason": "ERROR",
        "type": "Conflict",
        "statusCode": 409
    }
}
```
:::

***

**Contact Us for Any Assistance**

If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at <font color="#2166ae">**help\@signzy.com**</font>. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.

We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!
