<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docs.hostway.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docs.hostway.com/index.php?action=history&amp;feed=atom&amp;title=Accounts-account-email-domain-usernames-mailboxName-messagestats%3AGET</id>
		<title>Accounts-account-email-domain-usernames-mailboxName-messagestats:GET - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docs.hostway.com/index.php?action=history&amp;feed=atom&amp;title=Accounts-account-email-domain-usernames-mailboxName-messagestats%3AGET"/>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Accounts-account-email-domain-usernames-mailboxName-messagestats:GET&amp;action=history"/>
		<updated>2026-05-18T09:09:46Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Accounts-account-email-domain-usernames-mailboxName-messagestats:GET&amp;diff=1234&amp;oldid=prev</id>
		<title>Mike.robski: 1 revision: Release 91</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Accounts-account-email-domain-usernames-mailboxName-messagestats:GET&amp;diff=1234&amp;oldid=prev"/>
				<updated>2014-03-11T17:18:16Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision: Release 91&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 17:18, 11 March 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Mike.robski</name></author>	</entry>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Accounts-account-email-domain-usernames-mailboxName-messagestats:GET&amp;diff=1233&amp;oldid=prev</id>
		<title>Mike.robski at 17:17, 11 March 2014</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Accounts-account-email-domain-usernames-mailboxName-messagestats:GET&amp;diff=1233&amp;oldid=prev"/>
				<updated>2014-03-11T17:17:25Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 17:17, 11 March 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 112:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 112:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== See also ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== See also ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Email &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Service &lt;/del&gt;API|Email &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Service &lt;/del&gt;API]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Email API|Email API]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{disqus}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{disqus}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Hostway API]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Hostway API]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Email API]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Email API]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mike.robski</name></author>	</entry>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Accounts-account-email-domain-usernames-mailboxName-messagestats:GET&amp;diff=1175&amp;oldid=prev</id>
		<title>Mike.robski: 1 revision: Release 90</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Accounts-account-email-domain-usernames-mailboxName-messagestats:GET&amp;diff=1175&amp;oldid=prev"/>
				<updated>2014-01-31T18:37:32Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision: Release 90&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 18:37, 31 January 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Mike.robski</name></author>	</entry>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Accounts-account-email-domain-usernames-mailboxName-messagestats:GET&amp;diff=1174&amp;oldid=prev</id>
		<title>Stanimir.dimitrov: /* Status Code */</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Accounts-account-email-domain-usernames-mailboxName-messagestats:GET&amp;diff=1174&amp;oldid=prev"/>
				<updated>2014-01-22T16:11:49Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Status Code&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= GET /accounts/{account}/email/{domain}/usernames/{mailboxName}/mailbox/messagestats =&lt;br /&gt;
