Skip to main content
Version: 2.0

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

StatusMeaningDescriptionSchema
200OKThe response body contains an instance of TemplateStatus.TemplateStatus
400Bad RequestInvalid Query Parameters.BadRequest
401UnauthorizedMissing or invalid Authorization header.None
403ForbiddenThe provided token does not have access to this resource.None
404Not FoundTemplate not foundNotFound
429Too Many RequestsRate limit exceeded. Retry after the time specified in Retry-After header.None
500Internal Server ErrorSomething Went wrong wile processing your request.InternalServerError
502Bad GatewayThe upstream service failed to respond correctly.None
503Service UnavailableThe API is temporarily unavailable, often due to maintenance or overload.None
504Gateway TimeoutThe 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
statusenum (TemplateStatus)

Approval status of the template.

BadRequest

JSON Representation

{
"error": {
"code": 400,
"message": string
}
}

Fields

Fields
error.code400
error.messagestring

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.code500
error.messageSomething went wrong.

NotFound

JSON Representation

{
"error": {
"message": "Template Not Found for appId: <appId> and templateName: <templateName>",
"code": 404
}
}

Fields

Fields
error.code404
error.messageTemplate Not Found for appId: <appId> and templateName: <templateName>