Session

@Serializable
data class Session(val token: String, val authKey: String, val shareToken: String? = null, val user: User)

Represents a session in the Umami analytics platform.

This data class maps to the session object returned by the GET /api/me endpoint.

See also

Constructors

Link copied to clipboard
constructor(token: String, authKey: String, shareToken: String? = null, user: User)

Properties

Link copied to clipboard
@SerialName(value = "authKey")
val authKey: String

The authentication key for the session.

Link copied to clipboard
@SerialName(value = "shareToken")
val shareToken: String?

The share token for the session, if it exists.

Link copied to clipboard
@SerialName(value = "token")
val token: String

The authentication token for the session.

Link copied to clipboard
@SerialName(value = "user")
val user: User

The user associated with the session.