title: How to get the id of an attached Trello ticket in the API
body: <p>I want to programatically find and access trello ticket <code>B</code> that is an attachment to ticket <code>A</code>.</p>
  
  <p>So, I have the id of ticket <code>A</code>, and I retrieve the attachments by calling <code>https://developers.trello.com/reference#cardsidattachments</code></p>
  
  <p>However, in the response, if the attachment <code>B</code> is itself a Trello card, I only get the shortURL for <code>B</code>.</p>
  
  <p>How do I get the id of <code>B</code> so I can retrieve the details of <code>B</code> using <code>https://developers.trello.com/reference#cardsid</code> ?</p>
  
  <p>Is there a way to get the id of <code>B</code> from the shortURL?</p>