Send an Account Activation Email
Send account activation email to a specific YCM user.
Request URL
POST {base_url}/dm/open_api/v1/users/{userId}/activation_email
Request parameters
Path parameterParameter | Required | Type | Description |
---|---|---|---|
userId | Yes | Long | The ID of the YCM user. Note: You can
query the user ID using Query All the YCM Users. |
Headers
Parameter | Required | Type | Description |
---|---|---|---|
Authorization | Yes | String | Pass the access token in the header. Format: Bearer {access_token}. |
Response parameters
Parameter | Type | Description |
---|---|---|
requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
status | String | Request result:
|
time | Long | The response time. Note: The YCM API response returns a
timestamp, you can convert the timestamp to detailed
date and time as needed. For more information, see Convert Timestamp to Local Date and Time.
|
Example
Request example
Send an account activation email to a user (ID: 13289).POST /dm/open_api/v1/users/13289/activation_email HTTP/1.1
Host: ycm.yeastar.com
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21Kd3RQYXlsb2FkSW5mbyI6eyJncmFudFR5cGUiOiJjbGllbnRfY3JlZGVudGlhbHMiLCJ5c0lkIjoxMzkzNDY2NTQ2MzIwMTAwOTM4NCwicmVmcmVzaFZlcnNpb24iOjE2NjQzNDM3MzR9LCJzY29wZSI6WyJhbGwiXSwiZXhwIjoxNjY0MzQ1NTM0LCJhdXRob3JpdGllcyI6WyJST0xFX0NMSUVOVCJdLCJqdGkiOiJmMjJhOTJiYS1iZTAyLTRiMjItOTJmYi1kNTQyMWE1YTgyOGQiLCJjbGllbnRfaWQiOiI4NzhpZGNrRDhudFZSdEZVdHZaUDZQTjFYdTBWMTVrYiJ9.uKe06odRtwH5X8_ybUwe8d_CoWioenASk_-EhCCZIQA
Response
exampleHTTP/1.1 200 OK
{
"requestId": "15eba94d-c5b2-47c4-bdcc-109322195bea",
"status": "Success",
"time": 1664270677
}