---
title: Check Address Availability
slug: api-marketplace/check-address-availability
createdAt: 2024-08-05T10:16:46.030Z
---

## Introduction

This API checks the availability of address for a phone number. This API is particularly useful to check the address availability before requesting to fetch address.

## Sample cURL

:::CodeblockTabs
Production

```curl
curl --location 'https://api.signzy.app/api/v3/phones/phone-address-check' \
--header 'Content-Type: application/json' \
--header 'Authorization: *********' \
--data '{
    "phoneNumber":"9691066329"
}'
```

Pre-Production

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/phones/phone-address-check' \
--header 'Content-Type: application/json' \
--header 'Authorization: ******' \
--data '{
    "phoneNumber":"9691066329"
}'
```
:::

## Input Parameters:

| **Parameter** | **Type** | **Description**                | **Mandatory/Optional** |
| ------------- | -------- | ------------------------------ | ---------------------- |
| phoneNumber   | String   | Phone Number of the Individual | Mandatory              |

## Sample Response:

```json
{
    "success": true,
    "data": {
        "addressAvailable": true
    },
    "status": "Address available",
    "statusCode": 200
}
```

## Output Parameters:

| **Key**               | **Type** | **Description**                                  |
| --------------------- | -------- | ------------------------------------------------ |
| success               | Boolean  | Indicates the success status of request          |
| data                  | Object   | Contains address availability information        |
| data.addressAvailable | Boolean  | True if Address is available for a phone number  |
| status                | String   | Status message                                   |
| statusCode            | Number   | status code                                      |

## Status Codes:

:::CodeblockTabs
200 OK

```json
{
    "success": true,
    "data": {
        "addressAvailable": true
    },
    "status": "Address available",
    "statusCode": 200
}
```

404

```json
{
    "error": {
        "reason": "ERROR",
        "status": 404,
        "message": "No records found",
        "type": "Not Found",
        "statusCode": 404,
        "name": "error"
    }
}
```

400

```json
{
    "error": {
        "reason": "VALIDATION_ERROR",
        "status": 400,
        "message": "Invalid phoneNumber",
        "type": "Bad Request",
        "statusCode": 400,
        "name": "error"
    }
}
1. "\"phoneNumber\" Invalid phoneNumber"
```

401

```json
{
    "message": "Invalid authentication credentials"
}
```

500

```json
{
    "error": {
        "name": "error",
        "message": "Internal Server Error",
        "status": 500,
        "reason": "ERROR",
        "type": "Internal Server Error",
        "statusCode": 500
    }
}
```
:::

