# Get Address List

## Get Address List

<mark style="color:blue;">`GET`</mark> `https://uprism.io:30443/v1/users/{userId}/address`

API to retrieve the address book list of the user

#### Path Parameters

| Name   | Type   | Description |
| ------ | ------ | ----------- |
| userId | string | user ID     |

#### Headers

| Name          | Type   | Description               |
| ------------- | ------ | ------------------------- |
| Authorization | string | "Bearer " + {accessToken} |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "code": 200,
    "message": "success",
    "response": [
        {
            "group_name": "조류",
            "address_user_name": "김참새",
            "email": "chamsae@uprism.com",
            "class_name": "대리",
            "post": "경영지원부서"
        },
        {
            "group_name": "조류",
            "address_user_name": "김까마귀",
            "email": "crow@uprism.com",
            "class_name": "사원",
            "post": "경영지원부서"
        }
    ]
}
```

{% endtab %}

{% tab title="400 " %}

```javascript
{
    "code": 400,
    "message": "This account is non-member.",
    "response": null
}
```

{% endtab %}
{% endtabs %}

## Get Address List In Group

<mark style="color:blue;">`GET`</mark> `https://uprism.io:30443/v1/users/{userId}/address/group/{groupName}`

API to retrieve the list of contacts from the user's group

#### Path Parameters

| Name   | Type   | Description |
| ------ | ------ | ----------- |
| userId | string | user ID     |

#### Headers

| Name           | Type   | Description              |
| -------------- | ------ | ------------------------ |
| Authentication | string | "Bearer" + {accessToken} |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "code": 200,
    "message": "success",
    "response": [
        {
            "group_name": "조류",
            "address_user_name": "김참새",
            "email": "chamsae@uprism.com",
            "class_name": "대리",
            "post": "경영지원부서"
        },
        {
            "group_name": "조류",
            "address_user_name": "김까마귀",
            "email": "crow@uprism.com",
            "class_name": "사원",
            "post": "경영지원부서"
        }
    ]
}
```

{% endtab %}

{% tab title="400 " %}

```javascript
{
    "code": 400,
    "message": "This account is non-member.",
    "response": null
}
```

{% endtab %}
{% endtabs %}
