API reference
Platform
- Search
- Users
- Teams
- Tickets
- Tags
- Ticket tags
- Accounts
- Forms
- Comments
- Emoji actions
- Custom object fields
- Custom objects
- Object records
- Views
- Views types
- Draft tickets
- Storage
- Reactions
Workflows
- Workflows
Apps platform
- App creation
- App installation
- App uninstallation
- App reinstallation
- Incoming webhook
Draft tickets
Create a new ticket draft
POST
/
v1
/
tickets
/
draft
Copy
Ask AI
curl --request POST \
--url https://platform.thena.ai/v1/tickets/draft \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"assignedAgentId": "<string>",
"description": "<string>",
"submitterEmail": "<string>",
"statusId": "<string>",
"priorityId": "<string>",
"typeId": "<string>",
"isPrivate": true,
"attachmentUrls": [
"<string>"
],
"customFieldValues": [
{}
],
"metadata": {},
"title": "<string>",
"requestorEmail": "<string>",
"accountId": "<string>",
"teamId": "<string>",
"draftScope": "personal"
}'
Copy
Ask AI
{
"uid": "<string>",
"status": "<string>",
"draftScope": "<string>",
"entityType": "<string>",
"content": {},
"metadata": {},
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"lastModifiedBy": "<string>"
}
Authorizations
Enter your API key
Body
application/json
Response
201
application/json
Operation successful
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://platform.thena.ai/v1/tickets/draft \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"assignedAgentId": "<string>",
"description": "<string>",
"submitterEmail": "<string>",
"statusId": "<string>",
"priorityId": "<string>",
"typeId": "<string>",
"isPrivate": true,
"attachmentUrls": [
"<string>"
],
"customFieldValues": [
{}
],
"metadata": {},
"title": "<string>",
"requestorEmail": "<string>",
"accountId": "<string>",
"teamId": "<string>",
"draftScope": "personal"
}'
Copy
Ask AI
{
"uid": "<string>",
"status": "<string>",
"draftScope": "<string>",
"entityType": "<string>",
"content": {},
"metadata": {},
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"lastModifiedBy": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.