Obtaining Template Details
Function
This API is used to query details about a created template.
URI
GET /v2/{project_id}/msgsms/templates/{id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
id |
Yes |
String |
Primary key ID of the template, which is the value of id in Table 5. |
project_id |
Yes |
String |
Project ID. For details, see Obtaining Account, User, and Project Information. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
Request body parameter type. This parameter must be set to application/json. |
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token. |
Response Parameters
Status code: 200
Parameter |
Description |
---|---|
id |
Primary key ID of the template. |
template_name |
Template name. |
template_type |
Template type. |
template_content |
Template content. |
template_id |
Template ID. |
app_key |
Application key. |
sign_id |
Signature ID. |
create_time |
Creation time. |
customer_id |
Customer ID. |
has_variable |
Whether the template contains variables. |
flow_status |
Process status. |
status |
Template statuses:
|
universal_template |
Whether the template is a general template. |
review_desc |
Review description. |
country_name |
Country or region. |
Request Example
GET /v2/845ada5bc7444f1295cd517af0123da1/msgsms/templates/460a2427-37eb-4229-bee9-0eba4d8a897f Host: 100.85.***.***:30300 Content-Type: application/json X-Auth-Token:******
Response Example
{ "create_time": "2022-08-12 07:40:36", "customer_id": "******c55c3c4526b2ed7a0213bc9871", "tenant": { "customer_id": "******c55c3c4526b2ed7a0213bc9871", "customer_name": "****05", "enterprise_name": "Huawei Technologies Co., Ltd." }, "id": "******27-37eb-4229-bee9-0eba4d8a897f", "template_id":"********441aa84cb34849f84c3a" "template_type": "NOTIFY_TYPE", "template_name": "auto_test789", "app_name": "auto_test7890", "app_key": "******3baZf4c856O4Qrbqvui3K2", "sign_id": "******b9-4141-4e2d-9838-14889c32a4bf", "template_content": "Test", "has_variable": "No", "flow_status": "Reviewing", "status": "Normal", "universal_template": 0, "region": "cn", "brackets": "GB", "site": "cn", "is_support_multiomp": false }
Returned Values
Returned Value |
Description |
---|---|
200 |
OK |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
500 |
System error |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot