Getting Started


Trello provides a simple RESTful web API where each type of resource (e.g. a card, a board, or a member) has a URI that you can interact with.

For example, if you’d like to use the API to get information about the Trello Development board, you’d use the following URI:


The simplest thing you can do with a Trello resource URI is GET it. (When using REST API via HTTP, you “read” something by using the HTTP GET method).

Getting an Application Key

You can get your application key by logging into Trello, and then visiting

Your 32-character application key will be listed in the first box. For the rest of the examples, we’re going to assume that your application key is substitutewithyourapplicationkey

If you’re doing a GET request, you include your application in the query string portion of the URL. If you GET you’ll no longer get an error. Instead, you’ll get a response that looks like this:

{"id":"4d5ea62fd76aa1136000000c","name":"Trello Development","desc":"Trello board used by the Trello team to track work on Trello.  How meta!\n\nThe development of the Trello API is being tracked at\n\nThe development of Trello Mobile applications is being tracked at","closed":false,"idOrganization":"4e1452614e4b8698470000e0","url":"","prefs":{"voting":"public","permissionLevel":"public","invitations":"members","comments":"public"}}

All the responses to Trello API calls use JSON. You can make the response look prettier by running it through a javascript beautifier, which will give you something like this:

    "id": "4d5ea62fd76aa1136000000c",
    "name": "Trello Development",
    "desc": "Trello board used by the Trello team to track work on Trello.  How meta!\n\nThe development of the Trello API is being tracked at\n\nThe development of Trello Mobile applications is being tracked at",
    "closed": false,
    "idOrganization": "4e1452614e4b8698470000e0",
    "url": "",
    "prefs": {
        "voting": "public",
        "permissionLevel": "public",
        "invitations": "members",
        "comments": "public"

If you wanted to include additional information in the response, you could add additional parameters (documented here). For example, if you wanted to also get all the open lists and cards on the Trello Development board, you could GET this URL:

If you wanted to read a board of your own, you could get its id (the easiest way is to visit the board in Trello and copy the id out of the URL), and request

However, unless your board is public (like the Trello Development board), when you try to GET that URL, you’ll get a 401 unauthorized error. You can only read a private board (or card, or organization) if the API knows that you have permission to read that resource. You can tell the API that you’ve been authorized to read private data by including a token, which is given to your by a user and which allows you to read (and potentially write) things on their behalf.


  • The application key is used only to let Trello know which application is making the request; it doesn’t tell Trello who the request is being made on behalf of. For example, if you’re using your own application key, you still need to generate a token to be able to access any of your private boards.

Getting a Token from a User

Full documentation for authorizing a client can be found at Authorizing a Client, and for authorizing via OAuth can be found at Authorizing via OAuth.

You can request a token from a user by directing them to an authorization URL, like the following:

Request a token granting read-only access for 30 days (the default):

Request a token granting read-only access forever:

Request a token granting read/write access for 1 day:,write

If the user accepts your request, they’ll be directed to a page where they will be given a token (64 characters), which they can give back to your application. If you add the token to your request, like so:

... then you’ll be able to read a board that’s only visible to the user

Once you’ve gotten a token from a user, you can also make requests that give you information about the user that authorized the token, like this:

Get the member’s record:

Get the cards that a user is assigned to:

Get the open boards that a user is a member of:

Get the boards that a user has pinned to their boards menu:

Get the organizations that a user is a member of:

Of course, having a user copy and paste a token into your application isn’t very pretty. The Trello API also supports basic OAuth; you can use an OAuth library and the following URLs:

You’ll also need your application secret (used to sign your requests). That’s listed in the second box on

Using client.js

If you’re developing an application that has a web interface, you can use the Trello API client library, like so:

  <!-- ...  -->

  <!-- The client library requires jQuery  -->
  <script src=""></script>
  <script src=""></script>

  <!-- ...  -->

The un-minified, documented source of client.js is at

Documentation for using client.js is at client.js

The client library can take care of getting the authorization token from the user, and provides a wrapper around the GET, PUT, POST and DELETE HTTP methods.

Examples using the client library:

Watching Models with Webhooks

Webhooks provide a way for third party applications to keep Trello data in sync with their own servers. Webhooks can be registered to watch models, and when a change happens on one of those models, the third party is informed.

Full documentation on Webhooks can be found at Webhooks.