Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 852 Bytes

api-authentication.md

File metadata and controls

30 lines (24 loc) · 852 Bytes

API Authentication

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

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"
}