GET
/
auth
/
organizations
/
{organizationId}
/
organization-invitations
curl --request GET \
  --url https://api.pxyz.dev/api/v0/auth/organizations/{organizationId}/organization-invitations
{
  "status": "success",
  "data": [
    {
      "id": "<string>",
      "organizationId": "<string>",
      "roleId": "<string>",
      "email": "jsmith@example.com",
      "role": {
        "id": "<string>",
        "name": "<string>",
        "description": "<string>",
        "permissions": [
          "<string>"
        ],
        "tenantId": "<string>",
        "_count": {
          "users": 123,
          "members": 123
        },
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      },
      "acceptedAt": "2023-11-07T05:31:56Z",
      "declinedAt": "2023-11-07T05:31:56Z",
      "user": {
        "id": "<string>",
        "name": "<string>",
        "identifier": "<string>",
        "imageUri": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      },
      "publicMeta": "<any>",
      "privateMeta": "<any>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "meta": {
    "total": 123,
    "count": 123,
    "numPages": 123,
    "perPage": 123,
    "prev": "2023-11-07T05:31:56Z",
    "next": "2023-11-07T05:31:56Z"
  }
}

Path Parameters

organizationId
string
required

Query Parameters

cursor
string
perPage
string

Response

200 - application/json
status
enum<string>
required
Available options:
success,
error
data
object[]
required
meta
object
required