For the complete documentation index, see llms.txt. This page is also available as Markdown.

Ticket Forms

Get a list of ticket forms

get
/ticket-forms

Returns all ticket forms for the organization.

Rate limit: 300 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Responses
200Success
application/json
request_idstringRequired

The request ID for tracking.

get/ticket-forms
GET /ticket-forms HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    {
      "description_html": "text",
      "fields": [
        {
          "custom_field_id": "text",
          "description_html": "text",
          "hidden": true,
          "name": "text",
          "prefill_key": "text",
          "required": true,
          "slug": "text",
          "type": "text",
          "visibility_conditions": [
            "[Circular Reference]"
          ]
        }
      ],
      "id": "text",
      "is_public": true,
      "name": "text",
      "slug": "text",
      "url": "text"
    }
  ],
  "pagination": {
    "cursor": "text",
    "has_next_page": true
  },
  "request_id": "text"
}

Get a ticket form

get
/ticket-forms/{id}

Returns a single ticket form by ID.

Rate limit: 300 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The ID of the ticket form to fetch.

Responses
200Success
application/json
request_idstringRequired

The request ID for tracking.

get/ticket-forms/{id}
GET /ticket-forms/{id} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "description_html": "text",
    "fields": [
      {
        "custom_field_id": "text",
        "description_html": "text",
        "hidden": true,
        "name": "text",
        "prefill_key": "text",
        "required": true,
        "slug": "text",
        "type": "text",
        "visibility_conditions": [
          {
            "affected_fields": [
              {
                "required": true,
                "slug": "text",
                "type": "text",
                "visible": true
              }
            ],
            "filter": "[Circular Reference]",
            "filter_unsupported": true,
            "id": "text"
          }
        ]
      }
    ],
    "id": "text",
    "is_public": true,
    "name": "text",
    "slug": "text",
    "url": "text"
  },
  "request_id": "text"
}

Submit a ticket form

post
/ticket-forms/{id}/submissions

Creates an issue from a configured ticket form. Provide either requester_id or both requester_email and requester_name. Field types are inferred from the ticket form; use value for single-value fields and values for multi-value and file-upload fields.

Rate limit: 30 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The ID of the ticket form to submit.

Body
attachment_urlsstring[]Optional

HTTPS URLs to attach to the initial ticket message. URLs are copied into durable Pylon storage before the submission is persisted.

requester_emailstringOptional

The requester's email address. Must be provided with requester_name and cannot be combined with requester_id.

requester_idstringOptional

The ID of an existing contact to use as the requester. Provide either requester_id or both requester_email and requester_name.

requester_namestringOptional

The requester's full name. Must be provided with requester_email and cannot be combined with requester_id.

Responses
200Success
application/json
request_idstringRequired

The request ID for tracking.

post/ticket-forms/{id}/submissions
POST /ticket-forms/{id}/submissions HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 159

