## Retrieve invite

`client.Admin.Organization.Invites.Get(ctx, inviteID) (*Invite, error)`

**get** `/organization/invites/{invite_id}`

Retrieves an invite.

### Parameters

- `inviteID string`

### Returns

- `type Invite struct{…}`

  Represents an individual `invite` to the organization.

  - `ID string`

    The identifier, which can be referenced in API endpoints

  - `CreatedAt int64`

    The Unix timestamp (in seconds) of when the invite was sent.

    `format: unixtime`

  - `Email string`

    The email address of the individual to whom the invite was sent

  - `Object OrganizationInvite`

    The object type, which is always `organization.invite`

    - `const OrganizationInviteOrganizationInvite OrganizationInvite = "organization.invite"`

  - `Projects []InviteProject`

    The projects that were granted membership upon acceptance of the invite.

    - `ID string`

      Project's public ID

    - `Role string`

      Project membership role

      - `const InviteProjectRoleMember InviteProjectRole = "member"`

      - `const InviteProjectRoleOwner InviteProjectRole = "owner"`

  - `Role InviteRole`

    `owner` or `reader`

    - `const InviteRoleOwner InviteRole = "owner"`

    - `const InviteRoleReader InviteRole = "reader"`

  - `Status InviteStatus`

    `accepted`,`expired`, or `pending`

    - `const InviteStatusAccepted InviteStatus = "accepted"`

    - `const InviteStatusExpired InviteStatus = "expired"`

    - `const InviteStatusPending InviteStatus = "pending"`

  - `AcceptedAt int64`

    The Unix timestamp (in seconds) of when the invite was accepted.

    `format: unixtime`

  - `ExpiresAt int64`

    The Unix timestamp (in seconds) of when the invite expires.

    `format: unixtime`

### Example

```go
package main

import (
  "context"
  "fmt"

  "github.com/openai/openai-go"
  "github.com/openai/openai-go/option"
)

func main() {
  client := openai.NewClient(
    option.WithAdminAPIKey("My Admin API Key"),
  )
  invite, err := client.Admin.Organization.Invites.Get(context.TODO(), "invite_id")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", invite.ID)
}
```

#### 200 — Example

```json
{
  "id": "id",
  "created_at": 0,
  "email": "email",
  "object": "organization.invite",
  "projects": [
    {
      "id": "id",
      "role": "member"
    }
  ],
  "role": "owner",
  "status": "accepted",
  "accepted_at": 0,
  "expires_at": 0
}
```
