Getting a Trello API key and token
This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.
Distilled from Trello’s own documentation on developer.atlassian.com: API Introduction, Authorizing With Trello’s REST API, App Admin Portal and Rate Limits. Retrieved 2026-10-25.
Trello’s REST API takes two values on every request: an API key, which identifies your app, and a token, which a Trello user issues to that key and which carries their access. The key may be public; the token must stay secret, because it reaches everything the user can see within the scopes it was issued with. The connection sends both in one Authorization header.
Trello also offers OAuth 2.0 for apps where users sign in themselves. This guide covers the key-and-token method only.
-
Sign in to Trello and open the app admin portal at trello.com/apps/admin. On your first visit Trello asks you to fill out the Joint Development Agreement.
-
Click New in the top right. Choose My app doesn’t use Power-Up capabilities if you only need the API (a Power-Up would also ask for an Iframe Connector URL), then fill in Name, Workspace, Email, Support Email and Author, and click Create.
-
Open the app, go to the Trello Auth tab, and select Generate a new API Key. Copy the key into this connection’s API key field.
-
Issue a token. The quickest way is the Token link to the right of the API key on the same page. To choose the scope and lifetime yourself, open this URL with your key filled in:
https://trello.com/1/authorize?expiration=30days&scope=read,write&response_type=token&key={YourAPIKey}scopeis a comma-separated choice ofread,writeandaccount(accountadds the member’s email address, profile changes and marking notifications read);expirationis1hour,1day,30daysornever.
-
Trello shows the authorization screen with your app’s name, the permissions and the duration. Sign in as the Trello user the connection should act as, check what is listed, and click Allow.
-
Copy the token from the page Trello shows next into this connection’s Token field.
Operational notes:
- Requests go to
https://api.trello.com/1withAuthorization: OAuth oauth_consumer_key="<API key>", oauth_token="<token>". Trello also acceptskey=andtoken=as query parameters, but those end up in URLs and logs. - The token acts as whoever clicked Allow. For an automation, consider a dedicated Trello account that is a member of only the boards it needs.
- A token with an expiration stops working at the end of it; issue a new one and update the connection. A user can revoke tokens any time under Applications on their account page (
https://trello.com/u/{username}/account). A revoked token answers401withinvalid token. - Rate limits are 300 requests per 10 seconds per API key and 100 per 10 seconds per token, with a stricter 100 requests per 900 seconds on
/1/members/routes.
Connect it to Publicus
Section titled “Connect it to Publicus”Open Connections under Credentials, choose Trello, and pick Trello API key and user token. Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.
See also: Trello in the catalog.
This guide is maintained by Publicus and published under CC BY 4.0.