# Get an organization

`GET /v1/orgs/{org_id}`

Requires role member or higher.

## Authentication

A session token: `Authorization: Bearer <session token>`, or the session cookie in the browser. Requires role `member` or higher.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `org_id` | path | string | yes |  |

## Responses

### 200

An organization, with the caller's role in it.

`application/json`

```json
{
  "additionalProperties": false,
  "description": "An organization, with the caller's role in it.",
  "properties": {
    "created_at": {
      "format": "date-time",
      "type": "string"
    },
    "id": {
      "pattern": "^org_[0-7][0-9a-hjkmnp-tv-z]{25}$",
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "plan": {
      "type": "string"
    },
    "role": {
      "anyOf": [
        {
          "enum": [
            "owner"
          ],
          "type": "string"
        },
        {
          "enum": [
            "admin"
          ],
          "type": "string"
        },
        {
          "enum": [
            "member"
          ],
          "type": "string"
        }
      ]
    }
  },
  "required": [
    "id",
    "name",
    "plan",
    "role",
    "created_at"
  ],
  "type": "object"
}
```

### 401

unauthorized: no valid session, or the email is not verified.

Problem type: [unauthorized](https://docs.dlogify.com/errors/unauthorized.md).

### 404

not-found: the resource does not exist, or the caller is not a member of its organization.

Problem type: [not-found](https://docs.dlogify.com/errors/not-found.md).

### 429

rate-limited: per-user management request limit.

Problem type: [rate-limited](https://docs.dlogify.com/errors/rate-limited.md).

## Example

```bash
curl -X GET "https://api.dlogify.com/v1/orgs/{org_id}" \
  -H "Authorization: Bearer $DLOGIFY_SESSION"
```

Source: https://docs.dlogify.com/api/organizations/getOrg
