Endpoint
Headers
Must be
application/jsonAuthentication method. Use one of:
- Basic authentication:
Basic base64({login}:{password}) - User token:
user_token {your_user_token}
Authorization string provided by the GLPI API configuration. Required if configured in GLPI.
Query Parameters
Get the full session data. Useful if you want to login and access session data in one request.
Response
The session token to use for subsequent API requests
Full session data (only when
get_full_session=true)Examples
Basic Authentication
User Token with Full Session
Status Codes
200 OK- Session initialized successfully400 Bad Request- Error in input parameters401 Unauthorized- Invalid credentials or user token
Notes
- You can provide authentication via HTTP Basic Auth (login/password) or user token
- User tokens can be found in User Preferences under ‘Remote access key’
- The session token must be included in all subsequent API requests via the
Session-Tokenheader - Session tokens are used to maintain read-only sessions by default for parallel API calls