Import Contacts
FreshBatch import contacts to a cloud phone.
URL: https://openapi.geelark.com/open/v1/phone/contacts/importMethod: POST
Request Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| id | Yes | string | Cloud phone ID |
| contacts | Yes | array[ContactObject] | Contacts to import |
ContactObject
| Parameter | Required | Type | Description |
|---|---|---|---|
| name | Yes | string | Contact name |
| phone | Yes | string | Phone number |
Request Example
json
{
"id": "528086321789535232",
"contacts": [
{ "name": "John", "phone": "+1234567890" },
{ "name": "Jane", "phone": "+0987654321" }
]
}Response
Returns a taskId. Results are delivered via webhook callback (type 14).
json
{
"traceId": "123456ABCDEF",
"code": 0,
"msg": "success",
"data": {
"taskId": "528715748189668352"
}
}Get Import Result
URL: https://openapi.geelark.com/open/v1/phone/contacts/import/resultMethod: POST
| Parameter | Required | Type | Description |
|---|---|---|---|
| taskId | Yes | string | Import task ID |
Error Codes
| Code | Description |
|---|---|
| 42001 | Cloud phone does not exist |
| 42002 | Cloud phone is not in running state |