---
title: "Set Last.fm session key"
method: POST
path: "/api/lastfm/session-key"
tags: ["last.fm"]
---

# Set Last.fm session key

`POST /api/lastfm/session-key`

Set the Last.fm session key for the current authenticated user. This call should be made after the user is [connected to Last.fm](https://www.last.fm/api/authentication).

## Request body

- object
  - `key` string, required — The Last.fm [session key](https://www.last.fm/api/show/auth.getSession)

## Response `204`

No Content

---

[API](https://skmtc.net/koel/apis/koel-api.md) · [All operations](https://skmtc.net/koel/apis/koel-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/koel/koel-api/revisions/b8837d22df45/schema)
