Product Documentation
Learn about the FaxTrack API and its functionality. The below documentation and examples use the form-data package to send files through the API. However, any method for this can be used.
Fetch a specific account and return the data
Parameters
| [Header] The API key that's set on the staff panel |
| [Param] [Required] Can be an account ID or Discord user ID |
Response
{
"id": "2",
"username": "email@example.com",
"permType": 1,
"profileImg": "/attachments/CK6II7iKEy-dSwIuoYjAcAZES.png",
"banned": 0,
"discordId": "",
"createdAt": "1655726232638"
}Create an account manually with the provided details.
Parameters
| [Header] The API key that's set on the staff panel |
| [Body] [Required] The username for the account |
| [Body] A link to a profile photo for the account |
| [Body] A Discord ID for the account |
| [Body] Boolean value if the account should be banned |
Response
401 - Unauthorized - Incorrect API token provided.
400 - Not Complete - Username not provided in request.
201 - Created - userIDCreate a feedback topic on the provided project.
Parameters
| [Header] The API key that's set on the staff panel |
| [Body] [Required] The title for the topic |
| [Body] [Required] The description/body to use in the topic |
| [Body] Labels to add to the topic, comma separated |
| [Body] Links to add to the topic, comma separated |
| [Body] An optional account to link to the topic |
| [Files] Attachment to add to the topic. Only one is supported |
Response
401 - Unauthorized - Incorrect API token provided
409 - Conflict - Duplicate content
400 - Bad Request - Invalid project ID
201 - Created - Returns a link to the topicCreate an issue topic and attach it to the provided topic.
Parameters
| [Header] The API key that's set on the staff panel |
| [Body] [Required] The title for the topic |
| [Body] [Required] The description/body to use in the topic |
| [Body] Labels to add to the topic, comma separated |
| [Body] Links to add to the topic, comma separated |
| [Body] An optional account to link to the topic |
| [Files] Attachment to add to the topic. Only one is supported |
Response
401 - Unauthorized - Incorrect API token provided
409 - Conflict - Duplicate content
400 - Bad Request - Invalid project ID
201 - Created - Returns a link to the topicAdd a statistic to a project's connected statistics.
Parameters
| [URL] defines the statistic to send the data to |
| [Body] Add the title to add to the statistic entry |
| [Body] Contains the data object, an example is below |
| [Body] A MS timestamp of when the statistic entry will be deleted |
Response Codes
201 = Created statistic.Response Data
{"title":"My Title","data":{"Earned":2,,"Host":"your.domain"},"expiresAt":"1662092459618"}For a code example see the FaxTrack Statistics Page