Skip to content
Docs

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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}

    • scope is a comma-separated choice of read, write and account (account adds the member’s email address, profile changes and marking notifications read);
    • expiration is 1hour, 1day, 30days or never.
  5. 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.

  6. Copy the token from the page Trello shows next into this connection’s Token field.

Operational notes:

  • Requests go to https://api.trello.com/1 with Authorization: OAuth oauth_consumer_key="<API key>", oauth_token="<token>". Trello also accepts key= and token= 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 answers 401 with invalid 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.

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.