Skip to content
Product Docs

List Invites

client.Invites.ListMine(ctx, query) (*PaginatedCursor[Invite], error)
GET/api/v2/invites

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

ParametersExpand Collapse
query InviteListMineParams
PageSize param.Field[int64]Optional
PageToken param.Field[string]Optional
ReturnsExpand Collapse
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 TimeOptional

Creation datetime

formatdate-time
UpdatedAt TimeOptional

Update datetime

formatdate-time

List Invites

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)
}
{
  "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
}
Returns Examples
{
  "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
}