@RestControllerclass NotesController { @Value("\${tiro.api.key}") private lateinit var apiKey: String private val restTemplate = RestTemplate() @GetMapping("/my-notes") fun getMyNotes(): ResponseEntity<Map<String, Any>> { val headers = HttpHeaders() headers.set("Authorization", "Bearer $apiKey") headers.contentType = MediaType.APPLICATION_JSON val entity = HttpEntity<String>(headers) val response = restTemplate.exchange( "https://api.tiro.ooo/v1/external/notes", HttpMethod.GET, entity, object : ParameterizedTypeReference<Map<String, Any>>() {} ) val data = response.body!! println("Found ${(data["content"] as List<*>).size} notes") return ResponseEntity.ok(data) }}
Tiro returns a paginated list of your notes. Each object contains the title, creation date, processing status, and a guid you use to fetch transcripts, summaries, and documents.Now that you have a list, read the Note Data Model to understand what each guid unlocks — transcripts, summaries, documents, and folders.