What is the difference between 'trello.com' and 'api.trello.com' from the API perspective?



So lately I've been trying to shoot up my little tool with the API, but I've run into some obstacles.

First I found a tutorial which seemly is outdated and I can't find that page again, maybe it was shut down I am so confused I don't even know.

So to point out the problem, I've tried using simply the 'https://trello.com/1/ ... base as the api and I could get card details without any problem but I've run into obstacles if I tried to update a card's details with PUT. I had the correct permission and authentication, the fact that I could get information from a card could indicate that.

Anyways, I tried to follow the new? api documentation but I saw that the base for the api url had changed to 'https://api.trello.com/1/' and then I can't make it work again.

After the authorization I get a token with the same length, I use everything the same way (with checking the new? api documentation constantly) but it just not works. The results are different, if I use my api key in the url then it says invalid token, if I don't it says unauthorized ...

If any of this make sense for someone, can you help me point to a direction where I can smash my head into a wall and realize I'm a retarded?
Or if anything happened with the API lately and it's just a momentarily thing (which i doubt tho) and that causes these problems.

If needed, I will provide detailed urls and messages, but using the examples from the api doc and 'Trying out' stuff failing as well.


Thank you very much.

2 answers

2 accepted

0 votes
Accepted answer

https://trello.com/1 is still working perfectly fine, and I haven't heard anything from Trello about any changes there. It's true that the new documentation has some mentions of api.trello.com but most of the examples are https://trello.com. The documentation was released recently and seems to have a few bugs.

I'm certain your problem arises from elsewhere. I would go back to using trello.com and making sure that the PUT request has a valid payload.

If you give me more details about your requests and responses I may be able to help.

Thank you Oscar, I will put everything under knife again tomorrow and try to focus on getting the https://trello.com/1 work with PUT.

0 votes
Accepted answer

So I tried to do it again with the old 'api'-less url and here are the results:



in the request body I put the followings:


For this setup I get "Invalid key", if I remove the key from the list it stills the same.

If I'm not using the request body and use the following url:

Result: "Invalid key"

The key/token has to be valid since I got through the authorization and got token data from a user and could get a card description.

Do you have any idea what is wrong with my urls or data?



Another try with mixed order of parameters in the url:

Try this instead:

Issue a PUT request to


with payload:

{ "value": "some_text" }

and a header with:

 Content-Type: application/json

If this still returns Invalid key, it's most likely because the format of the key is wrong.

Make sure you're not reversing the key and the token. The API key is 32 hexadecimal characters and the token is 64 hexadecimal characters.

I've seen this statement in which the token is longer than the API key, but for me they are the same length.

I am getting the key from the user through this url:


After the user clicks on Allow, a screen with 32 bit hex token appears in which it says:

You have granted access to your Trello information.
To complete the process, please give this verification code:

 (the token is useless now)

And as I've said earlier getting card/member information isn't a problem at all with said token.

Also I tried the PUT request as you've suggested and the result is:

invalid token

You need to make sure your authorization response is a token, not a verification code:


Wonderful, it seems I somehow had in the authorization url the 'callback_method=postMessage' which I can see now why it caused the problem.

After deleting said parameter I got the 'Please give ... token' instead of verification.

Thank you for your help and sorry for this nonsense.


The card update works flawlessly.

Great! Glad we could figure it out.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 04, 2019 in Trello

My Love of Trello Power-Ups

Hard to believe Trello has 100+ power-ups (known as apps for other Atlassian products) to choose from, enabling us collaborate with teams and organize our work and personal lives more efficientl...

1,195 views 18 16
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you