Export Emergency Numbers
Export emergency numbers to a CSV file.
Request URL
GET {base_url}/{api_path}/emergency_number/export?access_token={access_token}
Request parameters
No request parameters. Send the request URL directly to export emergency numbers.
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
| file | String | The name of the exported CSV file. |
| download_resource_url | String | The download URL of the exported CSV file. It is a relative path starting with /api/download/. Concatenate the URL with the PBX server address. The URL is valid for 30 minutes. |
Example
Request example
GET /openapi/v1.0/emergency_number/export?access_token=lweYFZuwsgSrhFOKC3Z0XmDRXfbPohi6 HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS",
"file": "PSE-emergency_number-83.25.0.61-export-20261112092632-2Vek7jlZmOQc5NjU.csv",
"download_resource_url": "/api/download/PSE-emergency_number-83.25.0.61-export-20261112092632-2Vek7jlZmOQc5NjU.csv"
}