Complete API reference for the Sessions messaging system
404 Not Found
- Session does not exist410 Gone
- Session has expired400 Bad Request
- Invalid content or metadata404 Not Found
- Session not found410 Gone
- Session expired404 Not Found
- Session not found410 Gone
- Session expired422 Unprocessable Entity
- Cannot renew (max duration reached)SessionInfoResponse
Errors:
400 Bad Request
- Invalid timeout configuration404 Not Found
- Session not found410 Gone
- Session expiredSessionInfoResponse
with updated expiration information.
Errors:
404 Not Found
- Session not found410 Gone
- Session expired404 Not Found
- Session not foundStatus Code | Error Type | Description |
---|---|---|
400 | Bad Request | Invalid input parameters or request body |
404 | Not Found | Session or resource not found |
410 | Gone | Session has expired |
422 | Unprocessable Entity | Operation cannot be completed (e.g., max duration reached) |
500 | Internal Server Error | Unexpected server error |
SessionNotFoundError
- Session does not existSessionExpiredError
- Session has exceeded its timeoutSessionCreationError
- Failed to create sessionAgentNotFoundError
- Specified agent not foundInvalidUuidError
- Invalid UUID formatMissingFieldsError
- Required fields missingInvalidContentError
- Message content validation failedInvalidMetadataError
- Metadata exceeds size limitInvalidPaginationError
- Invalid pagination parametersInvalidTimeoutConfigError
- Invalid timeout configurationSessionRenewalError
- Cannot renew sessionMessageSendError
- Failed to send messageVariable | Default | Description |
---|---|---|
SESSION_DEFAULT_TIMEOUT_MINUTES | 30 | Default session timeout |
SESSION_MIN_TIMEOUT_MINUTES | 5 | Minimum allowed timeout |
SESSION_MAX_TIMEOUT_MINUTES | 1440 | Maximum allowed timeout (24 hours) |
SESSION_MAX_DURATION_MINUTES | 720 | Maximum total session duration (12 hours) |
SESSION_WARNING_THRESHOLD_MINUTES | 5 | When to trigger expiration warning |
SESSION_CLEANUP_INTERVAL_MINUTES | 5 | How often to clean expired sessions |
CLEAR_SESSIONS_ON_SHUTDOWN | false | Clear all sessions on server shutdown |