Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Getting card description via Node JS

I've been trying to fetch the only description of a card using Node JS.

`The text below is from Trello REST API Get Card

const fetch = require('node-fetch');

fetch('{id}?key=0471642aefef5fa1fa76530ce1ba4c85&token=9eb76d9a9d02b8dd40c2f3e5df18556c831d4d1fadbe2c45f8310e6c93b5c548', {
  method: 'GET',
  headers: {
    'Accept': 'application/json'
  .then(response => {
      `Response: ${response.status} ${response.statusText}`
    return response.text();
  .then(text => console.log(text))
  .catch(err => console.error(err));

I've been trying to only get the response to be the card description.

Yes, I've entered "fetch('{id}?key=0471642aefef5fa1fa76530ce1ba4c85&token=9eb76d9a9d02b8dd40c2f3e5df18556c831d4d1fadbe2c45f8310e6c93b5c548'" part correctly. I get the full json file. I am trying to only output the description. 

Tried:  `Response: ${response.desc}` and so on. No outcome.



1 answer

0 votes
Iain Dooley Community Leader Sep 06, 2020

@TrelloXinterface so you get no status, and no error? Generally you should be able to at least get an HTTP error when posting to the API if something's not right.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Trello

📹 What is Trello?

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Trello...

759 views 13 30
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you