> ## Documentation Index
> Fetch the complete documentation index at: https://woku.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a ticket destination

> kind: zendesk | custom | email. config/credentials are validated per kind. routingConditions support operator "equals" (a value) or "any" (the whole tracker).



## OpenAPI

````yaml /openapi-v1.json post /v1/ticket-destinations
openapi: 3.0.0
info:
  title: Woku Client API v1
  description: >-
    Public REST API for programmatic management of woku Voice-of-Customer
    programs: trackers, VoC instruments (NPS, woku, CES, CSAT), action plans,
    support tickets, multi-channel sending and response capture. Requests are
    company-scoped by the API key; never send a company id.
  version: 1.0.0
  contact:
    name: Woku
    url: https://woku.app
    email: team@woku.app
servers:
  - url: https://clientapi.woku.app
    description: Production
security: []
tags: []
paths:
  /v1/ticket-destinations:
    post:
      tags:
        - v1 - ticket-destinations
      summary: Create a ticket destination
      description: >-
        kind: zendesk | custom | email. config/credentials are validated per
        kind. routingConditions support operator "equals" (a value) or "any"
        (the whole tracker).
      operationId: V1TicketDestinationsController_create
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V1CreateTicketDestinationDto'
      responses:
        '201':
          description: ''
        '400':
          description: Validation error
      security:
        - bearer: []
components:
  schemas:
    V1CreateTicketDestinationDto:
      type: object
      properties:
        name:
          type: string
          example: Zendesk Soporte Chile
          maxLength: 120
        config:
          type: object
          description: Non-secret provider config (validated per kind).
          additionalProperties: true
        credentials:
          type: object
          description: Provider credentials (write-only, encrypted).
          additionalProperties:
            type: string
          writeOnly: true
        aiContext:
          type: string
          maxLength: 2000
          description: Per-destination AI triage context.
        routingConditions:
          type: array
          items:
            $ref: '#/components/schemas/TicketRoutingConditionDto'
        template:
          $ref: '#/components/schemas/TicketDestinationTemplateDto'
        kind:
          type: string
          enum:
            - zendesk
            - custom
            - email
      required:
        - name
        - config
        - credentials
        - kind
    TicketRoutingConditionDto:
      type: object
      properties:
        relationToPrevious:
          type: string
          enum:
            - AND
            - OR
        trackerId:
          type: string
          description: CompanyExternalTracker id.
        operator:
          type: string
          enum:
            - equals
            - any
          default: equals
        value:
          type: string
          description: The value the tracker must equal. Required unless operator is "any".
      required:
        - trackerId
    TicketDestinationTemplateDto:
      type: object
      properties:
        preset:
          type: string
          example: custom
        body:
          type: string
          description: Custom JSON body with {{path}} placeholders.
      required:
        - preset
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: Company secret API key.

````