Hello @Sebastian Ocampo Welcome to the Freshworks Community. Can you please elaborate on the use case here? Are you attempting to generate a ticket on behalf of an agent, with the requester's email address being that of the agent?
Cheers!
I am using the API to create a Ticket from my website, and I create the ticket as an Agent to notify a customer about his order, so I am using the next Structure:
$ticket = Ticket::make(e
"source" => Ticket::SOURCE_OUTBOUND_EMAIL,
"responder_id" => $this->agentApiService->getCurrentAdminAgent()->getId(),
"description" => $messageDatat'body_text'],
"subject" => __('Order tracking ') . $order->getIncrementId(),
"email" => $order->getCustomerEmail(),
"priority" => Ticket::PRIORITY_LOW,
"status" => Ticket::STATUS_OPEN,
"type" => Ticket::TYPE_ORDER,
"attachments" => $this->_getAttachments(),
"custom_fields" =>t
"cf_orderid" => $orderId,
"cf_category"=> $category,
"cf_storeid" => $storeId,
]
]);
After create the ticket sucessfully I found the issue and is in The Ticket in Freshdesk appear the Agent that has the API token as the creator of the ticket, but I would like to show the Agent that create the ticket as the creator;
I hope is more clear now.