Skip to main content

List Support Tickets

GET /support/list

Retrieves a list of support tickets for the current user.
GET /support/list
Authentication: connected Response
{
  "status": "success",
  "data": {
    "list": [
      {
        "ticket": 1706745600,
        "subject": "Item not received",
        "topic": "trading",
        "concern": "deposit",
        "status": 1,
        "last_message": 1706746600,
        "created": 1706745600
      }
    ]
  }
}

Get Ticket Messages

GET /support/messages/:ticket

Retrieves all messages for a specific support ticket.
GET /support/messages/{ticket}
Authentication: connected Path Parameters
ticket
integer
required
The ticket number.
Response
{
  "status": "success",
  "data": {
    "messages": [
      {
        "id": 1,
        "user": "76561198000000000",
        "content": "I have an issue with my deposit...",
        "admin": null,
        "timestamp": 1706745600,
        "attachments": ""
      }
    ],
    "ticket": 1706745600
  }
}
Errors
StatusMessage
errorMissing required parameter: ticket
errorTicket not found or no access

Create Support Ticket

POST /support/create

Creates a new support ticket with an initial message.
POST /support/create
Authentication: connected Body Parameters
subject
string
required
The subject/title of the support ticket.
description
string
required
The initial message/description of the issue.
topic
string
required
The topic category (e.g., "trading", "payment", "account").
concern
string
required
The specific concern (e.g., "deposit", "withdrawal", "ban").
attachment
string
Optional base64-encoded attachment.
Response
{
  "status": "success",
  "data": {
    "ticket": 1706745600,
    "message": "Support ticket created successfully"
  }
}
Errors
StatusMessage
errorMissing required parameters: subject, description, topic, concern
errorInvalid attachment

Post Message to Ticket

POST /support/post

Sends a message to an existing support ticket.
POST /support/post
Authentication: connected Body Parameters
content
string
required
The message content (max 10,000 characters, HTML tags are stripped).
ticket
integer
required
The ticket number to post to.
attachment
string
Optional base64-encoded attachment.
Response
{
  "status": "success",
  "data": {
    "message": "Message sent successfully",
    "ticket": 1706745600
  }
}
Errors
StatusMessage
errorMissing required parameters: content, ticket
errorCannot send message: ticket is closed
errorInvalid attachment

Get Messages List

GET /messages/list

Retrieves a list of recent message conversations for the user.
GET /messages/list
Authentication: connected Response
{
  "status": "success",
  "data": {
    "list": []
  }
}

Admin: List Support Tickets

GET /admin/support/list

Retrieves all active support tickets for admin view.
GET /admin/support/list
Authentication: connected, admin Response
{
  "status": "success",
  "data": {
    "list": [
      {
        "ticket": 1706745600,
        "user": "76561198000000000",
        "subject": "Item not received",
        "status": 1,
        "assigned": "AdminName"
      }
    ]
  }
}

Admin: Get Ticket Messages

GET /admin/support/messages/:ticket/:user

Retrieves messages for a specific support ticket with admin details.
GET /admin/support/messages/{ticket}/{user}
Authentication: connected, admin Path Parameters
ticket
integer
required
The ticket number.
user
string
required
The user’s Steam ID.
Response
{
  "status": "success",
  "data": {
    "messages": [
      {
        "id": 1,
        "user": "76561198000000000",
        "content": "Message text...",
        "admin": "AdminName",
        "assigned": "AdminName",
        "status": "Open",
        "timestamp": 1706745600
      }
    ],
    "ticket": 1706745600
  }
}

Admin: Post Message

POST /admin/support/post

Sends a message to a support ticket as an admin. Triggers a Discord notification.
POST /admin/support/post
Authentication: connected, admin Body Parameters
content
string
required
The message content (max 200,000 characters).
ticket
integer
required
The ticket number.
user
string
required
The Steam ID of the user the message is for.
Response
{
  "status": "success",
  "data": {
    "message": "Message sent to support (admin) successfully",
    "ticket": 1706745600
  }
}

Admin: Update Ticket Status

POST /admin/support/status

Updates the status of a support ticket.
POST /admin/support/status
Authentication: connected, admin Body Parameters
ticket
integer
required
The ticket number.
status
integer
required
The new status code.
user
string
required
The Steam ID of the ticket owner.
Response
{
  "status": "success",
  "data": {
    "message": "Support ticket status updated successfully",
    "ticket": 1706745600,
    "status": 2
  }
}

Admin: Block/Unblock User

POST /admin/support/block

Blocks or unblocks a user from creating support tickets.
POST /admin/support/block
Authentication: connected, admin Body Parameters
user
string
required
The Steam ID of the user.
status
integer
required
1 to block, 0 to unblock.
Response
{
  "status": "success",
  "data": {
    "message": "User blocked successfully",
    "user": "76561198000000000",
    "status": 1
  }
}
Errors
StatusMessage
errorMissing required parameters: user, status
errorInvalid status. Status must be 0 (unblocked) or 1 (blocked)