Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25517

How do I get all teams a user has already joined?

$
0
0

Hi,

You can use a GET to /api/v3/teams/all

don't forget to put the token in the header like this Authorization: Bearer Token

This request will return you a json like this :

{
	"team_id": {
		"id": "team_id",
		"create_at": 1465376566524,
		"update_at": 1465376566524,
		"delete_at": 0,
		"display_name": "Test",
		"name": "test",
		"email": "",
		"type": "O",
		"company_name": "",
		"allowed_domains": "",
		"invite_id": "",
		"allow_open_invite": false
	},
        "team_id2": {
		"id": "team_id2",
		"create_at": 1465376566524,
		"update_at": 1465376566524,
		"delete_at": 0,
		"display_name": "Test2",
		"name": "test2",
		"email": "",
		"type": "O",
		"company_name": "",
		"allowed_domains": "",
		"invite_id": "",
		"allow_open_invite": false
	}
}

Viewing all articles
Browse latest Browse all 25517

Trending Articles