---
title: "The organizations this user is in, with their role, by login"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.gitpando.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Pando API › orgs

`GET /v1/user/orgs`

## Authentication

Requires one of the following:

- `credential`, http, header `Authorization`
- `session`, apiKey, in cookie

## Code samples

### cURL

```curl
curl --request GET \
  --url https://app.gitpando.com/v1/user/orgs \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://app.gitpando.com/v1/user/orgs';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://app.gitpando.com/v1/user/orgs"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "orgs": [
    {
      "type": "org",
      "login": "string",
      "name": "string",
      "description": "string",
      "website": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "role": "owner",
      "members": 0
    }
  ]
}
```

- `listMyOrgs.response.200.orgs` (array<object>, required)
  - `listMyOrgs.response.200.orgs.type` (string, required)
    - one of `"org"`
  - `listMyOrgs.response.200.orgs.login` (string, required) — A user's login, which is their namespace, or an organization's (one space for both): 1 to 39 lower-case letters, digits and single hyphens, no hyphen at either end (input in any case is lowered). Reserved, because a namespace is the first URL segment: v1, healthz, login, logout, settings, assets, fonts, new, api, app, static, orgs, users, docs, install. A login made at sign-in comes from the email's local part, skipping reserved and taken names (`base`, `base-2`, ... `base-999`, then a random tail).
    - pattern `^[a-z0-9](?:[a-z0-9]|-(?=[a-z0-9])){0,38}$`
  - `listMyOrgs.response.200.orgs.name` (string | null, required) — The display name ("Plannotator").
  - `listMyOrgs.response.200.orgs.description` (string | null, required)
  - `listMyOrgs.response.200.orgs.website` (string | null, required) — An https URL.
  - `listMyOrgs.response.200.orgs.created_at` (string, required)
    - format `date-time`
  - `listMyOrgs.response.200.orgs.role` (one of, required) — The caller's role in it; null when not in it.
    - one of: [MemberRole](/api/schemas/MemberRole/), `null`
  - `listMyOrgs.response.200.orgs.members` (integer | null, required) — How many people are in it; null for someone who is not in it.


Source: https://docs.gitpando.com/api/orgs/listMyOrgs/index.md
