Tickets Routes
Create a new ticket
POST /tickets/create
This will create a ticket in the database
Headers
Content-Type
application/json
Authorization
<key>
Body
ticketId
UUIDv4
This is a database id for the ticket
ticketType
string
This the type for a ticket
ticketData
json as string
This is specialized data for the ticket
guildId
string
This is the discord guild id for the ticket
ticketName
string
This is the name of the ticket
ticketShortId
string
This is the short id used for reference to the ticket instead of the full ticketId
ticketOwner
string
This is the users discord id for the owner of the ticket
claimedBy
string
This is the user that has claimed the tickets discord id
claimed
boolean
This is a boolean flag to tell if the ticket has been claimed or not
closed
boolean
This is the a boolean flag to tell if the ticket has been closed or not
Response
If authorization header not provided:
If invalid authorization key:
This will close a ticket
POST /tickets/close
This will close a ticket with a ticket short id.
Headers
Content-Type
application/json
Authorization
<key>
Body
shortId
string
This is the ticket short id
Response
If authorization header not provided:
If invalid authorization key:
This will claim a ticket
POST /tickets/claim
This will claim a ticket from a short id.
Headers
Content-Type
application/json
Authorization
<key>
Body
shortId
string
This is the ticket short id
discordId
string
This is the users discord id
Response
If authorization header not provided:
If invalid authorization key:
Is a specific user the claimer of a ticket
GET /tickets/is/claimer/[ User Id ]/[ Short Id ]
This will claim a ticket from a short id.
Headers
Content-Type
application/json
Authorization
<key>
Request
Short Id
string
This is the ticket short id
User Id
UUIDv4
This is the users database id
Response
If authorization header not provided:
If invalid authorization key:
Is the ticket claimed
GET /tickets/is/claimed/[ Short Id ]
This will claim a ticket from a short id.
Headers
Content-Type
application/json
Authorization
<key>
Request
Short Id
string
This is the ticket short id
Response
If authorization header not provided:
If invalid authorization key:
Get a tickets claimer
GET /tickets/is/claimed/[ Short Id ]
This will return the user database id of the claimer for a specific ticket
Headers
Content-Type
application/json
Authorization
<key>
Request
Short Id
string
This is the ticket short id
Response
If can find a ticket that has been claimed with a specific short id:
If cannot find a ticket that has been claimed with specific short id:
If authorization header not provided:
If invalid authorization key:
Get a ticket types channel id
GET /tickets/get/channel/[ Ticket Type ]/[ Guild Id ]
This will return the user database id of the claimer for a specific ticket
Headers
Content-Type
application/json
Authorization
<key>
Request
Ticket Type
string
This is the ticket type
Guild Id
string
This is the discords guild id
Response
If can find a specific ticket types channel:
If cannot find a specific ticket types channel:
If authorization header not provided:
If invalid authorization key:
Get a ticket from a short id
GET /tickets/get/id/[ Short Id ]
This will return the ticket information from a short id.
Headers
Content-Type
application/json
Authorization
<key>
Request
Short Id
string
This is the ticket short id
Response
If can find a specific ticket from a short id:
If cannot find a specific ticket from a short id:
If authorization header not provided:
If invalid authorization key:
Get a ticket from a name
GET /tickets/get/name/[ Ticket Name ]
This will return the ticket information from a ticket name
Headers
Content-Type
application/json
Authorization
<key>
Request
Ticket Name
string
This is the name of the ticket
Response
If can find a specific ticket from a short id:
If cannot find a specific ticket from a short id:
If authorization header not provided:
If invalid authorization key:
Create a new Ticket Channel
POST /tickets/create/channel
This will assign a specific ticket type to a discord channel id
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
id
UUIDv4
The Database Id for the Ticket Channel
ticketType
string
The ticket type for the channel
guildId
string
The discord guild id
channelId
string
The discord channel id
Response
If authorization header not provided:
If invalid authorization key:
Last updated