Retrieves mailbox message count for INBOX, SENT and SPAM folders &lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Request ==&lt;br /&gt;
&amp;lt;code&amp;gt;GET /accounts/{account}/email/{domain}/usernames/{mailboxName}/mailbox/messagestats &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== URI Parameters ===&lt;br /&gt;
; account - ''string''&lt;br /&gt;
:&lt;br /&gt;
; domain - ''string''&lt;br /&gt;
:&lt;br /&gt;
; mailboxName - ''string''&lt;br /&gt;
:&lt;br /&gt;
&lt;br /&gt;
=== Request Headers ===&lt;br /&gt;
{{Authorization}}&lt;br /&gt;
&lt;br /&gt;
== Response ==&lt;br /&gt;
&lt;br /&gt;
=== Status Code ===&lt;br /&gt;
; 200 OK&lt;br /&gt;
: Success&lt;br /&gt;
&lt;br /&gt;
; 401 Unauthorized&lt;br /&gt;
: The supplied credentials are invalid or do not provide permissions for this operation.&lt;br /&gt;
&lt;br /&gt;
; 404 Not Found&lt;br /&gt;
: The domain name or the mailbox does not exist.&lt;br /&gt;
: Unable to get message count for virtual mailboxes.&lt;br /&gt;
&lt;br /&gt;
; 500 Internal Server Error&lt;br /&gt;
: Missing Domain or Installation records&lt;br /&gt;
&lt;br /&gt;
; 502 Bad Gateway&lt;br /&gt;
: Unable to get message count. No IMAP connection&lt;br /&gt;
: Unable to get message count. IMAP search operation failed.&lt;br /&gt;
: Unable to get message count. IMAP folder selection failed.&lt;br /&gt;
&lt;br /&gt;
=== Response Body ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;messageCount&amp;quot; : {&lt;br /&gt;
    &amp;quot;inbox&amp;quot; : {&lt;br /&gt;
      &amp;quot;allMessages&amp;quot; : {inbox_all_messages_count},&lt;br /&gt;
      &amp;quot;unreadMessages&amp;quot; : {inbox_unread_messages_count}&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;sent&amp;quot; : {&lt;br /&gt;
      &amp;quot;allMessages&amp;quot; : {sent_all_messages_count},&lt;br /&gt;
      &amp;quot;unreadMessages&amp;quot; : {sent_unread_messages_count}&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;spam&amp;quot; : {&lt;br /&gt;
      &amp;quot;allMessages&amp;quot; : {spam_all_messages_count},&lt;br /&gt;
      &amp;quot;unreadMessages&amp;quot; : {sent_unread_messages_count}&lt;br /&gt;
    }&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;links&amp;quot;: [{&amp;quot;href&amp;quot;: &amp;quot;&amp;lt;/nowiki&amp;gt;{{APIBaseURL}}&amp;lt;nowiki&amp;gt;/accounts/{account}/email/{domain}/usernames/{mailboxName}/mailbox/messagestats/, &amp;quot;rel&amp;quot;: &amp;quot;self&amp;quot;}]&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; inbox_all_messages_count- ''integer''&lt;br /&gt;
: All messages for INBOX folder&lt;br /&gt;
&lt;br /&gt;
; inbox_unread_messages_count- ''integer''&lt;br /&gt;
: Unread messages for INBOX folder&lt;br /&gt;
&lt;br /&gt;
; sent_all_messages_count- ''integer''&lt;br /&gt;
: All messages for SENT folder&lt;br /&gt;
&lt;br /&gt;
; sent_unread_messages_count- ''integer''&lt;br /&gt;
: Unread messages for SENT folder&lt;br /&gt;
&lt;br /&gt;
; spam_all_messages_count- ''integer''&lt;br /&gt;
: All messages for SPAM folder&lt;br /&gt;
&lt;br /&gt;
; spam_unread_messages_count- ''integer''&lt;br /&gt;
: Unread messages for SPAM folder&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Success ===&lt;br /&gt;
'''Request'''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
GET /accounts/{account}/email/{domain}/usernames/{mailboxName}/mailbox/messagestats&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Response'''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
200 OK&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;messageCount&amp;quot; : {&lt;br /&gt;
    &amp;quot;inbox&amp;quot; : {&lt;br /&gt;
      &amp;quot;allMessages&amp;quot; : 3,&lt;br /&gt;
      &amp;quot;unreadMessages&amp;quot; : 3&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;sent&amp;quot; : {&lt;br /&gt;
      &amp;quot;allMessages&amp;quot; : 0,&lt;br /&gt;
      &amp;quot;unreadMessages&amp;quot; : 0&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;spam&amp;quot; : {&lt;br /&gt;
      &amp;quot;allMessages&amp;quot; : 0,&lt;br /&gt;
      &amp;quot;unreadMessages&amp;quot; : 0&lt;br /&gt;
    }&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;links&amp;quot;: [{&amp;quot;href&amp;quot;: &amp;quot;&amp;lt;/nowiki&amp;gt;{{APIBaseURL}}&amp;lt;nowiki&amp;gt;/accounts/{account}/email/{domain}/usernames/{mailboxName}/mailbox/messagestats/&amp;quot;, &amp;quot;rel&amp;quot;: &amp;quot;self&amp;quot;}]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Email Service API|Email Service API]]&lt;br /&gt;
&lt;br /&gt;
{{disqus}}&lt;br /&gt;
[[Category:Hostway API]]&lt;br /&gt;
[[Category:Email API]]&lt;/div&gt;</summary>
		<author><name>Stanimir.dimitrov</name></author>	</entry>

	</feed>