List current users' groups
GET
/users/me/groups
users
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://trashnothing.com/api/v1.2/users/me/groups'
Response Response Example
200 - Example 1
[
{
"country": {
"abbreviation": "CA",
"name": "Canada"
},
"group_id": 46,
"has_questions": true,
"homepage": "https://trashnothing.com/OttawaReuse",
"identifier": "OttawaReuse",
"latitude": 45.423494,
"longitude": -75.697933,
"member_count": 4838,
"membership": {
"date": "2015-01-22T17:05:50",
"questionnaire": {
"message": "This group is only for people who live in Ottawa.",
"questions": [
"Where do you live?"
]
},
"status": "pending-questions"
},
"name": "Ottawa Reuse",
"open_archives": false,
"open_membership": false,
"region": {
"abbreviation": "ON",
"name": "Ontario"
},
"timezone": "America/Toronto",
"utc_offset": -5
}
]
Request
Query Params
membership
string
optional
- subscribed: Only return groups the user is a member of.
- pending-questions: Only return groups where the user needs to respond to a new member questionnaire.
- pending: Only return groups where the user is waiting for their membership request to be approved (excludes groups which are pending-questions).
If unset, all groups the user is a member of and pending membership on will be returned.
Responses
Modified at 2022-09-11 18:59:48