Skip to content
Skip to Content
Coder Docs

Get organizations by user

GET
/api/v2/users/{user}/organizations

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

user*string

User ID, name, or me

Response Body

OK

application/json
  1. response
[index: integer]?

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/users/{user}/organizations" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
[  {    "created_at": "2019-08-24T14:15:22Z",    "default_org_member_roles": [      "string"    ],    "description": "string",    "display_name": "string",    "icon": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "is_default": true,    "name": "string",    "updated_at": "2019-08-24T14:15:22Z"  }]