Lyro

Ask Lyro to answer ticket

This API endpoint asks Lyro to answer a ticket based on the data provided. Responding can take up to 40 seconds. Currently, it only works for the first message in the ticket, which is why the request is limited to a single message.

post/lyro/tickets

Request

  • Base URL
    https://api.tidio.com
  • URL
    https://api.tidio.com/lyro/tickets
  • Auth
    API key in header X-Tidio-Openapi-Client-Id and API key in header X-Tidio-Openapi-Client-Secret

Request body

ticket_idstring ulid required

ID of the ticket

subjectstring required

Subject of the ticket

contact_emailstring email required

Email of the contact person

contact_namestring required

Name of the contact person

recipient_emailstring email required

Email of the recipient

Example request

{
  "ticket_id": "01H6XZJ88T5PMRRQC3C54WY1EJ",
  "subject": "Question about delivery",
  "contact_email": "user@tidio.com",
  "contact_name": "John Doe",
  "recipient_email": "support@tidio.com",
  "messages": [
    {
      "created_at": "2023-01-01T00:00:00+00:00",
      "message_id": "01JVRXTTZ4ACV3JZTQS8ZVKASK",
      "author_type": "contact",
      "message_type": "public",
      "attachments": [
        "image.png"
      ],
      "message_content": "Is it possible to ship the product to the USA?"
    }
  ]
}

Response

An answer to the ticket generated by Lyro or null if Lyro is not able to generate an answer.

message_contentstring nullable

Message content

Example response

{
  "message_content": "Yes, we can ship the product to the USA."
}

Changes

No recorded changes to this operation across all 1 revision of this API.