# org.atgrp.listJoinRequests

List pending join requests, which the host stores privately. Approve one by writing the requester's membership record. Deny requests with 'denyJoinRequest'. Requires auth as the group.

A method (query) in the spec for Atmosphere Groups. The page: https://www.atmospheregroups.org/spec/lexicons/org-atgrp-listJoinRequests/

- Named in the spec: 13.3 Permission sets (https://www.atmospheregroups.org/spec/#permission-sets); 13.4 Methods (https://www.atmospheregroups.org/spec/#methods)
- In the spec's repository: https://tangled.org/atmospheregroups.org/spec/blob/0885261c9cd1af80e89908571f926c2d0c71771f/lexicons/org/atgrp/listJoinRequests.json
- Published under the same name: https://www.atmospheregroups.org/reference/lexicons/org-atgrp-listJoinRequests/, the same schema
- The reference host's version: fyi.opensocial.listJoinRequests, https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-listJoinRequests/

## The schema in the spec

```json
{
  "lexicon": 1,
  "id": "org.atgrp.listJoinRequests",
  "defs": {
    "main": {
      "type": "query",
      "description": "List pending join requests, which the host stores privately. Approve one by writing the requester's membership record. Deny requests with 'denyJoinRequest'. Requires auth as the group.",
      "parameters": {
        "type": "params",
        "properties": {
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 50
          },
          "cursor": {
            "type": "string"
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "requests"
          ],
          "properties": {
            "cursor": {
              "type": "string"
            },
            "requests": {
              "type": "array",
              "items": {
                "type": "ref",
                "ref": "org.atgrp.defs#joinRequest"
              }
            }
          }
        }
      },
      "errors": [
        {
          "name": "InvalidCursor"
        }
      ]
    }
  }
}
```
