Get your Trello API key from the app admin portal: open your app, choose Trello Auth, then Generate a new API Key. Next, authorize a user token; the key identifies the app, while the token grants access to the Trello account that approves it. For a first connection, I'd choose scope=read and expiration=1day, because checking that the right boards appear needs no permission to change them.
The steps below show how to set up access, verify it with a read request and revoke it when you're done. If you only need a one-off board download, exporting the board as JSON is simpler and requires no API credentials.
If a service already has a Connect Trello button, start with its consent flow. Create your own app for a script or for a tool that specifically asks you to supply an API key and user token.
Before starting, you need a Trello account and a Workspace whose app settings you can manage. If you're new to Trello, create your account, then create a Workspace. For an existing team app, ask its Workspace admin for access.
Which credential do you need?
A connection asking for a Trello API key and token needs two different values. Your Trello password and the tokens created through the separate Atlassian account API-token workflow don't substitute for that pair.
| Value | What it does | How to handle it |
|---|---|---|
| App API key | Identifies the application. A key alone doesn't grant access to a user's Trello data. | Public by design; copy it from the app's Trello Auth tab. |
| User token | Lets the app act on behalf of the person who authorizes it, within the approved scopes and that person's access. | Keep private. Choose the necessary permissions and expiry, and revoke it if exposed. |
| Application secret | Signs OAuth 1.0 requests; also verifies incoming Trello Auth webhook signatures. | Keep private. It isn't the user token and isn't needed for the simple read request below. |
Atlassian distinguishes the public application key from the private user token. The secret has its own role in OAuth 1.0 signing and Trello Auth webhook verification; don't paste it into a field asking for a token.
1. Open or create an app, then generate its key
Sign in to the Trello account that can manage the application. By default, admins of the owning Workspace manage its apps; a Workspace admin can also add a member as an app collaborator. Those app-management rights control settings, not whose boards a user token can read.
- Open the Trello app admin portal. Select the existing app you need. For a new app, choose New. On a first visit, Trello may prompt you to complete the Joint Development Agreement.
- For a script or API-only connection, choose My app doesn't use Power-Up capabilities. This branch needs no Iframe Connector URL. Choose the capabilities branch only if you are building a Power-Up interface.
- For a new app, enter its Name and owning Workspace, the Email and Support Email contacts, and the Author shown on authorization screens. Use a recognizable project name, such as
Board Reporting, so its grant is easy to identify later. Complete the required fields and select Create. - In the app, open Trello Auth. If there isn't a key yet, select Generate a new API Key. Copy the app's API key.
These are the current branches in Atlassian's app-management instructions. Older tutorials call the portal “Power-Ups Admin” and the tab “API Key.” For an API-only app, follow the no-capabilities option rather than entering a placeholder iframe URL. If an existing app is missing from the portal, ask its Workspace admin to add you as a collaborator instead of creating a replacement for a working integration.
2. Authorize a read-only user token
The Token link beside the key opens Trello's consent flow. To choose a short, read-only grant explicitly, use the authorization address below, replacing YOUR_API_KEY with your app key. The address contains the public key; it does not contain your private token.
https://trello.com/1/authorize?expiration=1day&scope=read&response_type=token&key=YOUR_API_KEY
- Open the completed address in a browser where you're signed in to the intended Trello account.
- Check the account, application identity, requested access and duration on the consent screen. If the account is wrong, stop and sign in to the correct one before authorizing.
- Select Allow only when those details match the connection you want.
- With
response_type=tokenand no callback parameters, Trello displays the full user token in the browser. Copy it into your private credential store or the hidden prompt in the next step. Keep the token page out of shared screenshots and recordings.
This is the official self-token flow. When a service asks for a key and token, give it the key and this user token through its credential settings. Check its requested access before sharing the token: the service can use the grant on your behalf.
Choose permissions and lifetime deliberately
| Scope | What it permits | Needed for the boards read? |
|---|---|---|
read | Read boards, organizations and similar resources on the user's behalf. | Yes. |
write | Write those resources within the user's permissions. | No. Add it only for an integration that must change data. |
account | Read the authorizing member's email, write member information and mark notifications read. It does not reveal other members' email addresses. | No. |
The documented expiry values are 1hour, 1day, 30days and never. For an ongoing integration, choose its lifetime after deciding who owns it and how access will be withdrawn. An indefinite token still needs to be revoked when the connection ends.
A Trello Auth read token is not limited to one selected board. The documented scopes control kinds of action, not a board allowlist. Pointing a script at one board narrows what the script requests; it doesn't narrow what a leaked token could access. App ownership by a Workspace doesn't turn a personal token into an all-members Workspace credential either.

