galaxy bioinformatics API KEY expires?

hello, is what title says, when i generate an API KEY from galaxy, it expires? or there is any config related to api key via web interface, bioblend or galaxy API Rest?

Hi @cucharacha

Hopefully we can help!

The key is set on your User → Preferences → Manage API Key view.

Then for this part

Can you explain what is going on a bit more? Did you lose your key? Are you able to reset it? Which server are you working at? (find the URL at the very top of your web browser page)

Let’s start there, thanks! :slight_smile:

i’m trying to use galaxy via API Rest. Often API Keys expires for security reasons then need new one to continue using the API Rest. My question is that i need to generate a new api key to access galaxy?

reply your question: i’m accesing galaxy via python script (i copy paste manually api key from galaxy web interface into it)

Hi @cucharacha

This is a good question! :slight_smile: I know some websites will have hard reset limits: every X months or similar.

Galaxy API keys do not expire on any particular schedule that I am aware of.

That said, a server administrator could decide to do this, so which server you are working at might matter.

Maybe build in a check to your script to alert you if it needs to be recreated (connection fails for some reason)? These keys have been lost in the past due to technical changes but are also easy to recreate.

Let’s also get some clarification. Hi @dannon would you be able to confirm about how this works? Thank you!

Cross posted at our Dev chat here → You're invited to talk on Matrix

Hey, just following up on what @jennaj said above – API keys do not expire by default, but they can be managed and intentionally expired by either the user or an admin.

You can fetch API keys using baseauth, using the baseauth endpoint:

Note that API doc interface is available at http://<galaxy_instance>/api/docs#, and may be helpful for what it looks like you’re doing. You might also want to look at our python API library (GitHub - galaxyproject/bioblend: A Python library for interacting with the Galaxy API, which has docs at BioBlend — BioBlend 1.5.0 documentation).

2 Likes