Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to pull data from Trello via API?

Alan Chen May 24, 2023

Hello, 

I'm trying to write a python script to pull data from Trello via API/sdk and then upload that data to an internal company site. 

I don't have a Trello account but my manager does and I've tried giving her instructions on how to get an API key and API token in order to do so:

  •  Login to your Trello account 
  • Go to https://trello.com/app-key and click "Power-Up Admin Portal" link
  • Under "Power-Ups and Integrations", click "New"
  • Fill out the "New Power-Up or Integration" form and click "Create." The field "Iframe connector URL (Required for Power-Up)" can be omitted
  • Click "Generate a new API key", then "Generate API key" in the modal
  • From there, the API key and Secret will be provided. Click the "Token" link, then accept the auth request by clicking "Allow"
  • An API token associated with the API key and API secret will be generated. Note: this will only be shown/shared once

I was able to create a free/dev Trello account, then created a couple boards and was able to follow those instruction above. I got the key/token and put it into my script and was able to pull that data.  

But my manager wasn't able to do so. stating, the Trello account configured for my manager does not have the option for them to create generate the API key..My manger is able to create the API token though. 

Is this something I would need to my manager to ask our Trello account manager? What are our options? 

 

1 answer

0 votes
Mutya A
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 28, 2023

Hi Alan,

Looking at the instructions you gave, it looks like you're using the old method of generating Trello API keys. You should follow these new steps to generating Trello API Key and token. 

  1. Go to Power-up Admin page: https://trello.com/power-ups/admin
  2. Create a New Power-Up by clicking the "New" button in the top right of the Power-Up admin portal.
  3. Follow the steps on Adding a New Power-Up 
  4. Once you already submitted the form to create your Power-Up, you will be taken to the API Key tab to Generate a New API key.
  5. On the same page where you found your newly generated API key, click the hyperlinked "Token" at the right of the API key.
  6. Once you click Allow you'll grant your own app (identified via your API key) access to your account and be redirected to a page that contains the API token. Here's more info on how to generate a token.

Fore more information on managing API keys and Power-Ups:
Managing your API Key 
Adding a new custom Power-up 

Hope this helps! As with your manager, they might need to request for that from their Enterprise Admins as it may be about restrictions around Enterprise tokens. If they or you have any more questions around that, please raise a ticket with us here: https://trello.com/contact  

I hope this helps, but let us know if you have any questions!
----------------
If this post helps with your query, then please consider the Accept answer or Like button to help the other users find it more quickly.

Mutya A
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 23, 2024

Hey there! 

If the above post 
helps with your query, then please consider the Accept answer or Like button to help the other users find it more quickly! Appreciate it :) 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events