Skip to main content
Solved

Automating Sentinel Hub API Key Creation

  • January 19, 2026
  • 1 reply
  • 53 views

gaurav
Forum|alt.badge.img

I need to programmatically create API keys for Sentinel Hub, but their API doesn't provide an endpoint for this functionality. I'm considering using browser automation tools (like Selenium, Playwright, or Puppeteer) to simulate human interaction with the Sentinel Hub dashboard to create API keys automatically.

My scenario:

  • I need to create multiple API keys for different environments/projects
  • The Sentinel Hub API doesn't expose an endpoint for API key creation
  • Manual creation through the dashboard is time-consuming for our workflow

Questions:

  1. Is browser automation a viable approach for this use case, or are there significant risks/limitations I should be aware of?
  2. Are there any Terms of Service concerns with automating interactions with the Sentinel Hub dashboard?
  3. Has anyone successfully implemented a similar solution, and what tools/approaches worked best?
  4. Are there alternative approaches I should consider instead?

What I've considered:

  • Using Selenium/Playwright to automate the login and API key creation process
  • Investigating if Sentinel Hub has any unofficial APIs or upcoming features for this

Any guidance on best practices or alternative solutions would be greatly appreciated.

Best answer by williamray

Hi, thank you for the question on the topic of creating oauth clients for the Sentinel Hub APIs. Currently, there is no official support or API that can automate the generation of the client ID and client secret. The recommended process is to use the SH Dashboard to manually generate these credentials. If using the Python SDK, there are secure ways of storing these credentials in a configuration file

You can try automating the process via your internet browser, however, it is important to note that there are strict limits on the number of oauth clients a user can create: 1, basic users: 5, enterprise S users: 10 and enterprise L users have 50.

1 reply

williamray
Planeteer 🌎
Forum|alt.badge.img+5
  • Planeteer 🌎
  • Answer
  • January 20, 2026

Hi, thank you for the question on the topic of creating oauth clients for the Sentinel Hub APIs. Currently, there is no official support or API that can automate the generation of the client ID and client secret. The recommended process is to use the SH Dashboard to manually generate these credentials. If using the Python SDK, there are secure ways of storing these credentials in a configuration file

You can try automating the process via your internet browser, however, it is important to note that there are strict limits on the number of oauth clients a user can create: 1, basic users: 5, enterprise S users: 10 and enterprise L users have 50.