To authenticate to The Ark server, first you must send a login request, after sending the login request, add the auth-token
key and value to every API request.
Login with a username and password to The Ark server
Type: POST
Request Parameters:
Name | Type | Optional (Default) | Description |
---|---|---|---|
username | string | no | The username to authenticate with |
password | string | no | The password to authenticate with |
Request Example:
{
"username": "test",
"password": "test"
}
Response Example:
{
"auth-token": "XXXXXXXXXXXX"
}