Admin API

The Admin API provides a set of endpoints that allow administrators to authenticate and interact with the system securely. All requests are designed to be simple, predictable, and safe.

Authentication

The Admin API uses Laravel Sanctum for authentication. Before accessing protected resources, an admin must authenticate using the login endpoint.

  • POST /login — Authenticate an admin and receive an access token

Login

Use this endpoint to log in as an administrator. A successful request will authenticate the admin and return a valid session or token (depending on your Sanctum configuration).

  • POST /login

    curl --location 'base_url/admin/login' \
        --header 'Accept: application/json' \
        --header 'api-key: api_key' \
        --form 'username="[email protected]"' \
        --form 'password="password"'
    

Make sure to replace base_url and api_key with your actual credentials.

On this Page

On this Page