Clear Session
Clears all messages for a specific session using the session ID.
POST
/session/{session_id}/clearfetch("https://nebula-api.thirdweb.com/session/{session_id}/clear", { method: "POST", headers: { "x-secret-key": "YOUR_THIRDWEB_SECRET_KEY", },});
{ "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" }}