{
  "attachment_urls": [
    "text"
  ],
  "fields": [
    {
      "slug": "text",
      "value": "text",
      "values": [
        "text"
      ]
    }
  ],
  "requester_email": "text",
  "requester_id": "text",
  "requester_name": "text"
}
{
  "data": {
    "account": {
      "external_ids": [
        {
          "external_id": "text",
          "label": "text"
        }
      ],
      "id": "text"
    },
    "active_time_by_user": [
      {
        "active_time_seconds": 1,
        "business_hours_active_time_seconds": 1,
        "user_id": "text"
      }
    ],
    "active_time_seconds": 1,
    "assignee": {
      "email": "text",
      "id": "text"
    },
    "attachment_urls": [
      "text"
    ],
    "author_unverified": true,
    "body_html": "text",
    "business_hours_active_time_seconds": 1,
    "business_hours_first_response_seconds": 1,
    "business_hours_resolution_seconds": 1,
    "business_hours_time_in_status_seconds": {
      "new": 120,
      "waiting_on_customer": 1800
    },
    "chat_widget_info": {
      "page_url": "text"
    },
    "child_issues": [
      {
        "id": "text",
        "number": 1,
        "title": "text"
      }
    ],
    "created_at": "2026-01-01T00:00:00.000Z",
    "csat_responses": [
      {
        "comment": "text",
        "score": 1
      }
    ],
    "custom_fields": {
      "priority": {
        "value": "high"
      }
    },
    "customer_portal_visible": true,
    "external_incidents": [
      {
        "external_id": "text",
        "link": "text",
        "reference": "text",
        "source": "text"
      }
    ],
    "external_issues": [
      {
        "external_id": "text",
        "key": "text",
        "link": "text",
        "source": "text",
        "state": "text"
      }
    ],
    "first_resolution_time": "2026-01-01T00:00:00.000Z",
    "first_response_assignee_id_at_breach": "text",
    "first_response_breach_time": "2026-01-01T00:00:00.000Z",
    "first_response_resolving_user_id": "text",
    "first_response_seconds": 1,
    "first_response_time": "2026-01-01T00:00:00.000Z",
    "follow_up": {
      "assignee_id_at_breach": "text",
      "breach_time": "2026-01-01T00:00:00.000Z",
      "business_hours_seconds": 1,
      "resolving_user_id": "text",
      "seconds": 1,
      "time": "2026-01-01T00:00:00.000Z"
    },
    "id": "text",
    "is_issue_group": true,
    "latest_message_time": "2026-01-01T00:00:00.000Z",
    "link": "text",
    "next_reply": {
      "assignee_id_at_breach": "text",
      "breach_time": "2026-01-01T00:00:00.000Z",
      "business_hours_seconds": 1,
      "resolving_user_id": "text",
      "seconds": 1,
      "time": "2026-01-01T00:00:00.000Z"
    },
    "number": 1,
    "number_of_touches": 1,
    "parent_issue_group": {
      "id": "text",
      "number": 1,
      "title": "text"
    },
    "requester": {
      "email": "text",
      "id": "text"
    },
    "resolution_assignee_id_at_breach": "text",
    "resolution_breach_time": "2026-01-01T00:00:00.000Z",
    "resolution_resolving_user_id": "text",
    "resolution_seconds": 1,
    "resolution_time": "2026-01-01T00:00:00.000Z",
    "slack": {
      "channel_id": "text",
      "message_ts": "text",
      "workspace_id": "text"
    },
    "snoozed_until_time": "2026-01-01T00:00:00.000Z",
    "source": "text",
    "state": "new",
    "tags": [
      "text"
    ],
    "team": {
      "id": "text"
    },
    "team_slas": [
      {
        "first_resolution": {
          "assignee_id_at_breach": "text",
          "breach_time": "2026-01-01T00:00:00.000Z",
          "business_hours_seconds": 1,
          "resolving_user_id": "text",
          "seconds": 1,
          "time": "2026-01-01T00:00:00.000Z"
        },
        "first_response": {
          "assignee_id_at_breach": "text",
          "breach_time": "2026-01-01T00:00:00.000Z",
          "business_hours_seconds": 1,
          "resolving_user_id": "text",
          "seconds": 1,
          "time": "2026-01-01T00:00:00.000Z"
        },
        "follow_up": {
          "assignee_id_at_breach": "text",
          "breach_time": "2026-01-01T00:00:00.000Z",
          "business_hours_seconds": 1,
          "resolving_user_id": "text",
          "seconds": 1,
          "time": "2026-01-01T00:00:00.000Z"
        },
        "next_reply": {
          "assignee_id_at_breach": "text",
          "breach_time": "2026-01-01T00:00:00.000Z",
          "business_hours_seconds": 1,
          "resolving_user_id": "text",
          "seconds": 1,
          "time": "2026-01-01T00:00:00.000Z"
        },
        "resolution": {
          "assignee_id_at_breach": "text",
          "breach_time": "2026-01-01T00:00:00.000Z",
          "business_hours_seconds": 1,
          "resolving_user_id": "text",
          "seconds": 1,
          "time": "2026-01-01T00:00:00.000Z"
        },
        "team_id": "text"
      }
    ],
    "time_in_status_seconds": {
      "new": 120,
      "waiting_on_customer": 3600
    },
    "title": "text",
    "type": "text",
    "updated_at": "2026-01-01T00:00:00.000Z",
    "workspace_email": "text",
    "workspace_phone_number": "+14155551234"
  },
  "request_id": "text"
}

Last updated

Was this helpful?