GET/users/{userId}/contacts
구성원이 접근할 수 있는 연락처 목록을 조회한다.
조회 결과는 5만 건까지 조회할 수 있다 조회 결과가 5만 건을 초과하면 생성 일시 또는 수정 일시를 지정해 검색 범위를 조정할 수 있다. 시작 일시와 종료 일시를 지정해 최대 7일 동안의 데이터를 조회할 수 있다.
OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.
contact
contact.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | 구성원 ID required example : userf7da-f82c-4284-13e7-030f3b4c756x |
| Parameter | Type | Description |
|---|---|---|
| count | integer | 한 번에 가져오는 데이터 크기 default : 100 minimum : 1 maximum : 500 example : 100 format : int32 |
| cursor | string | 커서 example : JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA== |
| searchDateType | string | 조회 날짜 타입. startDateTime, endDateTime이 조건으로 존재하는 경우 필수. Allowed values : CREATED_TIME, MODIFIED_TIME example : CREATED_TIME |
| startDateTime | string | 시작 일시 - 날짜, 시간, 분, 초 형식(YYYY-MM-DDThh:mm:ssTZD) 「+」는 「%2B」로 인코딩해야 한다. example : 2021-06-03T10:00:00.000%2B09:00 |
| endDateTime | string | 종료 일시 - 날짜, 시간, 분, 초 형식(YYYY-MM-DDThh:mm:ssTZD) 「+」는 「%2B」로 인코딩해야 한다. example : 2021-06-03T11:00:00.000%2B09:00 |
| accessibleRange | string | 연락처 접근 가능 범위 Allowed values : ALL, MEMBER example : ALL |
| contactTagId | string | 태그 ID example : ctag2a81-94b6-4642-6903-03aa7977da91 |
| string | 이메일 주소. 「@」는 「%40」으로 인코딩해야 하며 부분 일치로 검색된다.
maxLength : 256 example : example%40example.com nullable : true | |
| telephone | string | 전화번호. 4자리 이상의 숫자만 유효하며 부분 일치로 검색된다. maxLength : 100 example : 012345678 nullable : true |
| searchFilterType | string | 검색 필터링 타입. - LINKED_EXTERNAL_USER: 외부 대화 상대 연락처만 노출 Allowed values : LINKED_EXTERNAL_USER example : LINKED_EXTERNAL_USER |
| orderBy | string | 정렬 대상: name, createdTime, modifiedTime. 정렬 순서: asc(기본값), desc. 정렬 대상과 순서는 공백으로 구분한다(separator: %20). example : name%20asc |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
연락처 목록 조회 시 응답
| Property | Type | Description |
|---|---|---|
| contacts | array (Contact) | 연락처 정보 |
| responseMetaData | object (responseMetaData) | 페이지 매김 정보 |
| Property | Type | Description |
|---|---|---|
| contactId | string | 고객/거래처 연락처 ID readOnly : true |
| permission | object (permission) | 연락처 접근 권한 모델 required |
| contactName | object (contactName) | 연락처 이름 정보 required |
| linkedExternalUser | object (linkedExternalUser) | 연락처 외부 대화 상대 정보 readOnly : true |
| emails | array (ContactEmail) | 연락처 메일 목록 minItems : 0 maxItems : 100 |
| telephones | array (ContactTelephone) | 연락처 전화 목록 minItems : 0 maxItems : 100 |
| organizations | array (ContactOrganization) | 연락처 회사/소속 목록 minItems : 0 maxItems : 100 |
| events | array (ContactEvent) | 연락처 이벤트 목록 minItems : 0 maxItems : 100 |
| locations | array (ContactLocation) | 연락처 주소 목록 minItems : 0 maxItems : 100 |
| messengers | array (ContactMessenger) | 연락처 메신저 정보 minItems : 0 maxItems : 100 |
| websites | array (ContactWebsite) | 연락처 웹사이트 목록 minItems : 0 maxItems : 100 |
| memo | string | 연락처 메모 maxLength : 4000 |
| contactTagIds | array (string) | 연결된 태그 목록 minItems : 0 |
| customProperties | object (customProperties) | 연락처 커스텀 속성. 연락처 커스텀 속성 추가 API를 이용해 먼저 추가해야 한다. customProperties의 key는 연락처 커스텀 필드 추가 API에서 설정한 propertyName의 값으로, 변수이다. |
| createdTime | string | 연락처 생성 시간
readOnly : true |
| modifiedTime | string | 연락처 수정 시간
readOnly : true |
| Property | Type | Description |
|---|---|---|
| accessibleRange | string | 연락처 접근 가능 범위
required Allowed values : ALL, MEMBER |
| masterUserId | string | 연락처 마스터 구성원 ID
|
| isCoEditing | boolean | 공동 편집 여부.
default : true |
| accessibleMembers | array (ContactAccessibleMember) | 연락처에 접근 가능한 구성원(구성원, 조직, 그룹의 ID)
minItems : 0 maxItems : 500 uniqueItems : true |
| Property | Type | Description |
|---|---|---|
| id | string | 연락처에 접근 가능한 구성원의 ID required |
| type | string | 연락처에 접근 가능한 구성원 타입
required Allowed values : USER, ORGUNIT, GROUP |
| Property | Type | Description |
|---|---|---|
| firstName | string | 이름 maxLength : 100 nullable : true |
| lastName | string | 성 maxLength : 100 nullable : true |
| phoneticFirstName | string | 후리가나 이름 maxLength : 100 nullable : true |
| phoneticLastName | string | 후리가나 성 maxLength : 100 nullable : true |
| nickName | string | 닉네임 maxLength : 100 nullable : true |
| prefix | string | 경칭. "연락처 정보 조회"에서만 표시됨. maxLength : 100 nullable : true |
| suffix | string | 호칭. "연락처 정보 조회"에서만 표시됨. maxLength : 100 nullable : true |
| middleName | string | 중간 이름. "연락처 정보 조회"에서만 표시됨. maxLength : 100 nullable : true |
| Property | Type | Description |
|---|---|---|
| id | string | 외부 대화 상대 ID |
| type | string | 외부 대화 상대 타입
Allowed values : LINE, WORKS readOnly : true |
| buddyUserIds | array (string) | 외부 대화 상대를 연락처에 추가한 구성원 ID 목록 |
| Property | Type | Description |
|---|---|---|
| primary | boolean | 대표 메일 여부
required |
| string | 메일 주소 required maxLength : 256 |
| Property | Type | Description |
|---|---|---|
| primary | boolean | 대표 전화 여부
required |
| telephone | string | 전화번호 required pattern : [0-9\+\-*#PTpt()\u3000 ]+ |
| type | string | 연락처 전화번호 타입
default : CUSTOM Allowed values : CELLPHONE, WORK, HOME, WORK_FAX, HOME_FAX, OTHER, CUSTOM |
| customType | string | 직접 입력할 전화번호 타입
maxLength : 100 nullable : true |
| Property | Type | Description |
|---|---|---|
| primary | boolean | 대표 회사 여부
required |
| name | string | 회사명 maxLength : 100 |
| department | string | 부서명 maxLength : 100 |
| title | string | 직책명 maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| primary | boolean | 대표 이벤트 여부
required |
| date | string | 날짜(YYYY-MM-DD) required |
| type | string | 연락처 이벤트 타입
default : CUSTOM Allowed values : BIRTHDAY, ANNIVERSARY, OTHER, CUSTOM |
| customType | string | 직접 입력할 이벤트 타입 maxLength : 100 nullable : true |
| dayType | string | 날짜 타입 default : SOLAR Allowed values : SOLAR, LUNAR |
| Property | Type | Description |
|---|---|---|
| primary | boolean | 대표 주소 여부
required |
| address | string | 주소 required maxLength : 100 |
| type | string | 연락처 주소 타입
default : CUSTOM Allowed values : WORK, HOME, OTHER, CUSTOM |
| zipCode | string | 우편번호 maxLength : 100 |
| customType | string | 직접 입력할 주소 타입 maxLength : 100 nullable : true |
| Property | Type | Description |
|---|---|---|
| primary | boolean | 대표 메신저 여부
required |
| id | string | 메신저 ID required maxLength : 100 |
| type | string | 연락처 메신저 타입
default : CUSTOM Allowed values : FACEBOOK, LINE, TWITTER, X, CUSTOM |
| customType | string | 직접 입력할 메신저 타입 maxLength : 100 nullable : true |
| Property | Type | Description |
|---|---|---|
| primary | boolean | 대표 웹사이트 여부
required |
| url | string | 웹사이트 URL required maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| propertyName | object (propertyName) | propertyType이 STRING이고 multiValued가 false일 때
|
| array (CustomPropertyStringMulti) | propertyType이 STRING이고 multiValued가 true일 때
maxItems : 10 | |
| object (CustomPropertyLinkSingle) | propertyType이 LINK이고 multiValued가 false일 때
| |
| array (CustomPropertyLinkMulti) | propertyType이 LINK이고 multiValued가 true일 때
maxItems : 10 |
| Property | Type | Description |
|---|---|---|
| content | string | propertyType이 STRING일 때 값 maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| content | string | propertyType이 STRING일 때 값 maxLength : 100 |
| represent | boolean | 대표 여부. multiValued가 true일 때 represent가 true인 값이 목록의 제일 앞에 노출된다. |
| Property | Type | Description |
|---|---|---|
| text | string | 텍스트 maxLength : 100 nullable : true |
| link | string | URL maxLength : 300 |
| Property | Type | Description |
|---|---|---|
| text | string | 텍스트 maxLength : 100 nullable : true |
| link | string | URL maxLength : 300 |
| represent | boolean | 대표 여부. multiValued가 true일 때 represent가 true인 값이 목록의 제일 앞에 노출된다. |
| Property | Type | Description |
|---|---|---|
| nextCursor | string | 다음 페이지 조회를 위한 커서 |
example
1{2 "contacts": [3 {4 "contactId": "contact2-a56d-44a4-5304-033e16fca8d1",5 "permission": {6 "masterUserId": "userf7da-f82c-4284-13e7-030f3b4c756x",7 "isCoEditing": true,8 "accessibleRange": "ALL",9 "accessibleMembers": []10 },11 "contactName": {12 "lastName": "홍",13 "firstName": "길동",14 "nickName": "HONG",15 "phoneticFirstName": null,16 "phoneticLastName": null,17 "prefix": null,18 "suffix": null,19 "middleName": null20 },21 "linkedExternalUser": {22 "id": "works75b-5b29-4048-4bf5-0336e504a395",23 "type": "WORKS",24 "buddyUserIds": [25 "userf7da-f82c-4284-13e7-030f3b4c756x"26 ]27 },28 "emails": [29 {30 "primary": true,31 "email": "example3@example.com"32 },33 {34 "primary": false,35 "email": "example4@example.com"36 }37 ],38 "telephones": [39 {40 "primary": true,41 "telephone": "0000-0001",42 "type": "CELLPHONE",43 "customType": null44 },45 {46 "primary": false,47 "telephone": "0000-0002",48 "type": "HOME",49 "customType": null50 }51 ],52 "organizations": [53 {54 "primary": true,55 "name": "example company name",56 "department": "department",57 "title": "title"58 }59 ],60 "locations": [61 {62 "primary": true,63 "address": "example1 address",64 "type": "WORK",65 "zipCode": "00001",66 "customType": null67 },68 {69 "primary": false,70 "address": "example2 address",71 "type": "HOME",72 "zipCode": "00002",73 "customType": null74 }75 ],76 "events": [77 {78 "primary": true,79 "date": "2021-01-09",80 "type": "BIRTHDAY",81 "dayType": "SOLAR",82 "customType": null83 },84 {85 "primary": false,86 "date": "2021-08-09",87 "type": "ANNIVERSARY",88 "dayType": "SOLAR",89 "customType": null90 }91 ],92 "messengers": [93 {94 "primary": true,95 "id": "example1",96 "type": "LINE",97 "customType": null98 },99 {100 "primary": false,101 "id": "example2",102 "type": "CUSTOM",103 "customType": "Worksmobile"104 }105 ],106 "websites": [107 {108 "primary": true,109 "url": "https://example1.com"110 },111 {112 "primary": false,113 "url": "https://example2.com"114 }115 ],116 "memo": "memo",117 "contactTagIds": [118 "ctag2a81-94b6-4642-6903-03aa7977da91",119 "3512644d-a731-4602-6912-031febc8bce2"120 ],121 "customProperties": {122 "string_single": {123 "content": "ext_id"124 },125 "string_multi": [126 {127 "content": "ext_id",128 "represent": true129 },130 {131 "content": "connect",132 "represent": false133 }134 ],135 "link_single": {136 "text": "worksmobile",137 "link": "https://contact.worksmobile.com"138 },139 "link_multi": [140 {141 "text": "worksmobile",142 "link": "https://contact.worksmobile.com",143 "represent": true144 },145 {146 "text": "line",147 "link": "https://www.line.me/",148 "represent": false149 }150 ]151 },152 "createdTime": "2021-08-10T11:05:41+09:00",153 "modifiedTime": "2021-08-10T11:09:37+09:00"154 }155 ],156 "responseMetaData": {157 "nextCursor": "JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA=="158 }159}Bad Request