Attachments not listed in GET /ticket response

api get ticket response

{
        cc_emails: [],
        fwd_emails: [],
        reply_cc_emails: [],
        ticket_cc_emails: [],
        fr_escalated: false,
        spam: false,
        email_config_id: null,
        group_id: null,
        priority: 1,
        requester_id: 48026925796,
        responder_id: null,
        source: 2,
        company_id: 48000551214,
        status: 2,
        subject: '',
        association_type: null,
        to_emails: null,
        product_id: null,
        id: 3331,
        type: null,
        due_by: '2020-08-27T18:23:46Z',
        fr_due_by: '2020-08-25T18:23:46Z',
        is_escalated: false,
        description: '<div style="font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif; font-size:14px"><div style="font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif; font-size:14px"><div dir="ltr">\n' +
          '<div><br></div>\n' +
          '</div></div></div>',
        description_text: '',
        custom_fields: {
          cf_source_1: null,
          cf_table_data: 'google.com,8552003000,2019-03-01,4:00 PM Eastern Time (US & Canada),WA,$100,000,Google,very bad people.,,apple.com,8552003016,2020-04-05,06:59 AM Eastern Time (US & Canada),CO,$1,Apple,very helpful people,',
          cf_uuid: 'cd74a7a8-0b86-433c-931a-df16ad0d281d',
          cf_description_1: null,
          cf_date_of_last_fraud_call: null,
          cf_upload_file: false,
          cf_time_of_last_fraud_call: null,
          cf_state_of_occurance: null,
          cf_amount_reqeusted_paid: null,
          cf_impacted_business_name: null,
          cf_details_of_fraud_call: null,
          cf_fsm_contact_name: null,
          cf_fsm_phone_number: null,
          cf_fsm_service_location: null,
          cf_fsm_appointment_start_time: null,
          cf_reporting_entity_file_attachment_name: null,
          cf_fsm_appointment_end_time: null,
          cf_result: null,
          cf_none_of_the_above_entry: null,
          cf_fsm_customer_signature: null
        },
        created_at: '2020-08-24T18:23:46Z',
        updated_at: '2020-08-24T18:24:23Z',
        associated_tickets_count: null,
        tags: [],
        nr_due_by: null,
        nr_escalated: false
      }

no attachments are listed, but the ticket 3331 does have attachment (see pic)

Hello James,
Welcome to the Freshworks developer community! :grinning:
Could you share the code snippet where you are calling the API to view the details of a single ticket?

This is the API that is used for fetching the details of a single ticket:

 GET 'https://domain.freshdesk.com/api/v2/tickets/20'

Is this happening only for a single ticket or for all of the tickets that you are checking with? If this issue is happening for a single ticket, could you check if the size of the attachment greater than 15MB?

3 Likes