Type Definitions

SidechatAssetMetadata

An asset object, containing information about an image from the asset library

Type:
  • Object
Properties
NameTypeDescription
widthNumber

width of asset

heightNumber

height of asset

type"image"

undocumented

content_type"jpeg" | "png" | "gif"

file type of asset

SidechatAuthToken

A user's bearer authentication token needed for most requests

Type:
  • String

SidechatColor

Properties
NameTypeDescription
primaryString

hex code of primary color

secondaryString

hex code of secondary color

SidechatCurrentUser

The current user's information

Type:
  • Object
Properties
NameTypeDescription
idString

alphanumeric ID of current user

hashedVerifiedEmailString

verified email of current user in an unreadable hashed form

isGlobalModeratorBoolean

whether or not user is a moderator

isGlobalAdminBoolean

whether or not user is an admin

membershipsArray.<SidechatMembership>
rolesArray

undocumented

emailDomainString

domain of verified email address on account

wildcardEmailDomainString

domain of verified email address on account, preceeded by *. to support subdomains

SidechatCursorString

A cursor for paginating through post lists

Type:
  • String

SidechatDirectMessage

A single direct message

Type:
  • Object
Properties
NameTypeDescription
created_atString

time at which the message was sent

client_idString

alphanumeric ID of the device the message was sent on

obfuscatedUserIdString

obfuscated version of the sender's alphanumeric ID

textString

body text of the message

idString

alphanumeric ID of the message

chat_idString

alphanumeric ID of the thread in which the message resides

authored_by_userBoolean

whether or not the current user sent the message

type"message"

undocumented

SidechatDirectThread

A direct message thread

Type:
  • Object
Properties
NameTypeDescription
idString

alphanumeric ID of thread

group_idString

alphanumeric ID of group in which the thread exists

updated_atString

date string of when the last message in the chat was sent

post_idString

post or comment from which the thread was originally sent

post_contextString

the context of the DM thread (only "feed" is known at the moment)

accept_status"accepted"

whether or not the other user has accepted this DM

type"post" | "comment"

the type of the content from which the DM was originally sent

messagesArray.<SidechatDirectMessage>

array of direct message objects

SidechatGroup

A group object, containing metadata about a group as well as its join conditions and states. Some properties vary based on the endpoint the object came from.

Type:
  • Object
Properties
NameTypeAttributesDescription
idString

alphanumeric ID of group

nameString

human-readable name of group

analytics_nameString

name to file group under

membership_type"non_member" | "member"

whether or not current user is a member of group

colorString

group's theme color as hex code (e.g., #FFFFFF)

group_join_type"open" | "closed" | "email_domain"

basis on which group accepts new members

group_visibility"private" | "public_to_all" | "public_to_schools"

group's visibility setting

asset_library_visibility"show" | "hide"

whether or not group's asset library is visible

rolesArray<optional>

undocumented

descriptionString<optional>

description of group

icon_urlSidechatPrivateAssetURL<optional>

image URL for group icon

member_countNumber<optional>

number of users in group

should_show_leaderboardBoolean<optional>

undocumented

SidechatIcon

A conversation icon associated with a user

Type:
  • Object
Properties
NameTypeDescription
emojiString

unicode emoji character

colorString

primary hex color code

secondary_colorString

secondary hex color code

SidechatIdentity

A user's anonymous identity information

Type:
  • Object
Properties
NameTypeDescription
nameString

representation of user's name (varies across app)

posted_with_usernameBoolean

undocumented

SidechatLibraryAsset

An asset object, containing information about an image from the asset library

Type:
  • Object
Properties
NameTypeDescription
idString

alphanumeric ID of asset

created_atString

date string of asset creation time

metadataSidechatAssetMetadata

metadata associated with asset

urlSidechatPrivateAssetURL

URL string of asset's location

SidechatMembership

Representation of a group membership

Type:
  • Object
Properties
NameTypeDescription
groupIdString

alphanumeric ID of group

typeString

role of current user in group

SidechatPoll

Represents a poll with choices

Type:
  • Object
Properties
NameTypeDescription
idString

alphanumeric ID of poll

post_idString

alphanumeric ID of post to which poll is attached

choicesArray.<SidechatPollChoice>

array of poll choices

allows_view_resultsBoolean

whether or not poll results are publicly visible

view_results_countNumber

number of users who have viewed poll results

participatedBoolean

whether or not current user has voted in poll

SidechatPollChoice

Represents a poll choice

Type:
  • Object
Properties
NameTypeDescription
countNumber

number of votes for choice

textString

user-visible text of choice

selectedBoolean

whether or not current user has voted for choice

SidechatPostOrComment

A user-created post or comment, depending on the "type" prop

Type:
  • Object
Properties
NameTypeAttributesDescription
type"post" | "comment"

whether this object represents a post or a comment on a post

idString

alphanumeric ID of post or comment

authored_by_userBoolean

whether or not the post or comment was created by the current user

aliasString

post creator's name in-app

group_idString

alphanumeric ID of group

groupSidechatGroup

group in which post or comment was created

textString

text content of post or comment

created_atString

date string of post or comment creation time

vote_totalNumber

sum of upvotes and downvotes

vote_statusSidechatVoteString

current user's vote on post or comment

assetsArray.<SidechatSimpleAsset>

array of simple assets attached to post or comment

attachmentsArray

undocumented

dms_disabledBoolean

whether or not you can send a DM to creator of post

tagsArray.<String>

undocumented

identitySidechatIdentity

creator's identity information

pinnedBoolean

undocumented

is_savedBoolean

whether or not the current user has saved the post

follow_status"following" | "not_following"

whether or not the current user should recieve activity notifications for the post

destination"group"<optional>

undocumented

comment_countNumber<optional>

number of comments on post (only if type=post)

comments_disabledBoolean<optional>

whether or not you can comment on post (only if type=post)

pollSidechatPoll<optional>

poll attached to post (only if the post has a poll)

parent_post_idString<optional>

alphanumeric ID of parent post (only if type=comment)

reply_post_idString<optional>

alphanumeric ID of comment being replied to, falls back to parent_post_id (only if type=comment)

contextString<optional>

text content of comment being replied to, falls back to text (only if type=comment)

SidechatPostsAndCursor

A list of posts and the associated cursor

Type:
  • Object
Properties
NameTypeDescription
postsArray.<SidechatPostOrComment>
cursorSidechatCursorString

SidechatPrivateAssetURL

An asset URL that can only be accessed by making a request with a user's bearer token attached in the Authorization header

Type:
  • String

SidechatProfile

A user's public profile

Type:
  • Object
Properties
NameTypeDescription
idString

alphanumeric ID of user

nameString

public-facing username

conversation_iconSidechatIcon

icon associated with user

descriptionBoolean

the user bio

index_nameString

undocumented

analytics_nameString

undocumented

colorString

undocumented

share_color_startString

undocumented

share_color_endString

undocumented

group_join_type"account"

undocumented

group_visibility"public_to_all"

the profile visibility status

SidechatSimpleAsset

An asset object, containing information about an image within a post or comment

Type:
  • Object
Properties
NameTypeAttributesDescription
idString

alphanumeric ID of asset

type"image"

undocumented

content_type"jpeg" | "png" | "gif"

file type of asset

widthNumber

width of asset

heightNumber

height of asset

urlSidechatPrivateAssetURL<optional>

URL string of asset's location

SidechatVoteString

A vote on a comment or post

Type:
  • "upvote" | "downvote" | "none"