Skip to main content
POST
[BETA] Create workspace agent session

Authorizations

x-api-key
string
header
required

Your API key for authentication. Get your API key from the PG:AI dashboard under Settings > API Keys.

Body

application/json
title
string

Session title; defaults to Untitled if omitted

company_id
string

Optional company UUID (scoped session)

type
enum<string>

Session type; defaults to chat if missing or invalid

Available options:
document,
chat,
plan,
canvas_settings,
email,
workspace,
project

Response

Created

Response data