The API has been deprecated and is no longer in use.
Law Enforcement Endpoints
Raw list of LEO endpoints:
List of Law enforcement endpoint methods
Civilian Records
GET
https://roleplaybot.xyz/api/leo/records
Searches a civilians arrests, citations and fines
Request Body
Civilian found and records listed
{
guildID: "GUILD_ID",
civilianName: "CIV_NAME",
civilianID: "CIV_ID",
citationAmount: "CITE_AMOUNT",
fineAmount: "FINE_AMOUNT",
arrestAmount: "ARREST_AMOUNT",
citations: [
{
count: "COUNT",
officersName: "OFFICER_NAME",
officersID: "OFFICER_ID",
amount: "AMOUNT",
charges: "CHARGES",
timestamp: "TIMESTAMP"
}
],
fines: [
{
count: "COUNT",
officersName: "OFFICER_NAME",
officersID: "OFFICER_ID",
amount: "AMOUNT",
charges: "CHARGES",
timestamp: "TIMESTAMP"
}
],
arrests: [
{
count: "COUNT",
officersName: "OFFICER_NAME",
officersID: "OFFICER_ID",
time: "JAIL_TIME",
charges: "CHARGES",
timestamp: "TIMESTAMP"
}
]
}
Invalid or missing field
{
"error": "400 Bad request",
"details": "Invalid <FIELD> provided (<ERR-CODE>)"
}
Accessing a guild that is not authorized apart of your API key
{
"error": "403 Forbidden",
"details": "Unauthorised guild access (20058)"
}
{
error: "404 Not found",
details: "Character not found (10023)"
}
Check Impound
GET
https://roleplaybot.xyz/api/leo/impound
Checks if a vehicle is impounded
Request Body
Accessing a guild that is not authorized apart of your API key
{
"error": "403 Forbidden",
"details": "Unauthorised guild access (20058)"
}
Vehicle found and impounded value displayed
{
guildID: "GUILD_ID",
plate: "PLATE",
id: "ID",
impounded: "IMPOUNDED",
impoundedFee: "IMPOUND_FEE"
}
Requested vehicle was not found
{
error: "404 Not found",
details: "Vehicle not found (10023)"
}
Arrest Civilian
POST
https://roleplaybot.xyz/api/leo/arrest
Forms an arrest report on a civilian
Request Body
Arresting Officers Discord Name (String)
Arresting Officers Discord ID (String)
Jail Time (Number) (>5000)
Accessing a guild that is not authorized apart of your API key
{
"error": "403 Forbidden",
"details": "Unauthorised guild access (20058)"
}
Invalid or missing field
{
"error": "400 Bad request",
"details": "Invalid <FIELD> provided (<ERR-CODE>)"
}
Successfully arrested civilian
{
guildID: "GUILD_ID",
civilianName: "CIV_NAME",
civilianID: "CIV_ID",
success: `Arrested civilian`,
arrest: [
{
officersName: "OFFICER_NAME",
officersID: "OFFICER_ID",
time: "<TIME> Seconds",
charges: "CHARGES",
timestamp: "TIMESTAMP"
}
]
}
Requested civilian could not be found
{
error: "404 Not found",
details: "Character not found (10023)"
}
Cite Civilian
POST
https://roleplaybot.xyz/api/leo/cite
Creates a citation and issues it to a civilian
Request Body
Citing Officers Discord Name (String)
Citing Officers Discord ID (String)
Citation Charges (String)
Cite Amount (Number) (>5000)
Accessing a guild that is not authorized apart of your API key
{
"error": "403 Forbidden",
"details": "Unauthorised guild access (20058)"
}
Invalid or missing field
{
"error": "400 Bad request",
"details": "Invalid <FIELD> provided (<ERR-CODE>)"
}
Successfully cited civilian
{
guildID: "GUILD_ID",
civilianName: "CIV_NAME",
civilianID: "CIV_ID",
success: "Cited civilian",
citation: [
{
officersName: "OFFICER_NAME",
officersID: "OFFICER_ID",
amount: "$<AMOUNT>",
charges: "CHARGES",
timestamp: "TIMESTAMP"
}
]
}
Requested civilian could not be found
{
error: "404 Not found",
details: "Character not found (10023)"
}
Fine Civilian
POST
https://roleplaybot.xyz/api/leo/fine
Fines a civilian
Request Body
Fining Officers Discord Name (String)
Fining Officers Discord ID (String)
Fine Amount (Number) (>5000)
Accessing a guild that is not authorized apart of your API key
{
"error": "403 Forbidden",
"details": "Unauthorised guild access (20058)"
}
Invalid or missing field
{
"error": "400 Bad request",
"details": "Invalid <FIELD> provided (<ERR-CODE>)"
}
Successfully fined civilian
{
guildID: "GUILD_ID",
civilianName: "CIV_NAME",
civilianID: "CIV_ID",
success: "Fined civilian",
fine: [
{
officersName: "OFFICER_NAME",
officersID: "OFFICER_ID",
amount: "$<AMOUNT>",
charges: "CHARGES",
timestamp: "TIMESTAMP"
}
]
}
Requested civilian could not be found
{
error: "404 Not found",
details: "Character not found (10023)"
}
Impound Vehicle
PATCH
https://roleplaybot.xyz/api/leo/impound
Impound or lift the impound of a registered vehicle
Request Body
Impound Stated Vehicle (Boolean)
Impound Fee (Number) (>5000) (Only if impound statement true)
Accessing a guild that is not authorized apart of your API key
{
"error": "403 Forbidden",
"details": "Unauthorised guild access (20058)"
}
{
"error": "400 Bad request",
"details": "Invalid <FIELD> provided (<ERR-CODE>)"
}
Impounded Vehicle
{
guildID: "GUILD_ID",
plate: "PLATE",
userID: "USER_ID",
userName: "USER_NAME",
civilianName: "CIV_NAME",
civilianID: "CIV_ID",
impounded: true,
error: "Vehicle impounded",
vehicle: [
{
impoundedFee: "FEE",
stolen: "STOLEN",
model: "MODEL",
registration: "REGISTRATION",
insurance: "INSURANCE",
color: "COLOR",
colorType: "COLOR_TYPE",
timestamp: "TIMESTAMP",
}
]
}
Database error, Unable to edit impound. Contact RoleplayBot support
{
error: "500 Internal server error",
details: "Unable to execute request (10022)"
}
{
guildID: "GUILD_ID",
plate: "PLATE",
userID: "USER_ID",
userName: "USER_NAME",
civilianName: "CIV_NAME",
civilianID: "CIV_ID",
impounded: false,
error: "Vehicle removed from impounded",
vehicle: [
{
impoundedFee: null,
stolen: "STOLEN",
model: "MODEL",
registration: "REGISTRATION",
insurance: "INSURANCE",
color: "COLOR",
colorType: "COLOR_TYPE",
timestamp: "TIMESTAMP",
}
]
}
{
error: "404 Not found",
details: "Vehicle not found (10023)"
}