Create Session

Creates a new session.

Headers

Body

Request

POST
/session
fetch("https://nebula-api.thirdweb.com/session", {
method: "POST",
headers: {
"x-secret-key": "YOUR_THIRDWEB_SECRET_KEY",
},
body: {
execute_config: {
mode: "client",
signer_wallet_address:
"0xc3F2b2a12Eba0f5989cD75B2964E31D56603a2cE",
},
},
});

Response

{
"result": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"account_id": "string",
"model_name": "string",
"is_public": true,
"execute_config": {
"mode": "client",
"signer_wallet_address": "string",
"engine_url": "string",
"engine_authorization_token": "string",
"engine_backend_wallet_address": "string",
"smart_account_address": "string",
"smart_account_factory_address": "string",
"smart_account_session_key": "string"
},
"title": "string",
"memory": [
{}
],
"history": [
{}
],
"action": [
{}
],
"context_filter": {
"chain_ids": [
"1",
"137"
],
"contract_addresses": [
"0x..."
],
"wallet_addresses": [
"0x..."
]
},
"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"
}
}