Login
For a better understanding of how you can implement the API into your software see Get Started
Description
This route authenticates a user with a username
and a password
.
Uppon successful login the API will return a token
.
This
token
will be used for the rest of the session.
Endpoints
- /login
- /user/login
Method type
POST
Parameters
name | description | type | Required | Default Value |
---|---|---|---|---|
username | Username used to connect to the API | string | required | |
password | Password used to connect to the API | string | required |
Responses
status code | description |
---|---|
200 | The request has succeeded |
400 | The server could not understand the request due to invalid syntax |
403 | Forbidden request |
Example Request
POST https://spacesense-api.ew.r.appspot.com/login?username=Login&password=Password
Example Response
{
"message": "Logged in as Login",
"token": "__myToken_"
}