# Create Ticket Reply Request Payload

> This is a subset of the full specification, limited to the `create_ticket_reply_with_comment_request` schema.
>
> You can find the full specification here: /_bundle/docs/references/@2.12/rest-api/api.intercom.io.yaml

```yaml
openapi: 3.0.1
info:
  title: Intercom API
  version: '2.12'
  description: This is a subset of the full specification, limited to the `create_ticket_reply_with_comment_request` schema. Components more than 3 `$ref` hops away are not included.
  contact:
    name: Intercom Developer Hub
    url: https://developers.intercom.com
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
servers:
  - url: https://api.intercom.io
    description: The production API server
  - url: https://api.eu.intercom.io
    description: The european API server
  - url: https://api.au.intercom.io
    description: The australian API server
security:
  - bearerAuth: []
paths: {}
components:
  schemas:
    admin_reply_ticket_request:
      title: Admin Reply on ticket
      type: object
      description: Payload of the request to reply on behalf of an admin
      properties:
        message_type:
          type: string
          description: The type of reply. Tracker tickets and back-office tickets that are not shared with the customer do not support `comment`; use `note` instead.
          enum:
            - comment
            - note
            - quick_reply
          example: comment
        type:
          type: string
          enum:
            - admin
          example: admin
        body:
          type: string
          description: The text body of the reply. Notes accept some HTML formatting. Must be present for comment and note message types.
          example: Hello there!
        admin_id:
          type: string
          description: The id of the admin who is authoring the comment.
          example: '3156780'
        created_at:
          type: integer
          description: The time the reply was created. If not provided, the current time will be used.
          example: 1590000000
        reply_options:
          title: Quick Reply Options
          type: array
          description: The quick reply options to display. Must be present for quick_reply message types.
          items:
            title: Quick Reply Option
            type: object
            properties:
              text:
                type: string
                description: The text to display in this quick reply option.
              uuid:
                type: string
                format: uuid
                description: A unique identifier for this quick reply option. This value will be available within the metadata of the comment ticket part that is created when a user clicks on this reply option.
            required:
              - text
              - uuid
        attachment_urls:
          type: array
          description: A list of image URLs that will be added as attachments. You can include up to 10 URLs.
          items:
            type: string
            format: uri
          maxItems: 10
        cross_post:
          type: boolean
          description: If set to true, the note will be cross-posted to all linked conversations. Only applicable to note message types on back-office tickets.
          example: true
      required:
        - message_type
        - type
        - admin_id
    contact_reply_ticket_email_request:
      title: Email
      type: object
      description: Payload of the request to reply on behalf of a contact using their `email`
      properties:
        email:
          type: string
          description: The email you have defined for the user.
      allOf:
        - $ref: '#/components/schemas/contact_reply_base_request'
      required:
        - email
    contact_reply_ticket_intercom_user_id_request:
      title: Intercom User ID
      type: object
      description: Payload of the request to reply on behalf of a contact using their `intercom_user_id`
      allOf:
        - $ref: '#/components/schemas/contact_reply_base_request'
      properties:
        intercom_user_id:
          type: string
          description: The identifier for the contact as given by Intercom.
      required:
        - intercom_user_id
    contact_reply_ticket_request:
      title: Contact Reply on ticket
      oneOf:
        - $ref: '#/components/schemas/contact_reply_ticket_intercom_user_id_request'
        - $ref: '#/components/schemas/contact_reply_ticket_user_id_request'
        - $ref: '#/components/schemas/contact_reply_ticket_email_request'
    contact_reply_ticket_user_id_request:
      title: User ID
      type: object
      description: Payload of the request to reply on behalf of a contact using their `user_id`
      allOf:
        - $ref: '#/components/schemas/contact_reply_base_request'
      properties:
        user_id:
          type: string
          description: The external_id you have defined for the contact.
      required:
        - user_id
    create_ticket_reply_with_comment_request:
      title: Create Ticket Reply Request Payload
      oneOf:
        - $ref: '#/components/schemas/contact_reply_ticket_request'
        - $ref: '#/components/schemas/admin_reply_ticket_request'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
