{"openapi":"3.0.0","servers":[],"info":{"description":"","version":"1.0.0","title":"AI Lecture Notes Transcriber API","contact":{"email":""},"license":{"name":"","url":""}},"paths":{"/trns_note":{"post":{"tags":["default"],"summary":"transcribe note","operationId":"post_trns_note","description":"Transcribes notes with Claude Sonnet 4.5","responses":{"200":{"description":"Transcription successful and saved to storage"},"500":{"description":"Transcription Unsuccessful"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/transcriber_body"}}},"description":"Username and image."},"parameters":[{"schema":{"type":"string"},"in":"header","name":"Content-Type","description":"Set this to \"application/json\""}]},"parameters":[]},"/auth":{"post":{"summary":"authenticate","tags":[],"responses":{"200":{"description":"Verified"},"400":{"description":"OTP expired or not found"},"401":{"description":"Invalid Code"},"500":{"description":"Internal Server Error"}},"operationId":"post_auth","description":"Generates one-time-password.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"username":{"type":"string","x-stoplight":{"id":"5vfxozatxv3e0"}},"password":{"type":"string","x-stoplight":{"id":"wp0mb5mtpme2p"}},"otp":{"type":"string","x-stoplight":{"id":"w69hd093kuvue"}},"email":{"type":"string","x-stoplight":{"id":"zarqkcnflndu4"}}}}}}}}},"/list_notes":{"get":{"summary":"list notes","tags":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"notes":{"type":"string","x-stoplight":{"id":"ledvc6i2amvkz"}}}}}}},"400":{"description":"Missing username parameter"},"500":{"description":"Internal Lambda Crash","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","x-stoplight":{"id":"vm2yadv2nah8z"}},"details":{"type":"string","x-stoplight":{"id":"xd4cnxg2r9igj"}}}}}}}},"operationId":"list_notes_get","description":"List old notes.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"username":{"type":"string","x-stoplight":{"id":"ryle72ljtmisr"}}}}}}}}},"/register":{"post":{"summary":"register","tags":[],"responses":{"201":{"description":"OTP Sent","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","x-stoplight":{"id":"3g61bh00m0ggf"}},"message":{"type":"string","x-stoplight":{"id":"9ycwcg8u3zrca"}}}}}}},"400":{"description":"Missing Credentials"},"401":{"description":"Invalid Password"}},"operationId":"post-register","description":"Register an account","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"username":{"type":"string","x-stoplight":{"id":"2zrsrgtpyzna7"}},"password":{"type":"string","x-stoplight":{"id":"6a1kn29dln9lb"}}}}}}}}},"/share":{"post":{"summary":"share","tags":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","x-stoplight":{"id":"ck28rxo3v2vqs"}}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","x-stoplight":{"id":"yapr5htr07lra"}}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","x-stoplight":{"id":"jc3ndu29k3m4u"}}}}}}}},"operationId":"post_share","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"recipient_username":{"type":"string","x-stoplight":{"id":"0a0hk44uw59jt"}},"note_id":{"type":"string","x-stoplight":{"id":"nvfbwq5owdttb"}},"sender_username":{"type":"string","x-stoplight":{"id":"ynq9zd8n5ggbo"}}}}}}}}}},"components":{"schemas":{"transcriber_body":{"type":"object","required":["image_data"],"properties":{"username":{"type":"string","default":"anonymous"},"image_data":{"type":"string"}},"description":""}}}}