Subtopics¶
Unless otherwise stated, endpoints are relative to https://api.groupme.com/v3/ and must include the token of the user making the call - so, for example, if an endpoint is GET /groups
, the request you make should be using the URL https://api.groupme.com/v3/groups?token=aSDFghJkl
, where aSDFghJkl
is replaced with the user's token.
URLs which include a variable, such as GET /groups/:id
, have their variables marked with a colon. So a request to that endpoint would look like https://api.groupme.com/v3/groups/1234567?token=aSDFghJkl
, where 1234567
is replaced with the group's ID, and aSDFghJkl
is replaced with the user's token.
Finally, all responses are wrapped in a response envelope of the following form:
If the request succeeds, meta.errors
will be null, and if the request fails, response
will be null.
Index¶
List the authenticated user's active subgroups under a certain parent group.
HTTP Request | |
---|---|
Parameters
The following parameters are assumed to match the behavior of groups
. More testing is needed to determine if these default values match up exactly, so take these as a best guess.
- group_id (required)
string - the ID of the parent group to get the subgroups for
- page
integer - Fetch a particular page of results. Defaults to 1.
- per_page
integer - Define page size. Defaults to 10.
Show¶
Load a specific subgroup within a parent group.
HTTP Request | |
---|---|
Parameters
- group_id (required)
string - the ID of the parent group to get the subgroup for
- subgroup_id (required)
string - the ID of the subgroup to show details of
Create¶
Create a topic. You must be an admin in the group to make this call.
HTTP Request | |
---|---|
Parameters
- group_id (required)
string - the ID of the parent group to get the subgroup for
- avatar_url
string - an Image URL for the topic processed by GroupMe's Image Service
- description
string - the description for the topic
- group_type
string - can be either "private"
(anyone can post to this topic) or "announcement"
(only admins can post to this topic)
- topic
string - the name of the new topic
Update¶
Update a topic's details
HTTP Request | |
---|---|
Parameters
- group_id (required)
string - the ID of the parent group to get the subgroup for
-
subgroup_id (required)
string - the ID of the topic you want to update
-
avatar_url
string - an Image URL for the topic processed by GroupMe's Image Service
- description
string - the description for the topic
- group_type
string - can be either "private"
(anyone can post to this topic) or "announcement"
(only admins can post to this topic)
- topic
string - the name of the new topic
- like icon
object - The GroupMe powerup emoji to set as the group's like icon. See the emoji documentation for more information on what these values mean.
Delete¶
Delete a topic
HTTP Request | |
---|---|
Parameters
- group_id (required)
string - the ID of the parent group to get the subgroup for
-
subgroup_id (required)
string - the ID of the topic you want to update
HTTP Response | |
---|---|
Mute/Unmute a specific Topic¶
Silence general notifications for the main chat in a group, as well as all of the subtopics. This does not silence @mentions, replies, or reaction notifications for your own messages.
Both calls return your member object for the group.
Parameters
-
duration (required)
string - The length of time (in minutes) you want notifications to be silent for. To silence notifications until you enable them again, use
null
.
HTTP Request (To unmute) | |
---|---|