Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't add card to list using POST /cards

Cassidy Rush
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 24, 2025

Hi, when I try to add a new card to a list using POST /cards, I get this error:

invalid value for idList

I have confirmed I'm using "idList" (correctly capitalized) for the list. I've put everything in the query parameters. When I run GET /list/{id}, the API returns information on the list, so I know the list ID is valid.

What could be happening? 

Thanks for your help!

2 answers

1 accepted

0 votes
Answer accepted
Sunny Ape
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 24, 2025

Hello @Cassidy Rush 

The error message is simply stating a fact... you've either not providing a valid ID for the list, or you've formatted the request incorrectly and the idList parameter can't be parsed and processed.

What could be happening?

Many possible things.

You'll need to provide complete information, such as what you're making the request with, how the complete request is structured, (showing exactly how and where you're declaring the idList parameter), what testing you've done with your API test tool to validate the request etc etc etc.

Cassidy Rush
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 25, 2025

I realized Postman was sending a request body, which contained an unresolved idList variable. Once I set Body to none, the request worked.

I appreciate your encouragement to write a better question. Next time, I will.

0 votes
Rasmus Wulff Jensen
Community Champion
July 24, 2025

This is how the request Query should look:

POST: https://api.trello.com/1/cards?key=<key>&token=<token>&name=MyNewCard&pos=bottom&idList=679675740419b90861ebbc09

Sunny Ape
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 24, 2025

I was hoping to encourage the OP to learn how to structure a good question, then cross-reference the documentation, realise their mistake and enjoy the satisfaction of discovering the solution... themselves.

I'm a big believer in the adage of "Give a person a fish, and you give them food for a day. Teach them how to fish and you give them food for life"

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events