---
updatedAt: 2025-06-05T21:49:32.000Z
agentTools:
  projectIndex: https://docs.cloudloop.com/llms.txt
---

# Decode Message

This action will decode the provided P6 message and return a response object containing the decoded message.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "cloudloop",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.cloudloop.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "query",
        "name": "token"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/P6/DoDecodeMessage": {
      "get": {
        "summary": "Decode Message",
        "description": "This action will decode the provided P6 message and return a response object containing the decoded message.",
        "operationId": "decode-message-1",
        "parameters": [
          {
            "name": "message",
            "in": "query",
            "description": "The P6 message hex encoded",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "direction",
            "in": "query",
            "description": "The direction of the message DIRECTION_MO/DIRECTION_MT",
            "schema": {
              "type": "string",
              "default": "DIRECTION_MO"
            }
          },
          {
            "name": "date",
            "in": "query",
            "description": "Using the ISO_LOCAL_DATE format",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"response\": {\n    \"status\": true,\n    \"error\": [],\n    \"messages\": [\n      {\n        \"mt\": {\n          \"encrypted\": false,\n          \"type\": \"MT_MESSAGE_ACKNOWLEDGEMENT\",\n          \"serverAcknowledgement\": {\n            \"momsn\": 60000\n          }\n        }\n      }\n    ]\n  }\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "response": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "boolean",
                              "example": true,
                              "default": true
                            },
                            "error": {
                              "type": "array"
                            },
                            "messages": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "mo": {
                                    "type": "object",
                                    "properties": {
                                      "encrypted": {
                                        "type": "boolean",
                                        "example": false,
                                        "default": true
                                      },
                                      "alertStatus": {
                                        "type": "boolean",
                                        "example": false,
                                        "default": true
                                      },
                                      "powerStatus": {
                                        "type": "boolean",
                                        "example": false,
                                        "default": true
                                      },
                                      "watchStatus": {
                                        "type": "boolean",
                                        "example": false,
                                        "default": true
                                      },
                                      "type": {
                                        "type": "string",
                                        "example": "MO_MESSAGE_ACKNOWLEDGEMENT_MO"
                                      },
                                      "acknowledgement": {
                                        "type": "object",
                                        "properties": {
                                          "mtmsn": {
                                            "type": "integer",
                                            "example": 60000,
                                            "default": 0
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "response": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "boolean",
                              "example": true,
                              "default": true
                            },
                            "error": {
                              "type": "array"
                            },
                            "messages": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "mt": {
                                    "type": "object",
                                    "properties": {
                                      "encrypted": {
                                        "type": "boolean",
                                        "example": false,
                                        "default": true
                                      },
                                      "type": {
                                        "type": "string",
                                        "example": "MT_MESSAGE_ACKNOWLEDGEMENT"
                                      },
                                      "serverAcknowledgement": {
                                        "type": "object",
                                        "properties": {
                                          "momsn": {
                                            "type": "integer",
                                            "example": 60000,
                                            "default": 0
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              },
              "text/plain": {
                "examples": {
                  "Input Exception": {
                    "value": "{\n  \"at\": 1655202534283,\n  \"error\": \"DispatcherInputException\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "at": {
                      "type": "integer",
                      "example": 1655202534283,
                      "default": 0
                    },
                    "error": {
                      "type": "string",
                      "example": "DispatcherInputException"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```