Find attached a sample Python scripts for creating tickets with attachments using API. CreateTicket.py - Code to create the ticket with attachment GenerateBASIC.py - Please use this to generate the BASIC component used for authentication during the API call.