# dev.knotless.getOrg

> Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk)

✓ This is the authoritative definition for this NSID.

## Description

An organization's members on knotless.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.getOrg)
- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.getOrg/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.getOrg/examples)

## Definitions

### `dev.knotless.getOrg`

**Type**: `query`

The accounts an organization (any account keeping a dev.knotless.org record) invited, as the appview has indexed its records. To anyone, those who are members in public: named by a dev.knotless.orgMember record in its public records, taken in, and keeping a public dev.knotless.orgAcceptance record naming it. Optional authentication: to the organization itself and to its members, its invitations and hidden members too, from its space; to an account it invited, its own entry.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (at-identifier) | Yes | The organization, by DID or handle. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `gateway` | `string` (did) | No | The gateway its public dev.knotless.org record names, which members join and leave through, and admins change its members through. |
| `inside` | `boolean` | Yes | Whether the asker sees its invitations and hidden members: it is the organization, or one of its members. |
| `members` | `array` | Yes | The first invited first: to an asker inside, every account it invited; to anyone else, its members in public. |
| `org` | `ref` → `dev.knotless.defs#actorView` | Yes |  |
| `organization` | `boolean` | Yes | Whether the account is an organization: it keeps a public dev.knotless.org record. |

#### Errors

- **ProfileNotFound**: No account by that DID or handle.

### `dev.knotless.getOrg#memberView`

**Type**: `object`

An account an organization invited, and where it stands.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `ref` → `dev.knotless.defs#actorView` | Yes |  |
| `expiresAt` | `string` (datetime) | No | When the invitation lapses, when its record says. |
| `invitedAt` | `string` (datetime) | Yes |  |
| `joinedAt` | `string` (datetime) | No | When the organization took it in. |
| `role` | `string` | Yes | What it may do: an admin also invites and removes members. |
| `standing` | `string` | Yes | Invited and not yet a member; invited, and the invitation lapsed; a member anyone may see; or a member only the organization's members see. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The accounts an organization (any account keeping a dev.knotless.org record) invited, as the appview has indexed its records. To anyone, those who are members in public: named by a dev.knotless.orgMember record in its public records, taken in, and keeping a public dev.knotless.orgAcceptance record naming it. Optional authentication: to the organization itself and to its members, its invitations and hidden members too, from its space; to an account it invited, its own entry.",
      "errors": [
        {
          "description": "No account by that DID or handle.",
          "name": "ProfileNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "gateway": {
              "description": "The gateway its public dev.knotless.org record names, which members join and leave through, and admins change its members through.",
              "format": "did",
              "type": "string"
            },
            "inside": {
              "description": "Whether the asker sees its invitations and hidden members: it is the organization, or one of its members.",
              "type": "boolean"
            },
            "members": {
              "description": "The first invited first: to an asker inside, every account it invited; to anyone else, its members in public.",
              "items": {
                "ref": "#memberView",
                "type": "ref"
              },
              "type": "array"
            },
            "org": {
              "ref": "dev.knotless.defs#actorView",
              "type": "ref"
            },
            "organization": {
              "description": "Whether the account is an organization: it keeps a public dev.knotless.org record.",
              "type": "boolean"
            }
          },
          "required": [
            "org",
            "organization",
            "inside",
            "members"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "actor": {
            "description": "The organization, by DID or handle.",
            "format": "at-identifier",
            "type": "string"
          }
        },
        "required": [
          "actor"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "memberView": {
      "description": "An account an organization invited, and where it stands.",
      "properties": {
        "actor": {
          "ref": "dev.knotless.defs#actorView",
          "type": "ref"
        },
        "expiresAt": {
          "description": "When the invitation lapses, when its record says.",
          "format": "datetime",
          "type": "string"
        },
        "invitedAt": {
          "format": "datetime",
          "type": "string"
        },
        "joinedAt": {
          "description": "When the organization took it in.",
          "format": "datetime",
          "type": "string"
        },
        "role": {
          "description": "What it may do: an admin also invites and removes members.",
          "knownValues": [
            "admin",
            "member"
          ],
          "type": "string"
        },
        "standing": {
          "description": "Invited and not yet a member; invited, and the invitation lapsed; a member anyone may see; or a member only the organization's members see.",
          "knownValues": [
            "invited",
            "lapsed",
            "public",
            "hidden"
          ],
          "type": "string"
        }
      },
      "required": [
        "actor",
        "role",
        "standing",
        "invitedAt"
      ],
      "type": "object"
    }
  },
  "description": "An organization's members on knotless.",
  "id": "dev.knotless.getOrg",
  "lexicon": 1
}
```
