diff --git a/docs/introduction/Kuvera-Unofficial-API-Documentation.md b/docs/introduction/Kuvera-Unofficial-API-Documentation.md index 874a287..8c293a0 100644 --- a/docs/introduction/Kuvera-Unofficial-API-Documentation.md +++ b/docs/introduction/Kuvera-Unofficial-API-Documentation.md @@ -16,6 +16,8 @@ Welcome to the unofficial Kuvera API docs. Kuvera has a decent good read-only AP 6. Top bought, sold, and watched funds on Kuvera 7. Fixed Deposit Plans 8. Crypto Tokens (in INR) +9. Gold rates, both hisorical and latest +10. Exchange rate for USD ## Authentication diff --git a/reference/Kuvera.yaml b/reference/Kuvera.yaml index d96fbb3..102d186 100644 --- a/reference/Kuvera.yaml +++ b/reference/Kuvera.yaml @@ -10,6 +10,7 @@ info: description: Unofficial read API specification for Kuvera. See README on left to get started. servers: - url: 'https://api.kuvera.in' + description: Kuvera Production API Server paths: /mf/api/v4/fund_schemes/list.json: get: @@ -857,6 +858,80 @@ paths: - current_gold_price operationId: current_gold_price description: Returns current gold price at which you can buy/sell Gold on Kuvera + /api/v3/users/authenticate.json: + post: + summary: Login User + operationId: authenticate_user + description: Authenticates a use and gets a JWT token + requestBody: + content: + application/json: + schema: + description: '' + type: object + properties: + email: + type: string + minLength: 1 + format: email + password: + type: string + minLength: 1 + format: password + v: + type: string + minLength: 1 + description: Application Version + example: 1.179.14 + required: + - email + - password + examples: + Sample Input: + value: + email: user@example.com + password: pa$$word + v: 1.179.14 + description: Email and Password + responses: + '200': + description: OK + content: + application/json: + schema: + description: '' + type: object + properties: + status: + type: string + minLength: 1 + description: '"success" if login worked' + token: + type: string + minLength: 1 + description: JWT Token + name: + type: string + minLength: 1 + description: User's name + email: + type: string + minLength: 1 + description: User's email address + profile: + description: Set to null + new_user: + type: boolean + description: '' + required: + - status + - token + - name + - email + - new_user + tags: + - Kuvera + - Authentication components: schemas: Mutual-Fund: @@ -1084,4 +1159,4 @@ tags: - name: Index Data - name: Fixed Deposit - name: Crypto -security: [] + - name: Authentication