POST
/
organization
/
teamspaces
Python
from datagrid_ai import Datagrid

client = Datagrid(
    api_key="My API Key",
)
teamspace = client.organization.teamspaces.create(
    access="open",
    name="name",
)
print(teamspace.id)
{
  "id": "<string>",
  "name": "<string>",
  "access": "open",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

The name of the teamspace

Maximum length: 300
access
enum<string>
required

Open teamspaces allow all organization members to join without admin approval. Access for users who join this way is limited to conversations with agents in this teamspace.

Closed teamspaces require admin approval to join.

Available options:
open,
closed

Response

201 - application/json

Successfully created teamspace

id
string
required
name
string

The name of the teamspace

access
enum<string>

Open teamspaces allow all organization members to join without admin approval. Access for users who join this way is limited to conversations with agents in this teamspace.

Closed teamspaces require admin approval to join.

Available options:
open,
closed
created_at
string<date-time>

The ISO string for when the teamspace was created.