API Documentation
Applying for Access
To apply for access please send Corteo a private message on the forums. Include information such as why you want access, the domain that you will be using to call the api, and the IP that your domain is located at.
Authentication
After approval of your API request, you will be given a private key. Your key is unique to you and should not be shared. If your key is leaked that is grounds for the key being invalidated.
You must pass this key in the authorization header with the key name of "apiKey" and the value of your key.
Best Practices
While the API should be able to weather a lot of activity, it is not designed to receive multiple calls a second from all API users. Please make sure that you cache information you retrieve (e.g. lists of codes, creature growth status, etc) in your own database instead of retrieving it every page load.
Make sure when you display
the image on your site that you use the URL provided by the API (https://finaloutpost.net/s/creatureCode.png
).
/rimg/
and /r/
are dynamic urls for internal use only while as /s/
is a
image cache file that will much faster for you and use less resources for us.
Routes
Documentation for /api/v1/species/{speciesName}
Method: GET
Used to fetch information about a given species. {speciesName} should be url encoded and should be the full species
name. For example: https://finaloutpost.net/api/v1/species/Avka+Felo
.
Response fields:
capsuleImage
of typestring
descriptions
is a list of objects, each of which has the following structure:capsule
of typestring
juvenile
of typestring
adult
of typestring
storePrice
of typeint
stats
is a list of objects, each of which has the following structure:height
of typestring
weight
of typestring
length
of typestring
credits
is a list of objects, each of which has the following structure:capsule
is a list of objects, each of which has the following structure:art
of typestring
description
of typestring
juvenile
is a list of objects, each of which has the following structure:art
of typestring
description
of typestring
adult
is a list of objects, each of which has the following structure:art
of typestring
description
of typestring
genetics
of typestring
Possible errors:
- 6: Species does not exist.
- 9: This species is locked and its data is not available to view.
Documentation for /api/v1/tab/{tabId}/{username}
Method: GET
Fetch the creatures from a user's tab. Username does not have to be provided for non-default tabs, that is to say tabs that are not an id of 0.
Response fields:
error
of typebool
errorCode
of typeint
creatures
is a list of objects, each of which has the following structure:error
of typebool
errorCode
of typeint
code
of typestring
imgsrc
of typestring
gotten
of typeint
growthLevel
of typeint
name
of typestring
isStunted
of typebool
breedName
of typestring
genetics
of typestring
gender
of typestring
Possible errors:
- 5: Invalid API call, please double check the documentation.
- 7: Tab does not exist.
- 1: User does not exist.
- 2: User's lab is hidden.
- 8: Tab is hidden.
Documentation for /api/v1/creatures/species/{username}/{speciesName}
Method: GET
Used to get all of a user's creatures that match a given species. The expected format for speciesName is the
full species name that has been urlencoded. For example: https://finaloutpost.net/api/v1/creatures/species/Corteo/Avka+Felo
Response fields:
error
of typebool
errorCode
of typeint
creatures
is a list of objects, each of which has the following structure:error
of typebool
errorCode
of typeint
code
of typestring
imgsrc
of typestring
gotten
of typeint
growthLevel
of typeint
name
of typestring
isStunted
of typebool
breedName
of typestring
genetics
of typestring
gender
of typestring
Possible errors:
- 1: User does not exist.
- 2: User's lab is hidden.
- 6: Species does not exist.
Documentation for /api/v1/creatures
Method: GET
Used to fetch the data of multiple creatures. This can be used, for example, in a click site context for checking
if a list of creatures has grown or not. Creatures should be passed as a query param. A well-formed URL would look
like https://finaloutpost.net/api/v1/creatures?code[]=a&code[]=b&code[]=c
with the actual creature codes in place of
a,b,c placeholders.
Response fields:
error
of typebool
errorCode
of typeint
creatures
is a list of objects, each of which has the following structure:error
of typebool
errorCode
of typeint
code
of typestring
imgsrc
of typestring
gotten
of typeint
growthLevel
of typeint
name
of typestring
isStunted
of typebool
breedName
of typestring
genetics
of typestring
gender
of typestring
- OR
errorCode
of typeint
error
of typebool
errorMessage
of typestring
Possible errors:
- 5: Invalid API call, please double check the documentation.
Documentation for /api/v1/creature/{code}
Method: GET
Used to fetch the data of a single creature.
Response fields:
error
of typebool
errorCode
of typeint
code
of typestring
imgsrc
of typestring
gotten
of typeint
growthLevel
of typeint
name
of typestring
isStunted
of typebool
breedName
of typestring
genetics
of typestring
gender
of typestring
Possible errors:
- 4: Creature does not exist.
Documentation for /api/v1/lab/{username}
Method: GET
Used to fetch all growing creatures for a given user.
Response fields:
error
of typebool
errorCode
of typeint
creatures
is a list of objects, each of which has the following structure:error
of typebool
errorCode
of typeint
code
of typestring
imgsrc
of typestring
gotten
of typeint
growthLevel
of typeint
name
of typestring
isStunted
of typebool
breedName
of typestring
genetics
of typestring
gender
of typestring
Possible errors:
- 1: User does not exist.
- 2: User's lab is hidden.
- 3: User does not have any growing creatures.