Authentication in the API uses tokens. A token is acquired by the login method using a regular Arigi user ID and password. The token is then passed in the Authorization header as the Bearer scheme.

POST /api/v1/login

Log in by acquiring a token.

Example request body:

    "userid": "admin",
    "password": "arigi"

Example response body:


Subsequent API requests should then include the following header:

Authorization: Bearer MTUwOTE3NzMz...L8XrRbgCngaFabirdX0=

Note that this scheme is only secure over a secure channel such as HTTPS. Arigi uses HTTPS by default.