request
Make authenticated API calls with automatic token management. This tool handles login and token renewal transparently, returning full response data including authentication details.
Instructions
Makes an authenticated API call. Handles login automatically — if the token is expired it re-logins transparently. Returns the full response body plus login_data (which contains IDs like pharmacyId returned from login).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | HTTP method | |
| endpoint | Yes | API path, e.g. /Incident/getMyForms/0/10 | |
| body | No | Request body for POST/PUT/PATCH | |
| headers | No | Additional headers to include | |
| skip_auth | No | Set true to skip the Authorization header (e.g. for public endpoints) |