Cyan Web API - Version 1


GET api/messages

            Gets messages.
            
             If no query string parameters are specified, this will return all messages for the request tenant (not recommended).
             
             If query string parameters are passed, they will be used to filter the messages in the result.  The result will always
             be an array, even if there is no results or a single result.
             
             Query string parameters can be any of the following, and can be combined to create more complex filters:
             MessageMessageId (GUID): search by MessageId x
             MessageCreatedAfterUtc (ISO8601 datetime string): search for messages that were created at or after the given datetime
             MessageCreatedBeforeUtc (ISO8601 datetime string): search for messages that were created before the given datetime
             MessageUpdatedAfterUtc (ISO8601 datetime string): search for messages that were last updated at or after the given datetime
             MessageUpdatedBeforeUtc (ISO8601 datetime string): search for messages that were last updated before the given datetime
             MessageApplicationId (GUID): search for messages for the given ApplicationId x
             MessageApplicationVersionId (GUID): search for messages for the given ApplicationVersionId x
             MessageDeviceId (GUID): search for messages for the given DeviceId x
             MessageDeviceGroupId (GUID): search for messages for the given DeviceGroupId x
             MessageUserId (GUID): search for messages for the given UserId x
             MessageUserGroupId (GUID): search for messages for the given UserGroupId x
             MessageUserName (string): search for messages for the given username (exact match) x
             MessageAuditTypeLookupKey (string): search for messages which have a latest audit with the given lookup key (partial match) x
             MessageSkip (integer): number of records to skip (for paging) x
             MessageTake (integer): number of records to take (for paging) x
             IncludeFullDocument (bool): true return audits and body with the messages - defaults to false x
             MessageTypeLookupKey (string): search for messages by the given MessageTypeLookupKey
            

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "messageId": "5e675fbe-ceef-450a-b6b6-56c609dc0a06",
    "tenantId": "0af5dfa5-c905-41ac-a4c7-7c3a406f9ba9",
    "messageTypeId": "420fa8e8-db93-4feb-8955-c23a79ba948a",
    "messageTypeLookupKey": "sample string 4",
    "userId": "9389a674-9a23-404b-9e85-1fe00da2875c",
    "userGroupId": "1109ccb0-cd75-4453-a889-fea652be9d6d",
    "deviceId": "b265b418-cff4-4397-91e5-f926938b20d4",
    "deviceGroupId": "2de78e9e-a021-4a0b-8702-350c48cc666d",
    "applicationId": "18baca65-4af7-4a58-82d7-037812158ccd",
    "applicationVersionId": "8efc9602-d3c5-4db3-a8e5-555fc7c3c0df",
    "senderSessionId": "sample string 5",
    "senderSessionSequence": 1,
    "senderCorrelationId": "sample string 6",
    "senderGroup": "sample string 7",
    "senderNote": "sample string 8",
    "body": "sample string 9",
    "storeEncryptedPassword": true,
    "storeHashedPassword": true,
    "messageAuditId": "1402d8ae-d524-47cb-9c4a-68bc5ffdb65e",
    "messageAuditMessageAuditTypeId": "d17e6654-5156-419f-bdc8-4923406c45a8",
    "messageAuditMessageAuditTypeName": "sample string 14",
    "messageAuditMessageAuditTypeLookupKey": "sample string 15",
    "messageAuditText": "sample string 16",
    "messageAuditCreatedDateUtc": "2024-10-17T02:43:05.2823254+00:00",
    "messageAuditUpdatedDateUtc": "2024-10-17T02:43:05.2823254+00:00",
    "cyanId": 18,
    "messageAuditCyanId": 1,
    "resubmitCount": 19,
    "createdDateUtc": "2024-10-17T02:43:05.2823254+00:00",
    "updatedDateUtc": "2024-10-17T02:43:05.2823254+00:00"
  },
  {
    "messageId": "5e675fbe-ceef-450a-b6b6-56c609dc0a06",
    "tenantId": "0af5dfa5-c905-41ac-a4c7-7c3a406f9ba9",
    "messageTypeId": "420fa8e8-db93-4feb-8955-c23a79ba948a",
    "messageTypeLookupKey": "sample string 4",
    "userId": "9389a674-9a23-404b-9e85-1fe00da2875c",
    "userGroupId": "1109ccb0-cd75-4453-a889-fea652be9d6d",
    "deviceId": "b265b418-cff4-4397-91e5-f926938b20d4",
    "deviceGroupId": "2de78e9e-a021-4a0b-8702-350c48cc666d",
    "applicationId": "18baca65-4af7-4a58-82d7-037812158ccd",
    "applicationVersionId": "8efc9602-d3c5-4db3-a8e5-555fc7c3c0df",
    "senderSessionId": "sample string 5",
    "senderSessionSequence": 1,
    "senderCorrelationId": "sample string 6",
    "senderGroup": "sample string 7",
    "senderNote": "sample string 8",
    "body": "sample string 9",
    "storeEncryptedPassword": true,
    "storeHashedPassword": true,
    "messageAuditId": "1402d8ae-d524-47cb-9c4a-68bc5ffdb65e",
    "messageAuditMessageAuditTypeId": "d17e6654-5156-419f-bdc8-4923406c45a8",
    "messageAuditMessageAuditTypeName": "sample string 14",
    "messageAuditMessageAuditTypeLookupKey": "sample string 15",
    "messageAuditText": "sample string 16",
    "messageAuditCreatedDateUtc": "2024-10-17T02:43:05.2823254+00:00",
    "messageAuditUpdatedDateUtc": "2024-10-17T02:43:05.2823254+00:00",
    "cyanId": 18,
    "messageAuditCyanId": 1,
    "resubmitCount": 19,
    "createdDateUtc": "2024-10-17T02:43:05.2823254+00:00",
    "updatedDateUtc": "2024-10-17T02:43:05.2823254+00:00"
  },
  {
    "messageId": "5e675fbe-ceef-450a-b6b6-56c609dc0a06",
    "tenantId": "0af5dfa5-c905-41ac-a4c7-7c3a406f9ba9",
    "messageTypeId": "420fa8e8-db93-4feb-8955-c23a79ba948a",
    "messageTypeLookupKey": "sample string 4",
    "userId": "9389a674-9a23-404b-9e85-1fe00da2875c",
    "userGroupId": "1109ccb0-cd75-4453-a889-fea652be9d6d",
    "deviceId": "b265b418-cff4-4397-91e5-f926938b20d4",
    "deviceGroupId": "2de78e9e-a021-4a0b-8702-350c48cc666d",
    "applicationId": "18baca65-4af7-4a58-82d7-037812158ccd",
    "applicationVersionId": "8efc9602-d3c5-4db3-a8e5-555fc7c3c0df",
    "senderSessionId": "sample string 5",
    "senderSessionSequence": 1,
    "senderCorrelationId": "sample string 6",
    "senderGroup": "sample string 7",
    "senderNote": "sample string 8",
    "body": "sample string 9",
    "storeEncryptedPassword": true,
    "storeHashedPassword": true,
    "messageAuditId": "1402d8ae-d524-47cb-9c4a-68bc5ffdb65e",
    "messageAuditMessageAuditTypeId": "d17e6654-5156-419f-bdc8-4923406c45a8",
    "messageAuditMessageAuditTypeName": "sample string 14",
    "messageAuditMessageAuditTypeLookupKey": "sample string 15",
    "messageAuditText": "sample string 16",
    "messageAuditCreatedDateUtc": "2024-10-17T02:43:05.2823254+00:00",
    "messageAuditUpdatedDateUtc": "2024-10-17T02:43:05.2823254+00:00",
    "cyanId": 18,
    "messageAuditCyanId": 1,
    "resubmitCount": 19,
    "createdDateUtc": "2024-10-17T02:43:05.2823254+00:00",
    "updatedDateUtc": "2024-10-17T02:43:05.2823254+00:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMessageRepresentation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlueDot.Cyan.Server.Core.Models.Rest.Version1">
  <MessageRepresentation>
    <CreatedDateUtc>2024-10-17T02:43:05.2823254+00:00</CreatedDateUtc>
    <UpdatedDateUtc>2024-10-17T02:43:05.2823254+00:00</UpdatedDateUtc>
    <ApplicationId>18baca65-4af7-4a58-82d7-037812158ccd</ApplicationId>
    <ApplicationVersionId>8efc9602-d3c5-4db3-a8e5-555fc7c3c0df</ApplicationVersionId>
    <Body>sample string 9</Body>
    <CyanId>18</CyanId>
    <DeviceGroupId>2de78e9e-a021-4a0b-8702-350c48cc666d</DeviceGroupId>
    <DeviceId>b265b418-cff4-4397-91e5-f926938b20d4</DeviceId>
    <MessageAuditCreatedDateUtc>2024-10-17T02:43:05.2823254+00:00</MessageAuditCreatedDateUtc>
    <MessageAuditCyanId>1</MessageAuditCyanId>
    <MessageAuditId>1402d8ae-d524-47cb-9c4a-68bc5ffdb65e</MessageAuditId>
    <MessageAuditMessageAuditTypeId>d17e6654-5156-419f-bdc8-4923406c45a8</MessageAuditMessageAuditTypeId>
    <MessageAuditMessageAuditTypeLookupKey>sample string 15</MessageAuditMessageAuditTypeLookupKey>
    <MessageAuditMessageAuditTypeName>sample string 14</MessageAuditMessageAuditTypeName>
    <MessageAuditText>sample string 16</MessageAuditText>
    <MessageAuditUpdatedDateUtc>2024-10-17T02:43:05.2823254+00:00</MessageAuditUpdatedDateUtc>
    <MessageId>5e675fbe-ceef-450a-b6b6-56c609dc0a06</MessageId>
    <MessageTypeId>420fa8e8-db93-4feb-8955-c23a79ba948a</MessageTypeId>
    <MessageTypeLookupKey>sample string 4</MessageTypeLookupKey>
    <ResubmitCount>19</ResubmitCount>
    <SenderCorrelationId>sample string 6</SenderCorrelationId>
    <SenderGroup>sample string 7</SenderGroup>
    <SenderNote>sample string 8</SenderNote>
    <SenderSessionId>sample string 5</SenderSessionId>
    <SenderSessionSequence>1</SenderSessionSequence>
    <StoreEncryptedPassword>true</StoreEncryptedPassword>
    <StoreHashedPassword>true</StoreHashedPassword>
    <TenantId>0af5dfa5-c905-41ac-a4c7-7c3a406f9ba9</TenantId>
    <UserGroupId>1109ccb0-cd75-4453-a889-fea652be9d6d</UserGroupId>
    <UserId>9389a674-9a23-404b-9e85-1fe00da2875c</UserId>
  </MessageRepresentation>
  <MessageRepresentation>
    <CreatedDateUtc>2024-10-17T02:43:05.2823254+00:00</CreatedDateUtc>
    <UpdatedDateUtc>2024-10-17T02:43:05.2823254+00:00</UpdatedDateUtc>
    <ApplicationId>18baca65-4af7-4a58-82d7-037812158ccd</ApplicationId>
    <ApplicationVersionId>8efc9602-d3c5-4db3-a8e5-555fc7c3c0df</ApplicationVersionId>
    <Body>sample string 9</Body>
    <CyanId>18</CyanId>
    <DeviceGroupId>2de78e9e-a021-4a0b-8702-350c48cc666d</DeviceGroupId>
    <DeviceId>b265b418-cff4-4397-91e5-f926938b20d4</DeviceId>
    <MessageAuditCreatedDateUtc>2024-10-17T02:43:05.2823254+00:00</MessageAuditCreatedDateUtc>
    <MessageAuditCyanId>1</MessageAuditCyanId>
    <MessageAuditId>1402d8ae-d524-47cb-9c4a-68bc5ffdb65e</MessageAuditId>
    <MessageAuditMessageAuditTypeId>d17e6654-5156-419f-bdc8-4923406c45a8</MessageAuditMessageAuditTypeId>
    <MessageAuditMessageAuditTypeLookupKey>sample string 15</MessageAuditMessageAuditTypeLookupKey>
    <MessageAuditMessageAuditTypeName>sample string 14</MessageAuditMessageAuditTypeName>
    <MessageAuditText>sample string 16</MessageAuditText>
    <MessageAuditUpdatedDateUtc>2024-10-17T02:43:05.2823254+00:00</MessageAuditUpdatedDateUtc>
    <MessageId>5e675fbe-ceef-450a-b6b6-56c609dc0a06</MessageId>
    <MessageTypeId>420fa8e8-db93-4feb-8955-c23a79ba948a</MessageTypeId>
    <MessageTypeLookupKey>sample string 4</MessageTypeLookupKey>
    <ResubmitCount>19</ResubmitCount>
    <SenderCorrelationId>sample string 6</SenderCorrelationId>
    <SenderGroup>sample string 7</SenderGroup>
    <SenderNote>sample string 8</SenderNote>
    <SenderSessionId>sample string 5</SenderSessionId>
    <SenderSessionSequence>1</SenderSessionSequence>
    <StoreEncryptedPassword>true</StoreEncryptedPassword>
    <StoreHashedPassword>true</StoreHashedPassword>
    <TenantId>0af5dfa5-c905-41ac-a4c7-7c3a406f9ba9</TenantId>
    <UserGroupId>1109ccb0-cd75-4453-a889-fea652be9d6d</UserGroupId>
    <UserId>9389a674-9a23-404b-9e85-1fe00da2875c</UserId>
  </MessageRepresentation>
  <MessageRepresentation>
    <CreatedDateUtc>2024-10-17T02:43:05.2823254+00:00</CreatedDateUtc>
    <UpdatedDateUtc>2024-10-17T02:43:05.2823254+00:00</UpdatedDateUtc>
    <ApplicationId>18baca65-4af7-4a58-82d7-037812158ccd</ApplicationId>
    <ApplicationVersionId>8efc9602-d3c5-4db3-a8e5-555fc7c3c0df</ApplicationVersionId>
    <Body>sample string 9</Body>
    <CyanId>18</CyanId>
    <DeviceGroupId>2de78e9e-a021-4a0b-8702-350c48cc666d</DeviceGroupId>
    <DeviceId>b265b418-cff4-4397-91e5-f926938b20d4</DeviceId>
    <MessageAuditCreatedDateUtc>2024-10-17T02:43:05.2823254+00:00</MessageAuditCreatedDateUtc>
    <MessageAuditCyanId>1</MessageAuditCyanId>
    <MessageAuditId>1402d8ae-d524-47cb-9c4a-68bc5ffdb65e</MessageAuditId>
    <MessageAuditMessageAuditTypeId>d17e6654-5156-419f-bdc8-4923406c45a8</MessageAuditMessageAuditTypeId>
    <MessageAuditMessageAuditTypeLookupKey>sample string 15</MessageAuditMessageAuditTypeLookupKey>
    <MessageAuditMessageAuditTypeName>sample string 14</MessageAuditMessageAuditTypeName>
    <MessageAuditText>sample string 16</MessageAuditText>
    <MessageAuditUpdatedDateUtc>2024-10-17T02:43:05.2823254+00:00</MessageAuditUpdatedDateUtc>
    <MessageId>5e675fbe-ceef-450a-b6b6-56c609dc0a06</MessageId>
    <MessageTypeId>420fa8e8-db93-4feb-8955-c23a79ba948a</MessageTypeId>
    <MessageTypeLookupKey>sample string 4</MessageTypeLookupKey>
    <ResubmitCount>19</ResubmitCount>
    <SenderCorrelationId>sample string 6</SenderCorrelationId>
    <SenderGroup>sample string 7</SenderGroup>
    <SenderNote>sample string 8</SenderNote>
    <SenderSessionId>sample string 5</SenderSessionId>
    <SenderSessionSequence>1</SenderSessionSequence>
    <StoreEncryptedPassword>true</StoreEncryptedPassword>
    <StoreHashedPassword>true</StoreHashedPassword>
    <TenantId>0af5dfa5-c905-41ac-a4c7-7c3a406f9ba9</TenantId>
    <UserGroupId>1109ccb0-cd75-4453-a889-fea652be9d6d</UserGroupId>
    <UserId>9389a674-9a23-404b-9e85-1fe00da2875c</UserId>
  </MessageRepresentation>
</ArrayOfMessageRepresentation>