Template Status
Overview
Retrieve the status of a created template.
- API Endpoints: -
/v2/rcs/<appId>/templates/<templateName>/status - Authentication: - This API requires Bearer token authentication. See Authentication for more details.
- Method: -
GET
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | The response body contains an instance of TemplateStatus. | TemplateStatus |
| 400 | Bad Request | Invalid Query Parameters. | BadRequest |
| 401 | Unauthorized | Missing or invalid Authorization header. | None |
| 403 | Forbidden | The provided token does not have access to this resource. | None |
| 404 | Not Found | Template not found | NotFound |
| 429 | Too Many Requests | Rate limit exceeded. Retry after the time specified in Retry-After header. | None |
| 500 | Internal Server Error | Something Went wrong wile processing your request. | InternalServerError |
| 502 | Bad Gateway | The upstream service failed to respond correctly. | None |
| 503 | Service Unavailable | The API is temporarily unavailable, often due to maintenance or overload. | None |
| 504 | Gateway Timeout | The server did not receive a timely response from the upstream service. | None |
TemplateStatus
JSON Representation
{
"status": enum (TemplateStatus)
}
See TemplateStatus for more details.
Fields
| Fields | |
|---|---|
| status | enum (TemplateStatus) Approval status of the template. |
BadRequest
JSON Representation
{
"error": {
"code": 400,
"message": string
}
}
Fields
| Fields | |
|---|---|
| error.code | 400 |
| error.message | string The message detailing what parameter from the Body and Query is invalid. |
InternalServerError
JSON Representation
{
"error": {
"message": "Something went wrong.",
"code": 500
}
}
Fields
| Fields | |
|---|---|
| error.code | 500 |
| error.message | Something went wrong. |
NotFound
JSON Representation
{
"error": {
"message": "Template Not Found for appId: <appId> and templateName: <templateName>",
"code": 404
}
}
Fields
| Fields | |
|---|---|
| error.code | 404 |
| error.message | Template Not Found for appId: <appId> and templateName: <templateName> |