Log in and obtain an auth token
loginGiven a base URL and credentials, auto-detects the login endpoint, submits email/username and password, extracts the authentication token, and reports exactly what worked.
Instructions
Given a base URL and credentials, auto-detects the login endpoint, posts the credentials (trying email/username field variants), and extracts the token from the response. Returns the token and reports exactly what worked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Project root path (used to auto-detect login endpoint). | |
| role | No | Label for this credential. | user |
| No | Email identifier. | ||
| baseUrl | No | API base URL. If omitted, the top detected candidate is used. | |
| password | Yes | Password. | |
| username | No | Username identifier (if not email). | |
| loginPath | No | Override login endpoint path. |