## List Invites

`client.Invites.ListMine(ctx, query) (*PaginatedCursor[Invite], error)`

**get** `/api/v2/invites`

List the current user's pending invitations, cursor-paginated.

### Parameters

- `query InviteListMineParams`

  - `PageSize param.Field[int64]`

  - `PageToken param.Field[string]`

### Returns

- `type Invite struct{…}`

  A pending invitation visible to the invitee.

  - `ID string`

    The invite's unique identifier.

  - `OrganizationID string`

    The organization the user is invited to.

  - `OrganizationName string`

    The organization's display name.

  - `Role string`

    The role being granted (e.g. admin, viewer).

  - `CreatedAt Time`

    Creation datetime

  - `UpdatedAt Time`

    Update datetime

### Example

```go
package main

import (
  "context"
  "fmt"

  "github.com/run-llama/llamacloud-admin-go"
  "github.com/run-llama/llamacloud-admin-go/option"
)

func main() {
  client := llamacloudadmin.NewClient(
    option.WithAPIKey("My API Key"),
  )
  page, err := client.Invites.ListMine(context.TODO(), llamacloudadmin.InviteListMineParams{

  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", page)
}
```

#### Response

```json
{
  "items": [
    {
      "id": "id",
      "organization_id": "organization_id",
      "organization_name": "organization_name",
      "role": "role",
      "created_at": "2019-12-27T18:11:19.117Z",
      "updated_at": "2019-12-27T18:11:19.117Z"
    }
  ],
  "next_page_token": "next_page_token",
  "total_size": 0
}
```
