Trello connecting card attachments not matching URL in API call

Hi there I have a cards with attachments linking to other cards in the same board. When I view the cards through the UI, attachments are linked to the correct cards, however when I make the API call, the URL is not matching and seem to be pointing to cards I have previously archived. I double-checked the boardID to make sure I was using the right one. Are there any tips to resolve this issue? Thank you for your time.

:thinking: This is a bit hard to debug without more info/context.

Where are you using the boardId? Attachments should belong to cards, not boards.