Get Session
Endpoints
Get Session
Retrieve information about a specific chat session
GET
Get Session
Get Session
Retrieves detailed information about a specific chat session, including its status, topic, and metadata.Endpoint
Authentication
Your Nexus API key for authentication
Path Parameters
The unique identifier of the session to retrieve
Response Fields
Unique identifier for the session
Auto-generated topic based on the conversation content. May be null for new sessions.
Current status of the session
ACTIVE- Session is active and can receive messagesEXPIRED- Session has expired due to inactivityCLOSED- Session was manually closed
ISO 8601 timestamp of when the session was created
ISO 8601 timestamp of the most recent message in the session
Total number of messages in the conversation
Additional metadata about the session
Example Usage
Common Use Cases
1. Session Health Check
2. Session Monitoring
3. Session Analytics
Error Responses
Session Lifecycle
Best Practices
Caching
Caching
- Cache session information to reduce API calls
- Invalidate cache when sending new messages
- Set appropriate TTL based on your use case
Error Handling
Error Handling
- Handle 404 errors gracefully
- Donβt retry 404 errors
- Log session IDs for debugging
Monitoring
Monitoring
- Periodically check session status
- Alert on unexpected session expiration
- Track session metrics for optimization
Related Endpoints
- Create Session - Create a new chat session
- Send Message - Send messages to the session
- List Messages - Get conversation history