Create Session

Create a new chat session.

POST /session

Request Body:

{
"title": "My DeFi Research", // Optional: Custom session title
"is_public": true, // Optional: Make session publicly accessible
"context_filter": { // Optional: Filter data sources
"chain_ids": [1],
"contract_addresses": ["0x..."]
}
}

Example curl:

curl -X POST https://nebula-api.thirdweb.com/session \
-H "Content-Type: application/json" \
-H "x-secret-key: YOUR_THIRDWEB_SECRET_KEY" \
-d '{
"title": "My DeFi Research",
"is_public": true,
"context_filter": {
"chain_ids": [1]
}
}'