Create Ticket
Create a new ticket.
Authentication and permissions
Token requirements: User-based token (OAuth) or Organization-scoped API key or Workspace-scoped API key. Send a bearer access token for one of these identities. The permissions and resource restrictions below also apply.
Authorizations
Body
Optional. The type of ticket to create. Defaults to REQUEST. Accepts TICKET_TYPE_REQUEST, TICKET_TYPE_TASK, TICKET_TYPE_INCIDENT, TICKET_TYPE_MAJOR_INCIDENT, TICKET_TYPE_CHANGE, TICKET_TYPE_CUSTOM, TICKET_TYPE_PROBLEM, or TICKET_TYPE_JOURNEY. If parent_ticket_id is set, this must be TASK (or omitted, in which case TASK is used).
TICKET_TYPE_UNSPECIFIED, TICKET_TYPE_REQUEST, TICKET_TYPE_TASK, TICKET_TYPE_MAJOR_INCIDENT, TICKET_TYPE_CONVERSATION, TICKET_TYPE_JOURNEY, TICKET_TYPE_INCIDENT, TICKET_TYPE_CHANGE, TICKET_TYPE_CUSTOM, TICKET_TYPE_PROBLEM Optional. The ID of the user this ticket is created on behalf of (the requester). Defaults to created_by_user_id if not provided. Use this when creating a ticket on behalf of someone else, e.g., when creating child tasks in a journey where the requester should be the journey's requester. Must be a user of the workspace's organization; deactivated users are allowed, so historical imports can name offboarded employees. API-key and worker callers may name any such user; user-token callers may name someone other than themselves only when they hold the set_ticket_requester permission on the workspace. On-behalf-of creation is recorded in the org audit log.
Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following:
- A full date, with non-zero year, month, and day values.
- A month and day, with a zero year (for example, an anniversary).
- A year on its own, with a zero month and a zero day.
- A year and month, with a zero day (for example, a credit card expiration date).
Related types:
- [google.type.TimeOfDay][google.type.TimeOfDay]
- [google.type.DateTime][google.type.DateTime]
- [google.protobuf.Timestamp][google.protobuf.Timestamp]
Represents a form relationship on a ticket: the form's submit workflow behaves like a REQUIRED workflow relationship (dependency blocking, auto-close), with the form-engine session as the human gate instead of a workflow-argument form. Retry is NOT supported for form relationships. Creation fails unless the form is deployed, code-first, and its deployed version declares exactly one submit workflow. Mutually exclusive with WorkflowRelationship on the same ticket.

