Getting Started
To start using the API, complete a few setup steps in Skailer and obtain an access token.
1. Prepare a user
Section titled “1. Prepare a user”- Create a dedicated user in the Skailer interface.
- Assign the required permissions based on your use case.
- Set a password for this user.
2. Authenticate
Section titled “2. Authenticate”Use POST /api/v1/employees/login to obtain a token.
POST https://<ApiDomain />/api/v1/employees/loginContent-Type: application/x-www-form-urlencoded
username=your_email&password=your_passwordExample response:
{ "access_token": "eyJhbG...", "token_type": "bearer"}3. Use the token
Section titled “3. Use the token”All subsequent requests must include the Authorization header:
Authorization: Bearer <your_access_token>4. Validate the token
Section titled “4. Validate the token”You can verify the current token via:
GET /api/v1/employees/check-tokenThe method returns true if the token is valid.