Tickets Routes

Create a new ticket

POST /tickets/create

This will create a ticket in the database

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Body

Name
Type
Description
Required

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

This will close a ticket

POST /tickets/close

This will close a ticket with a ticket short id.

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Body

Name
Type
Description

shortId

string

This is the ticket short id

Response

This will claim a ticket

POST /tickets/claim

This will claim a ticket from a short id.

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Body

Name
Type
Description

shortId

string

This is the ticket short id

discordId

string

This is the users discord id

Response

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

Name
Value

Content-Type

application/json

Authorization

<key>

Request

Name
Type
Description

Short Id

string

This is the ticket short id

User Id

UUIDv4

This is the users database id

Response

Is the ticket claimed

GET /tickets/is/claimed/[ Short Id ]

This will claim a ticket from a short id.

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Request

Name
Type
Description

Short Id

string

This is the ticket short id

Response

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

Name
Value

Content-Type

application/json

Authorization

<key>

Request

Name
Type
Description

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:

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

Name
Value

Content-Type

application/json

Authorization

<key>

Request

Name
Type
Description

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:

Get a ticket from a short id

GET /tickets/get/id/[ Short Id ]

This will return the ticket information from a short id.

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Request

Name
Type
Description

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:

Get a ticket from a name

GET /tickets/get/name/[ Ticket Name ]

This will return the ticket information from a ticket name

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Request

Name
Type
Description

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:

Create a new Ticket Channel

POST /tickets/create/channel

This will assign a specific ticket type to a discord channel id

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

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

Last updated