Mobile API v1

Community

Browse groups and feeds, join discussions, react and report content.

On this page

Call each function by its full path. A question mark marks an optional field.

mobile/v1/community:activityFeed

query · Arguments
{
  expectedTenantId?: string
  paginationOpts: {
    numItems: number
    cursor: string | null
    endCursor?: string | null
    id?: number
    maximumRowsRead?: number
    maximumBytesRead?: number
  }
}
Response type
Result
{
  page: Array<{
    postId: string
    groupId: string
    groupName: string
    authorId: string
    authorName: string
    isMine: boolean
    body: string
    createdAt: string
    editedAt: string | null
    reactionCount: number
    reacted: boolean
    commentCount: number
  }>
  isDone: boolean
  continueCursor: string
}

mobile/v1/community:comments

query · Arguments
{
  expectedTenantId?: string
  postId: string
  paginationOpts: {
    numItems: number
    cursor: string | null
    endCursor?: string | null
    id?: number
    maximumRowsRead?: number
    maximumBytesRead?: number
  }
}
Response type
Result
{
  page: Array<{
    commentId: string
    authorName: string
    isMine: boolean
    body: string
    removed: boolean
    createdAt: string
  }>
  isDone: boolean
  continueCursor: string
}

mobile/v1/community:createComment

mutation · Arguments
{
  expectedTenantId?: string
  clientOpId: string
  postId: string
  body: string
}
Response type
Result
{
  clientOpId: string
  replayed: boolean
  postId: string
}

mobile/v1/community:createPost

mutation · Arguments
{
  expectedTenantId?: string
  clientOpId: string
  groupId: string
  body: string
}
Response type
Result
{
  clientOpId: string
  replayed: boolean
  postId: string
  groupId: string
  body: string
  createdAt: string
}

mobile/v1/community:deletePost

mutation · Arguments
{
  expectedTenantId?: string
  clientOpId: string
  postId: string
}
Response type
Result
{
  clientOpId: string
  replayed: boolean
  postId: string
}

mobile/v1/community:editPost

mutation · Arguments
{
  expectedTenantId?: string
  clientOpId: string
  postId: string
  body: string
}
Response type
Result
{
  clientOpId: string
  replayed: boolean
  postId: string
  body: string
  editedAt: string
}

mobile/v1/community:group

query · Arguments
{
  expectedTenantId?: string
  groupId: string
}
Response type
Result
{
  groupId: string
  name: string
  description: string
  memberCount: number
  postCount: number
  visibility: "organization" | "members"
  kind: "group" | "forum"
  isMember: boolean
  role: "owner" | "member" | null
  canJoin: boolean
  canLeave: boolean
  updatedAt: string
}

mobile/v1/community:groupFeed

query · Arguments
{
  expectedTenantId?: string
  groupId: string
  paginationOpts: {
    numItems: number
    cursor: string | null
    endCursor?: string | null
    id?: number
    maximumRowsRead?: number
    maximumBytesRead?: number
  }
}
Response type
Result
{
  page: Array<{
    postId: string
    groupId: string
    authorName: string
    isMine: boolean
    body: string
    createdAt: string
    reactionCount: number
    reacted: boolean
  }>
  isDone: boolean
  continueCursor: string
}

mobile/v1/community:groups

query · Arguments
{
  expectedTenantId?: string
  paginationOpts: {
    numItems: number
    cursor: string | null
    endCursor?: string | null
    id?: number
    maximumRowsRead?: number
    maximumBytesRead?: number
  }
}
Response type
Result
{
  page: Array<{
    groupId: string
    name: string
    description: string
    memberCount: number
    postCount: number
    visibility: "organization" | "members"
    kind: "group" | "forum"
    isMember: boolean
    role: "owner" | "member" | null
    canJoin: boolean
    canLeave: boolean
    updatedAt: string
  }>
  isDone: boolean
  continueCursor: string
}

mobile/v1/community:joinGroup

mutation · Arguments
{
  expectedTenantId?: string
  clientOpId: string
  groupId: string
}
Response type
Result
{
  clientOpId: string
  replayed: boolean
  groupId: string
}

mobile/v1/community:leaveGroup

mutation · Arguments
{
  expectedTenantId?: string
  clientOpId: string
  groupId: string
}
Response type
Result
{
  clientOpId: string
  replayed: boolean
  groupId: string
}

mobile/v1/community:react

mutation · Arguments
{
  expectedTenantId?: string
  postId: string
  active: boolean
}
Response type
Result
{
  postId: string
  reacted: boolean
}

mobile/v1/community:reportContent

mutation · Arguments
{
  expectedTenantId?: string
  clientOpId: string
  targetType: "post" | "comment"
  targetId: string
  reason: string
}
Response type
Result
{
  clientOpId: string
  replayed: boolean
}

All API modules · OpenRPC 1.3.2 JSON