Add servers to database

This endpoint requires an API key with the addServers permission enabled! To apply for an API key, please DM big.bun#6969

How to make a request

This endpoint only accepts POST requests.

To add a server, send a POST request to https://api.phish.gg/add-server with either of the following POST data:

{
  "invite":"SERVER INVITE",
  "key":"REASON KEY"
}

or

{
  "id":"SERVER ID",
  "key":"REASON KEY"
}

You can find a list of possible reason keys here.

Make sure to pass your API key as the authorization header.

Response

If the server was added successfully:

{
  "err":false
}

However, if it doesn’t, you’ll recieve the following response:

{
  "err":"Something went wrong: <what went wrong>"
}