Créer un ticket avec l'API Freshdesk

Crée un ticket. Identifiez le demandeur avec requester_id, email, phone ou unique_external_id ; un email ou phone absent de Freshdesk crée le contact.

Identifiant
freshdesk_create_ticket

L'appel

POST https://connect.reportei.com/api/tools/freshdesk_create_ticket/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json

{
  "customer_toolkit": "<connection UUID>",
  "arguments": {
    "requester_id": 1
  }
}

Votre système envoie l'id de la connexion de votre client et les arguments de la tool. Les headers sont les mêmes que pour toute l'API Connect : le token de votre produit et celui de votre client.

Paramètres

Les descriptions des paramètres suivent la documentation officielle de l'app, en anglais.

ParamètreTypeObligatoireDescription
requester_idintegerNonId of an existing contact as the requester, from List contacts.
emailstringNonEmail address of the requester. A new address creates the contact.
phonestringNonPhone number of the requester. A new number creates the contact, and without email the name becomes mandatory.
unique_external_idstringNonExternal id of the requester, the id in your own system. A new id creates the contact.
namestringNonName of the requester.
subjectstringNonSubject of the ticket.
descriptionstringNonContent of the ticket, as HTML or plain text.
statusintegerNon2 Open (the default), 3 Pending, 4 Resolved or 5 Closed. Custom statuses of the helpdesk are the choices of the status field in List ticket fields.
priorityintegerNon1 Low (the default), 2 Medium, 3 High or 4 Urgent.Valeurs : 1, 2, 3, 4
sourceintegerNonChannel of the ticket: 1 Email, 2 Portal (the default), 3 Phone, 7 Chat, 9 Feedback widget or 10 Outbound email.Valeurs : 1, 2, 3, 7, 9, 10
typestringNonTicket type, one of the choices of the ticket_type field in List ticket fields, such as Question or Incident.
responder_idintegerNonId of the agent to assign the ticket to, from the choices of the agent field in List ticket fields.
group_idintegerNonId of the group to assign the ticket to, from the choices of the group field in List ticket fields.
product_idintegerNonId of the product of the ticket, from the choices of the product field in List ticket fields.
company_idintegerNonId of the company of the requester, from Search companies. Only with the Multiple Companies feature.
tagsarrayNonTags of the ticket.
cc_emailsarrayNonEmail addresses copied on the ticket.
due_bystringNonWhen the ticket is due to be resolved. Without it, the SLA policy of the helpdesk sets it.
fr_due_bystringNonWhen the first response is due. Without it, the SLA policy of the helpdesk sets it.
custom_fieldsobjectNonCustom field values keyed by the name of each custom field in List ticket fields, for example cf_order_number. Dates go as YYYY-MM-DD.

Connexions possibles

Votre client connecte son compte Freshdesk une seule fois, avec l'un des modes ci-dessous. La même connexion sert à toutes les tools du toolkit.

Identifiant et mot de passe

Votre client saisit les identifiants de l'app sur un écran de Connect, ou votre système les envoie avec POST /api/customer-toolkits, sans écran.

À la connexion, votre client indique aussi {domain} : l'adresse de son compte sur l'API de l'app.

La réponse

En cas de succès, Connect conserve le statut et le corps de la réponse de l'app. Les erreurs HTTP renvoyées par l'app utilisent l'objet {error, api_error} ; l'authentification ou la validation peuvent échouer avant l'exécution. Le header X-Toolkit-Execution-Id identifie l'exécution enregistrée, consultable avec GET /api/tools/executions/{uuid}.

Prête pour les agents IA

L'input de cette tool est un JSON Schema, disponible via GET /api/tools/freshdesk_create_ticket. Il devient la définition de tool de votre agent sans conversion.

Autres tools Freshdesk

Voir les 13 tools

Toolkits de la même catégorie

Voir les 100 toolkits

Voyez Connect appliqué à votre produit.

Essayez-le pendant 15 jours sans carte, ou présentez votre cas à notre équipe.