GET
/
organization
/
teamspaces
/
{teamspace_id}
/
invites
/
{invite_id}
Python
from datagrid_ai import Datagrid

client = Datagrid(
    api_key="My API Key",
)
teamspace_invite = client.organization.teamspaces.invites.retrieve(
    invite_id="invite_id",
    teamspace_id="teamspace_id",
)
print(teamspace_invite.id)
{
  "id": "<string>",
  "email": "jsmith@example.com",
  "permissions": {
    "role": "admin",
    "agent_ids": [
      "<string>"
    ]
  },
  "accepted_at": "2023-11-07T05:31:56Z",
  "status": "pending"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

teamspace_id
string
required

The ID of the teamspace

invite_id
string
required

The ID of the invite

Response

200 - application/json

Invite for the user in the teamspace

Represents a invite for a user in a teamspace