[Feature]: API Key support #604

Closed
opened 2026-02-04 20:32:03 +03:00 by OVERLORD · 9 comments
Owner

Originally created by @JustSamuel on GitHub (Nov 15, 2024).

Is this a feature for the backend or frontend?

Backend

What would you like?

Add API keys to PLANKA. These API keys should be an alternative method to username password authentication. Most suitable for service accounts.

The following features would be nice

  • Request an API key for an account
  • Cycle an API key for an account
  • Remove the API key for an account

An overview of accounts with an API key for admins and management.

  • View users with an API key
  • request an api key for a user
  • cycle an api key for a user
  • remove an api key for user

Why is this needed?

Currently, it is only possible to programmatically authenticate using a username and password. (Or an OIDC hack-ish method which allows for an API key)

This makes it more involved to create add-on software.

Currently, I have a project which enables emailing to a planka board. However, to get an API key I added a long-lived session token in the database manually, by signing it myself.

This is quite involved and will most likely mean that others are unable to use the service.

Other information

No response

Originally created by @JustSamuel on GitHub (Nov 15, 2024). ### Is this a feature for the backend or frontend? Backend ### What would you like? Add API keys to PLANKA. These API keys should be an alternative method to username password authentication. Most suitable for service accounts. The following features would be nice - [x] Request an API key for an account - [x] Cycle an API key for an account - [x] Remove the API key for an account An overview of accounts with an API key for admins and management. - [x] View users with an API key - [x] request an api key for a user - [x] cycle an api key for a user - [x] remove an api key for user ### Why is this needed? Currently, it is only possible to programmatically authenticate using a username and password. (Or an OIDC hack-ish method which allows for an API key) This makes it more involved to create add-on software. Currently, [I have a project which enables emailing to a planka board](https://github.com/GEWIS/plankapi). However, to get an API key I added a long-lived session token in the database manually, by signing it myself. This is quite involved and will most likely mean that others are unable to use the service. ### Other information _No response_
OVERLORD added the enhancement label 2026-02-04 20:32:03 +03:00
Author
Owner

@JustSamuel commented on GitHub (Nov 15, 2024):

@meltyshev I would be willing to work on this myself, but with the possibility of v2 arriving, I am unsure how useful this would be at this moment.

@JustSamuel commented on GitHub (Nov 15, 2024): @meltyshev I would be willing to work on this myself, but with the possibility of v2 arriving, I am unsure how useful this would be at this moment.
Author
Owner

@meltyshev commented on GitHub (Nov 16, 2024):

Hi! This would be very useful, and I appreciate your willingness to implement it! You're right that waiting for version 2 might be better, as it will make migrating the current changes easier. On the other hand, implementing it now wouldn’t be a significant problem either.

@meltyshev commented on GitHub (Nov 16, 2024): Hi! This would be very useful, and I appreciate your willingness to implement it! You're right that waiting for version 2 might be better, as it will make migrating the current changes easier. On the other hand, implementing it now wouldn’t be a significant problem either.
Author
Owner

@madduck commented on GitHub (Dec 1, 2024):

Yes please, offering my time to help and debug.

@madduck commented on GitHub (Dec 1, 2024): Yes please, offering my time to help and debug.
Author
Owner

@smartynov commented on GitHub (Mar 6, 2025):

The API keys feature is definitely needed. I'm developing a Telegram bot for easy Planka integration (creating cards from chat messages) and have encountered a serious issue: my Planka installation is behind Cloudflare, and using the plankapy library results in a "Blocked by Browser Integrity Check" error due to Cloudflare's security filters (default settings).

Image

Introducing API keys would make integrations both easier and more secure.

@smartynov commented on GitHub (Mar 6, 2025): The API keys feature is definitely needed. I'm developing a [Telegram bot for easy Planka integration](https://github.com/smartynov/plankabot) (creating cards from chat messages) and have encountered a serious issue: my Planka installation is behind Cloudflare, and using the plankapy library results in a "Blocked by Browser Integrity Check" error due to Cloudflare's security filters (default settings). ![Image](https://github.com/user-attachments/assets/97f0f462-a89b-4ec4-8913-30f15c3436e4) Introducing API keys would make integrations both easier and more secure.
Author
Owner

@kstan79 commented on GitHub (Jul 8, 2025):

+1

@kstan79 commented on GitHub (Jul 8, 2025): +1
Author
Owner

@JustSamuel commented on GitHub (Jul 8, 2025):

@madduck @smartynov @kstan79 (and others interested) I am planning to work fix this issue in this and the coming months. (Note I am not affiliated with Planka, just a OS developer.)

@JustSamuel commented on GitHub (Jul 8, 2025): @madduck @smartynov @kstan79 (and others interested) I am planning to work fix this issue in this and the coming months. (Note I am not affiliated with Planka, just a OS developer.)
Author
Owner

@rob-khan commented on GitHub (Oct 31, 2025):

Hey! Just wanted to add my voice here - we really need API key support.

We're trying to integrate Planka with AI tools like Claude Code to automate our task management, but the
username/password authentication makes it really difficult.

What we're hoping to do:

  • Sync tasks between Planka and our local markdown files automatically
  • Let AI analyze our boards and help prioritize work
  • Pull tasks from different boards to generate daily todo lists
  • Generate basic progress reports

The main issue with username/password auth is that it's just not secure to store credentials in automation tools,
plus there's no way to limit what the API can access. Also makes things complicated when using SSO.

I know other tools like Trello and Linear have had this for years, so it would be great to see Planka catch up
here. The use cases for AI integrations are growing fast.

Saw that @JustSamuel is working on this - thank you! Happy to help test when it's ready.

@rob-khan commented on GitHub (Oct 31, 2025): Hey! Just wanted to add my voice here - we really need API key support. We're trying to integrate Planka with AI tools like Claude Code to automate our task management, but the username/password authentication makes it really difficult. What we're hoping to do: - Sync tasks between Planka and our local markdown files automatically - Let AI analyze our boards and help prioritize work - Pull tasks from different boards to generate daily todo lists - Generate basic progress reports The main issue with username/password auth is that it's just not secure to store credentials in automation tools, plus there's no way to limit what the API can access. Also makes things complicated when using SSO. I know other tools like Trello and Linear have had this for years, so it would be great to see Planka catch up here. The use cases for AI integrations are growing fast. Saw that @JustSamuel is working on this - thank you! Happy to help test when it's ready.
Author
Owner

@JustSamuel commented on GitHub (Oct 31, 2025):

I got around to implementing a first version of the required client code, could you please give it a spin?

@kstan79 @rob-khan @smartynov @madduck

https://github.com/plankanban/planka/pull/1254

@JustSamuel commented on GitHub (Oct 31, 2025): I got around to implementing a first version of the required client code, could you please give it a spin? @kstan79 @rob-khan @smartynov @madduck https://github.com/plankanban/planka/pull/1254
Author
Owner

@rob-khan commented on GitHub (Nov 5, 2025):

Thanks a lot for the quick update, @JustSamuel — that’s great news!
I’ll forward this to the person responsible for setting up our test environment so they can run the initial tests. Once it’s ready, I’ll also test it myself and share feedback.
Really appreciate your work on this — looking forward to seeing how it performs!

@rob-khan commented on GitHub (Nov 5, 2025): Thanks a lot for the quick update, @JustSamuel — that’s great news! I’ll forward this to the person responsible for setting up our test environment so they can run the initial tests. Once it’s ready, I’ll also test it myself and share feedback. Really appreciate your work on this — looking forward to seeing how it performs!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#604