Skip to main content
POST
/
conversations
Python
from datagrid_ai import Datagrid

client = Datagrid(
    api_key="My API Key",
)
conversation = client.conversations.create()
print(conversation.id)
{
  "object": "conversation",
  "id": "<string>",
  "name": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_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

Request body for creating a new conversation.

name
string | null

Name for the conversation.

Response

200 - application/json

Created conversation

The conversation object represents a conversation with an AI agent.

object
enum<string>
required

The object type, which is always conversation.

Available options:
conversation
id
string
required

The conversation identifier, which can be referenced in the API endpoints.

created_at
string<date-time>
required

The ISO string for when the conversation was created.

updated_at
string<date-time>
required

The ISO string for when the conversation was last updated.

name
string

The name of the conversation.

I