API Reference

Our API is a REST API for general usage and information gathering.

Base URL

https://api.spacelab.studio

API Versions

We have multiple API versions to keep everything easy and simple to understand. You can choose the version of the API you wish to use by setting it in the request URL like this: https://api.spacelab.studio/v{version_number}. All the information for API change log are available here.

API Versions List

Version Number Status
1 Available

Error & Success Messages

We have tried to make the error messages (and success messages) really simple so that it is really easy to understand and use. Here is an example of an error:

Missing Argument Error Message

{
    "status": {
        "code": 400,
        "message": "Error: Required arguments are missing!"
    }
}

User Found Success Message

{
    "status": {
        "code": 200,
        "message": "This user has been found."
    }
}

API Keys

When you make a request on our API you will always need to provide an API key in the headers to be able to use it. If an API key is wrong, it will give an error message back.

Header Content
apikey Your generated API key

Non Existant API Key Error Message

{
    "status": {
        "code": 400,
        "message": "Error: Non existant API key given!"
    }
}