API Reference version 2
View recent privatechat history
Fetch latest chat history for the 1:1 chat with the user identified by idoremail.
Path parameters
| Type | Parameter | Description | Required? |
|---|---|---|---|
| string | id_or_email |
The id or email of the user Valid length range: |
Query parameters
| Type | Parameter | Description | Required? |
|---|---|---|---|
| integer | max-results |
The maximum number of messages to return. Valid length range: Defaults to |
|
| string | timezone |
Your timezone. Must be a supported timezone. Defaults to |
|
| boolean | include_deleted |
Include records about deleted messages into results (body of a message isn't returned). Set to 'true'. Defaults to |
|
| string | not-before |
The id of the message that is oldest in the set of messages to be returned. The server will not return any messages that chronologically precede this message. |
| Type | Property | Description | Required? |
|---|---|---|---|
| array | items |
A mixed array of the following types. |
|
| object | [items array, option 1] |
An object with the following properties. |
|
| obj | str | from |
The user that sent the message. May be null. |
|
| object | [from, object 1] |
An object with the following properties. |
|
| string | mention_name |
User's @mention name |
|
| string | version |
An etag-like random version string. |
|
| integer | id |
The user ID |
|
| object | links |
URLs to retrieve user information |
|
| string | self |
The link to use to retrieve the user information |
|
| string | name |
The display user name |
|
| array | message_links |
A list of links extracted from the message and some extended data (currently only extracts the last link from the message) An array of the following objects. |
|
| object | twitter_user |
Extended information extracted from a twitter profile link |
|
| integer | followers |
The number of followers for this Twitter user |
|
| string | name |
The name of this Twitter user |
|
| string | profileImageUrl |
The URL of this user's Twitter profile image |
|
| string | screenName |
The Twitter mention name (without the @) |
|
| string | url |
The URL of the link that was extracted from the message |
|
| object | image |
Extended information extracted from an image link |
|
| string | image |
The URL of the image |
|
| string | name |
A name for the image |
|
| object | twitter_status |
Extended information extracted from a twitter status update link |
|
| string | name |
The name of the Twitter user who posted the update |
|
| string | created |
The date of the post in UTC, formatted in ISO-8601 |
|
| string | text |
The text of the status update |
|
| string | profileImageUrl |
The profile image of the user who posted the update |
|
| string | source |
What application was used to post this tweet |
|
| string | screenName |
The Twitter mention name of the user who posted the update (without the @). |
|
| object | video |
Extended information extracted from a video link |
|
| string | thumbnailUrl |
A URL to a thumbnail of the video |
|
| integer | views |
The number of views of this video |
|
| string | author |
The author of the video |
|
| string | title |
The title of the video |
|
| object | link |
Extended information extracted from a link to any other type of web page |
|
| string | description |
A longer description for the link |
|
| string | title |
The title for this link |
|
| string | headerText |
A descriptive header for the link |
|
| string | linkText |
An alternate description for this link |
|
| string | faviconUrl |
The URL of the favicon for this link |
|
| string | fullUrl |
The full URL for this link if the original was from a link shortener |
|
| string | type |
The type of link extracted which will determine the link metadata attributes. Valid values: |
|
| string | message_format |
Determines how the message is treated by our server and rendered inside HipChat applications. Valid values: Defaults to |
|
| object | file |
The file URL attached to the message, if specified. |
|
| string | url |
The URL of the file |
|
| string | thumb_url |
The URL of the thumbnail if it exists |
|
| string | name |
The name of the file |
|
| integer | size |
The size of the file in bytes |
|
| string | date |
The date the message was sent in ISO-8601 format. |
|
| array | mentions |
A list of mentioned users in this message. An array of the following objects. |
|
| string | mention_name |
User's @mention name |
|
| string | version |
An etag-like random version string. |
|
| integer | id |
The user ID |
|
| object | links |
URLs to retrieve user information |
|
| string | self |
The link to use to retrieve the user information |
|
| string | name |
The display user name |
|
| string | message |
The message sent |
|
| string | type |
The type of message being returned Valid values: |
|
| string | id |
The internal unique id of the message |
|
| object | [items array, option 2] |
An object with the following properties. |
|
| string | from |
The integration name that sent the message. May be null. |
|
| string | message_format |
Determines how the message is treated by our server and rendered inside HipChat applications. Valid values: Defaults to |
|
| string | color |
Background color for message. Valid values: Defaults to |
|
| string | date |
The date the message was sent in ISO-8601 format. |
|
| array | mentions |
A list of mentioned users in this message. An array of the following objects. |
|
| string | mention_name |
User's @mention name |
|
| string | version |
An etag-like random version string. |
|
| integer | id |
The user ID |
|
| object | links |
URLs to retrieve user information |
|
| string | self |
The link to use to retrieve the user information |
|
| string | name |
The display user name |
|
| string | message |
The message sent |
|
| string | type |
The type of message Valid values: |
|
| string | id |
The internal unique id of the message |
|
| integer | startIndex |
The start index for this set of results. |
|
| integer | maxResults |
The maximum number of results returned. Valid length range: |
|
| object | links |
An object with the following properties. |
|
| string | self |
The URL for this resource. |
|
| string | prev |
The URL to retrieve the previous set of results. |
|
| string | next |
The URL to retrieve the next page of results. |