AI
Create Session
POST
/sessionfetch("https://nebula-api.thirdweb.com/session", {  method: "POST",  headers: {    "x-secret-key": "<your-project-secret-key>",  },  body: {    title: "string",    context:      "{\n  chainIds: string[] | null;\n  walletAddress: string | null;\n}",  },});x-secret-keystringRequiredYour thirdweb secret key for authentication.
Example: 
YOUR_THIRDWEB_SECRET_KEYtitlestringSet a custom title for the session.
context{
  chainIds: string[] | null;
  walletAddress: string | null;
}Provide additional context information along with the message
{  "result": {    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "title": "string",    "context": {      "chain_ids": [        "1",        "137"      ],      "wallet_address": "0x..."    },    "history": [      {}    ],    "account_id": "string",    "model_name": "string",    "is_public": true,    "memory": [      {}    ],    "action": [      {}    ],    "archive_at": "2025-01-08T17:22:45.016Z",    "deleted_at": "2025-01-08T17:22:45.016Z",    "created_at": "2025-01-08T17:22:45.016Z",    "updated_at": "2025-01-08T17:22:45.016Z"  }}