LeaderOS API
  • 👋Getting Started
    • Introduction
    • Authentication
  • 🔐Auth
    • Login
    • Register
    • Sessions
  • 🧑‍🦱Users
    • Profiles
    • Roles
    • Tickets
    • Orders
  • 🛍️Store
    • Listing
    • Products
    • Categories
    • Buy
    • Donations
  • 🍏Bazaar
    • Player Storages
    • Servers
  • 🚨Support
    • Tickets
    • Messages
    • Categories
    • Quick Answers
  • 🪙Credits
    • Show Credits
    • Add Credits
    • Remove Credits
    • Send Credits
    • Set Credits
  • 👍Vote
    • Vote Links
  • 🎮Discord
    • Users
    • Settings
    • Roles
Powered by GitBook
On this page
  • Get all messages of a ticket
  • Get a message of a ticket
  • Add messages to tickets
  1. Support

Messages

Get all messages of a ticket

GET https://yourwebsite.com/api/support/tickets/<ticket-id>/messages

[
    {
        "id": "1",
        "accountID": "1",
        "supportID": "2",
        "message": "please **help** me!",
        "writeLocation": "1",
        "creationDate": "2022-09-15 10:53:27"
    },
    {
        "id": "2",
        "accountID": "3",
        "supportID": "2",
        "message": "<p>thanks banned!</p>",
        "writeLocation": "2",
        "creationDate": "2022-09-15 10:54:27"
    },
    {
        "id": "7",
        "accountID": "1",
        "supportID": "2",
        "message": "Merhaba deneme içerikkk2",
        "writeLocation": "2",
        "creationDate": "2023-07-19 20:32:34"
    },
    {
        "id": "8",
        "accountID": "1",
        "supportID": "2",
        "message": "Merhaba deneme içerikkk2",
        "writeLocation": "2",
        "creationDate": "2023-07-19 20:32:54"
    },
    {
        "id": "9",
        "accountID": "1",
        "supportID": "2",
        "message": "Merhaba deneme içerikkk2",
        "writeLocation": "2",
        "creationDate": "2023-07-19 20:34:34"
    }
]

Get a message of a ticket

GET https://yourwebsite.com/api/support/tickets/<ticket-id>/messages/<id>

{
    "id": "9",
    "accountID": "1",
    "supportID": "2",
    "message": "Merhaba deneme içerikkk2",
    "writeLocation": "2",
    "creationDate": "2023-07-19 20:34:34"
}

Add messages to tickets

POST https://yourwebsite.com/api/support/tickets/<ticket-id>/messages

Path Parameters

Name
Type
Description

ticket-id

integer

Request Body

Name
Type
Description

message*

String

accountID

String

isAdmin

boolean

Default: false

discordUserID

String

{
    "success": true,
    "data": {
        "id": "9"
    }
}
PreviousTicketsNextCategories

Last updated 4 months ago

🚨