Phase 2: Session Management
Session management handles user authentication and maintains user state across API calls using JWT tokens.Overview
Create Session (Login)
- Request
- Success Response
- Error Responses
Endpoint:
POST /api/v2.1/customer/individual/{customerId}/users/{userId}/sessionsPath Parameters:customerId: Customer UUID from registrationuserId: User UUID from registration
JWT Token Structure
Decoded Token
Token Claims
Using the JWT Token
Include the token in all subsequent API calls:Delete Session (Logout)
- Request
- Response
Endpoint:
DELETE /api/v2.1/customer/individual/{customerId}/users/{userId}/sessions/{sessionId}Headers:Session Security
Lockout Policy
Session Metadata Captured
- Client IP address
- User agent string
- Platform information
- Creation timestamp
- Last activity timestamp
Next Step
After creating a session, proceed to Phase 3: Verification to complete KYC verification.Phase 3: Verification
Submit identity documents for KYC verification