---
title: SessionWebservice
slug: campaign/docs/sessionwebservice
docTags: 
createdAt: 2026-07-02T19:01:46.737Z
---

| Method       | Description                                                    |
| ------------ | -------------------------------------------------------------- |
| getLocale    | Queries the locale of a session.                               |
| getMediaType | Queries the media type of a session.                           |
| login        | Starts the login for a session in the localization version de. |
| logout       | Ends a session.                                                |
| setLocale    | Defines the locale for a session.                              |
| setMediaType | Defines the media type for a session.                          |

## Locale-based information

Some methods (mostly reporting functions) require parameters for localization. The localization version for the current session can be set active by using the [setLocale](docId\:og34El3s6Ij2jC0se2HVp) method. The default value is de for German.

## Media type

Some API methods work differently on different media types (such as EMAILor SMS). Use the [setMediaType](docId\:ElqHgIk1SYriXO5Zw18T-) method to switch between media types. Default is EMAIL.