3. Make a read request without putting the token in your command
Start with GET /1/members/me/boards?fields=name,url. This lists boards for the token owner and requests their names and URLs. Trello returns each board's ID implicitly, as its first boards request explains.
The following script needs Bash and curl—for example, a Mac or Linux terminal, or Bash on Windows. Save it as trello-read.sh, then run bash trello-read.sh. Paste the real key and token only when prompted; token input stays hidden.
#!/usr/bin/env bash
set +x
unset trello_key trello_token
trap 'unset trello_key trello_token' EXIT
read -r -p 'Trello API key: ' trello_key || exit 1
read -r -s -p 'Trello user token (hidden): ' trello_token || exit 1
builtin printf '\n' >&2
[[ -n "$trello_key" && -n "$trello_token" ]] || exit 1
builtin printf 'Authorization: OAuth oauth_consumer_key="%s", oauth_token="%s"\n' \
"$trello_key" "$trello_token" |
curl -q --silent --show-error --include --max-time 20 \
--header @- \
'https://api.trello.com/1/members/me/boards?fields=name,url'
Trello accepts this OAuth key-and-token Authorization header. The script passes it through standard input using curl's --header @- option, so the secret isn't written into the script, shell command history or curl's argument list. It disables shell tracing and curl's default config file, and doesn't follow redirects.
A header alone doesn't provide those protections: typing a literal token into curl -H 'Authorization: …' still puts that token in the command. Use a trusted terminal and avoid request-header logging, terminal recording or debugging that captures credentials. The token still exists in process memory and the request sent to Trello.
If you use an HTTP client instead, set the method to GET, use the same boards URL, and set an Authorization header in this format, with the two values supplied through the client's private credential facility:
OAuth oauth_consumer_key="YOUR_API_KEY", oauth_token="YOUR_USER_TOKEN"
Keep the OAuth prefix for this Trello Auth pair. Don't change it to Bearer; that prefix belongs to the separate OAuth 2.0 access-token flow.
What a successful response looks like
Look for HTTP 200 and a JSON array containing board objects with id, name and url. Open one returned board and check it belongs to the account you meant to authorize. In this request me identifies the token owner. If the request succeeds but the board is missing, check the authorizing account and its board membership before creating another token.
An empty array, [], is a successful response with no boards in that result; it isn't an invalid-token error. Check whether the expected board is visible when signed in as the same member. If the boards belong to a different account, revoke that account's unwanted grant and authorize the intended member. The Members reference defines the result as an array of Board objects.
This request reads data. It doesn't create, move or delete cards. Keep that read check as your first step even if the eventual integration will need write access.

If the key or token doesn't work
Read the HTTP status and response message together before changing permissions. Atlassian's status-code definitions distinguish bad fields, invalid credentials and forbidden operations; a new, broader token isn't a fix for every failure.
| What you see | What to check next |
|---|---|
| App isn't listed; no key-generation option | Check the signed-in account and the app's owning Workspace. Ask its admin for app-collaborator access, then open Trello Auth. |
| Authorization returns 400 and says to contact the Enterprise admin | A managed-member policy can block new API tokens. Ask that Enterprise admin about the integration; don't work around the restriction. |
401, including invalid token | Check for a missing, expired or revoked user token, accidental spaces, and the correct API key. Use the intended app's key and a token authorized for that app. Reauthorize if the grant has ended. |
| 401 on a later write request | A read-only token cannot perform writes. Check both the grant and the member's permissions before authorizing the specific access the integration needs. |
| 403 or 404 on a particular resource | Check the operation, resource ID and whether that member can access the resource. 403 can be an operation limit; 404 can be an invalid route or a missing resource. Test the basic boards read before changing code or access. |
| Redirect blocked after consent | For an app using return_url, check that its origin is registered under Trello Auth. The direct token-display URL above uses no callback. |
| 429 | Stop immediate retries. Read the error message and rate-limit headers, then reduce request frequency. Reissuing tokens doesn't solve the application's request pattern. |
The Enterprise case is documented in Trello's token-management guidance. For a callback failure, the allowed-origins check applies to the return URL after consent; it isn't a setting you need to loosen for the terminal read.
4. Revoke access when the connection ends
- Open your Trello account settings, or use your avatar → Settings.
- Find Applications. Match the application's name, approved access and expiry to the grant you want to stop.
- Select Revoke beside that application grant.
- To confirm, repeat the same read request with the old token. A revoked token returns 401 with
invalid token.
Revoking the grant ends the token’s access. If a token appears in a public repository, screenshot or shared log, revoke it immediately and review the application’s grants. Create a replacement only for a connection you still use. Update its stored credential after authorization.

Before turning the first read into an ongoing integration
The general Trello Auth request limits are 300 requests per 10 seconds per API key and 100 per 10 seconds per token. The key allowance is shared across its issued tokens. Response headers report the interval, maximum and remaining count for each.
There is also a /1/members limit of 100 requests per 900 seconds. The nested /1/members/me/boards/ route is exempt from that specific cap, while the general key and token limits still apply. Plan retries around the actual response rather than treating the caps as a throughput promise.
If your script needs ongoing change notifications, use webhooks instead of repeatedly polling unchanged boards. A Trello Auth webhook is tied to its token; expiry or revocation deletes that webhook. A production callback also needs its own validation and operational setup, so keep it separate from this first credential check.
For a product where other people sign in and consent, I'd follow Atlassian's recommendation to use OAuth 2.0: it offers more granular scopes and refreshable access. Trello says that flow may not suit bots or server-to-server automation. If you're building inside a Power-Up iframe, its REST API client handles the SDK authorization workflow; a standalone API-only read needs neither that SDK nor a board interface.



