curl --request POST \
--url https://app.usertick.com/api/public/v1/support/tickets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"subject": "The widget doesn't show on the checkout page",
"body": "I added the install code to my site, but the survey doesn't show on the checkout page. Verify install says the code is present."
}
EOFconst options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subject: 'The widget doesn\'t show on the checkout page',
body: JSON.stringify('I added the install code to my site, but the survey doesn\'t show on the checkout page. Verify install says the code is present.')
})
};
fetch('https://app.usertick.com/api/public/v1/support/tickets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.usertick.com/api/public/v1/support/tickets"
payload = {
"subject": "The widget doesn't show on the checkout page",
"body": "I added the install code to my site, but the survey doesn't show on the checkout page. Verify install says the code is present."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Open a support ticket
Opens a support ticket as the member, as Create ticket on the Help page does: Usertick attaches the organization’s plan, support answers in the order the plan gives, and the replies reach the member on the Help page and by email. Support tickets come with the paid plans (403 SUP-004-001 on Free). Recorded in the audit log as made through the credential. A ticket belongs to a person: an app or an AI assistant acts as the member it signed in as, and an API key, which acts as its organization, is 403 PUB-017-002. 201 with the ticket, its first message and its address in Location.
Scopes: support:write, support:read.
curl --request POST \
--url https://app.usertick.com/api/public/v1/support/tickets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"subject": "The widget doesn't show on the checkout page",
"body": "I added the install code to my site, but the survey doesn't show on the checkout page. Verify install says the code is present."
}
EOFconst options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subject: 'The widget doesn\'t show on the checkout page',
body: JSON.stringify('I added the install code to my site, but the survey doesn\'t show on the checkout page. Verify install says the code is present.')
})
};
fetch('https://app.usertick.com/api/public/v1/support/tickets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.usertick.com/api/public/v1/support/tickets"
payload = {
"subject": "The widget doesn't show on the checkout page",
"body": "I added the install code to my site, but the survey doesn't show on the checkout page. Verify install says the code is present."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Headers
Any 1 to 255 printable ASCII characters, without a space at either end. The answer to the first request with a key is kept for 24 hours per credential: the same request again gets it back (Idempotent-Replayed: true), another request with the key is 409 PUB-002-002, and while the first still runs 409 PUB-002-003. A server error is not kept, and a request that never answered frees its key after 2 minutes: a retry with the key then runs again.
255Body
Response
Created.
A ticket with a page of its thread.