Deprixa Plus — API Reference · Authentication
The API uses Laravel Sanctum bearer tokens. Obtain a token via the client-token endpoint, then include it in every request as an Authorization header.
Obtain a Token
| Method | POST |
|---|---|
| URL | /api/v1/auth/client-token |
| Auth | None (this is the authentication endpoint) |
Request body (JSON):
json Copy
{ "email": "admin@deprixa.com", "password": "your-password", "device_name": "My Integration" }
Response (200):
json Copy
{ "token": "1|abc123def456...", "token_type": "Bearer" }
Using the Token
Include the token in every subsequent request:
bash Copy
curl -H "Authorization: Bearer 1|abc123def456..." \ -H "Accept: application/json" \ https://yourdomain.com/api/v1/shipments