{"openapi":"3.1.0","info":{"title":"Nullnote API","version":"1.13.0","description":"The routes API keys and OAuth apps can reach. Errors are { error: { code, message } } with the HTTP status. Guides: https://nullnote-web.vercel.app/developers"},"servers":[{"url":"https://nullnote-api.nullside.workers.dev"}],"tags":[{"name":"Account"},{"name":"Recordings"},{"name":"Comments"},{"name":"Studio"},{"name":"Folders"},{"name":"Notes"},{"name":"Transcript"},{"name":"Uploads"},{"name":"Ask AI"},{"name":"Meetings"},{"name":"Webhooks"}],"paths":{"/v1/me":{"get":{"operationId":"getMe","tags":["Account"],"summary":"The signed-in user and the active workspace","description":"Needs the `workspace:read` scope.","x-nullnote-scope":"workspace:read","security":[{"bearerAuth":[]},{"oauth2":["workspace:read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"workspace":{"$ref":"#/components/schemas/WorkspaceRef"},"settings":{"type":"object"}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/workspaces":{"get":{"operationId":"getWorkspaces","tags":["Account"],"summary":"The user's workspaces","description":"Needs the `workspace:read` scope.","x-nullnote-scope":"workspace:read","security":[{"bearerAuth":[]},{"oauth2":["workspace:read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Workspace"}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/workspaces/{id}/members":{"get":{"operationId":"getWorkspacesByIdMembers","tags":["Account"],"summary":"The key's or token's workspace members","description":"Only the workspace the key or token belongs to.\n\nNeeds the `workspace:read` scope.","x-nullnote-scope":"workspace:read","security":[{"bearerAuth":[]},{"oauth2":["workspace:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Member"}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sync":{"get":{"operationId":"getSync","tags":["Recordings"],"summary":"Changes since a cursor","description":"Recordings and folders changed after the cursor, including deletions (purged: true).\n\nNeeds the `recordings:read` scope.","x-nullnote-scope":"recordings:read","security":[{"bearerAuth":[]},{"oauth2":["recordings:read"]}],"parameters":[{"name":"since","in":"query","schema":{"type":"integer","minimum":0},"description":"The cursor from the previous page; 0 for everything.","required":false},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500},"required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"recordings":{"type":"array","items":{"$ref":"#/components/schemas/RecordingSummary"}},"folders":{"type":"array","items":{"$ref":"#/components/schemas/Folder"}},"cursor":{"type":"integer"},"hasMore":{"type":"boolean"}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings":{"get":{"operationId":"getRecordings","tags":["Recordings"],"summary":"Recordings, newest first","description":"Needs the `recordings:read` scope.","x-nullnote-scope":"recordings:read","security":[{"bearerAuth":[]},{"oauth2":["recordings:read"]}],"parameters":[{"name":"folderId","in":"query","schema":{"type":"string"},"required":false},{"name":"since","in":"query","schema":{"type":"string","description":"Recorded on or after this date.","format":"date-time"},"required":false},{"name":"trashed","in":"query","schema":{"type":"boolean"},"description":"true lists the Trash.","required":false},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","description":"From the previous page."},"required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"recordings":{"type":"array","items":{"$ref":"#/components/schemas/RecordingSummary"}},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postRecordings","tags":["Recordings"],"summary":"Create a recording (idempotent on its ID)","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"A UUID you make.","format":"uuid"},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"duration":{"type":"number","description":"Seconds."},"source":{"type":"string","enum":["recorded","imported","meeting"]},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"languageHint":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","title","createdAt","duration"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recording"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}":{"get":{"operationId":"getRecordingsById","tags":["Recordings"],"summary":"A recording with its transcript and notes","description":"Needs the `recordings:read` scope.","x-nullnote-scope":"recordings:read","security":[{"bearerAuth":[]},{"oauth2":["recordings:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recording"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patchRecordingsById","tags":["Recordings"],"summary":"Edit, trash or restore a recording","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"baseVersion":{"type":"integer"},"title":{"type":"string"},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"starred":{"type":"boolean"},"trashed":{"type":"boolean"},"segmentEdits":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"}}}}},"required":["baseVersion"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recording"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/audio-url":{"get":{"operationId":"getRecordingsByIdAudioUrl","tags":["Recordings"],"summary":"A short-lived link to the audio","description":"Needs the `recordings:read` scope.","x-nullnote-scope":"recordings:read","security":[{"bearerAuth":[]},{"oauth2":["recordings:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"download","in":"query","schema":{"type":"string","description":"1 for a download link (when the workspace allows downloads)."},"required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"expiresAt":{"type":"string","format":"date-time"}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/video-url":{"get":{"operationId":"getRecordingsByIdVideoUrl","tags":["Recordings"],"summary":"A short-lived link to the video (meeting bots and screen recordings)","description":"Needs the `recordings:read` scope.","x-nullnote-scope":"recordings:read","security":[{"bearerAuth":[]},{"oauth2":["recordings:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"download","in":"query","schema":{"type":"string","description":"1 for a download link (when the workspace allows downloads)."},"required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"expiresAt":{"type":"string","format":"date-time"}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/comments":{"get":{"operationId":"getRecordingsByIdComments","tags":["Comments"],"summary":"A recording's comments","description":"Needs the `recordings:read` scope.","x-nullnote-scope":"recordings:read","security":[{"bearerAuth":[]},{"oauth2":["recordings:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postRecordingsByIdComments","tags":["Comments"],"summary":"Comment on a recording","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/export":{"get":{"operationId":"getRecordingsByIdExport","tags":["Recordings"],"summary":"Export as DOCX, Excel, text, SRT or Markdown","description":"Needs the `recordings:read` scope.","x-nullnote-scope":"recordings:read","security":[{"bearerAuth":[]},{"oauth2":["recordings:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","schema":{"type":"string","enum":["docx","xlsx","txt","srt","md"]},"required":true},{"name":"speakers","in":"query","schema":{"type":"string"},"required":false},{"name":"timestamps","in":"query","schema":{"type":"string"},"required":false},{"name":"notes","in":"query","schema":{"type":"string"},"required":false},{"name":"bookmarks","in":"query","schema":{"type":"string"},"required":false},{"name":"tz","in":"query","schema":{"type":"string","description":"An IANA time zone."},"required":false}],"responses":{"200":{"description":"The file.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/studio":{"get":{"operationId":"getRecordingsByIdStudio","tags":["Studio"],"summary":"A recording's AI studio items","description":"Needs the `recordings:read` scope.","x-nullnote-scope":"recordings:read","security":[{"bearerAuth":[]},{"oauth2":["recordings:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postRecordingsByIdStudio","tags":["Studio"],"summary":"Make an AI studio item (mind map, slides, infographic)","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/studio/{itemId}":{"get":{"operationId":"getStudioByItemId","tags":["Studio"],"summary":"An AI studio item","description":"Needs the `recordings:read` scope.","x-nullnote-scope":"recordings:read","security":[{"bearerAuth":[]},{"oauth2":["recordings:read"]}],"parameters":[{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patchStudioByItemId","tags":["Studio"],"summary":"Edit an AI studio item","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteStudioByItemId","tags":["Studio"],"summary":"Delete an AI studio item","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Done."},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/folders":{"get":{"operationId":"getFolders","tags":["Folders"],"summary":"Folders with their recording counts","description":"Needs the `recordings:read` scope.","x-nullnote-scope":"recordings:read","security":[{"bearerAuth":[]},{"oauth2":["recordings:read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"folders":{"type":"array","items":{"$ref":"#/components/schemas/Folder"}}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postFolders","tags":["Folders"],"summary":"Create a folder","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Folder"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/templates":{"get":{"operationId":"getTemplates","tags":["Notes"],"summary":"Note templates","description":"Needs the `recordings:read` scope.","x-nullnote-scope":"recordings:read","security":[{"bearerAuth":[]},{"oauth2":["recordings:read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Template"}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/speakers":{"get":{"operationId":"getSpeakers","tags":["Transcript"],"summary":"The workspace's speaker library","description":"Saved speaker names, by name. A recording's speaker links to one with libraryId.\n\nNeeds the `recordings:read` scope.","x-nullnote-scope":"recordings:read","security":[{"bearerAuth":[]},{"oauth2":["recordings:read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"speakers":{"type":"array","items":{"$ref":"#/components/schemas/SavedSpeaker"}}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postSpeakers","tags":["Transcript"],"summary":"Save a speaker name to the library","description":"A name that is already there (in any case) returns that entry with 200.\n\nNeeds the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSpeaker"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/search":{"get":{"operationId":"getSearch","tags":["Recordings"],"summary":"Search titles and transcripts","description":"Needs the `recordings:read` scope.","x-nullnote-scope":"recordings:read","security":[{"bearerAuth":[]},{"oauth2":["recordings:read"]}],"parameters":[{"name":"q","in":"query","schema":{"type":"string","minLength":2},"required":true},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50},"required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"recording":{"$ref":"#/components/schemas/RecordingSummary"},"matches":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number"},"snippet":{"type":"string"}}}}}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/transcribe":{"post":{"operationId":"postRecordingsByIdTranscribe","tags":["Recordings"],"summary":"Transcribe (again) in the cloud","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"language":{"type":"string","description":"\"auto\" or a language code."}}}}}},"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/audio/uploads":{"post":{"operationId":"postRecordingsByIdAudioUploads","tags":["Uploads"],"summary":"Start an audio upload","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentType":{"type":"string"},"bytes":{"type":"integer"}},"required":["contentType","bytes"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadStart"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/audio/uploads/{uploadId}/parts/{n}":{"put":{"operationId":"putRecordingsByIdAudioUploadsByUploadIdPartsByN","tags":["Uploads"],"summary":"Upload one part (1-based)","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"uploadId","in":"path","required":true,"schema":{"type":"string"}},{"name":"n","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"etag":{"type":"string"}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/audio/uploads/{uploadId}/complete":{"post":{"operationId":"postRecordingsByIdAudioUploadsByUploadIdComplete","tags":["Uploads"],"summary":"Finish an audio upload (and transcribe)","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"uploadId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"parts":{"type":"array","items":{"type":"object","properties":{"n":{"type":"integer"},"etag":{"type":"string"}}}},"transcribe":{"type":"boolean"}},"required":["parts"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recording"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/audio/uploads/{uploadId}":{"delete":{"operationId":"deleteRecordingsByIdAudioUploadsByUploadId","tags":["Uploads"],"summary":"Cancel an audio upload","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"uploadId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Done."},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/video/uploads":{"post":{"operationId":"postRecordingsByIdVideoUploads","tags":["Uploads"],"summary":"Start a video upload","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentType":{"type":"string","enum":["video/webm","video/mp4"]},"bytes":{"type":"integer"}},"required":["contentType","bytes"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadStart"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/video/uploads/{uploadId}/parts/{n}":{"put":{"operationId":"putRecordingsByIdVideoUploadsByUploadIdPartsByN","tags":["Uploads"],"summary":"Upload one video part","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"uploadId","in":"path","required":true,"schema":{"type":"string"}},{"name":"n","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"etag":{"type":"string"}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/video/uploads/{uploadId}/complete":{"post":{"operationId":"postRecordingsByIdVideoUploadsByUploadIdComplete","tags":["Uploads"],"summary":"Finish a video upload","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"uploadId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"parts":{"type":"array","items":{"type":"object","properties":{"n":{"type":"integer"},"etag":{"type":"string"}}}},"useAsAudio":{"type":"boolean"}},"required":["parts"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recording"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/video/uploads/{uploadId}":{"delete":{"operationId":"deleteRecordingsByIdVideoUploadsByUploadId","tags":["Uploads"],"summary":"Cancel a video upload","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"uploadId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Done."},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/photos/{photoId}":{"put":{"operationId":"putRecordingsByIdPhotosByPhotoId","tags":["Uploads"],"summary":"Upload a photo (JPEG)","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"photoId","in":"path","required":true,"schema":{"type":"string"}},{"name":"time","in":"query","schema":{"type":"number","description":"Seconds into the recording."},"required":false}],"requestBody":{"required":true,"content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"time":{"type":"number"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/speakers/{speakerId}":{"patch":{"operationId":"patchRecordingsByIdSpeakersBySpeakerId","tags":["Transcript"],"summary":"Name a speaker","description":"{ name } names it in this recording only. { name, saveToLibrary: true } also saves the name to the speaker library and links the speaker to it; { libraryId } links it to a saved name; { libraryId: null } unlinks it and keeps the name.\n\nNeeds the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"speakerId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"saveToLibrary":{"type":"boolean"},"libraryId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recording"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/speakers/merge":{"post":{"operationId":"postRecordingsByIdSpeakersMerge","tags":["Transcript"],"summary":"Merge one speaker into another","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string"},"into":{"type":"string"}},"required":["from","into"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recording"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/segments/{segmentId}":{"patch":{"operationId":"patchRecordingsByIdSegmentsBySegmentId","tags":["Transcript"],"summary":"Edit a transcript line","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"segmentId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"speakerId":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recording"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/comments/{commentId}":{"patch":{"operationId":"patchRecordingsByIdCommentsByCommentId","tags":["Comments"],"summary":"Edit a comment","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteRecordingsByIdCommentsByCommentId","tags":["Comments"],"summary":"Delete a comment","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Done."},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/notes":{"post":{"operationId":"postRecordingsByIdNotes","tags":["Notes"],"summary":"Make (or remake) the AI notes","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"templateId":{"type":"string"},"language":{"type":"string"}},"required":["templateId"]}}}},"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/notes/blocks/{blockId}":{"patch":{"operationId":"patchRecordingsByIdNotesBlocksByBlockId","tags":["Notes"],"summary":"Edit a notes section","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"blockId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"string"}},"required":["content"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteBlock"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/notes/blocks/{blockId}/regenerate":{"post":{"operationId":"postRecordingsByIdNotesBlocksByBlockIdRegenerate","tags":["Notes"],"summary":"Rewrite a notes section","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"blockId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"instructions":{"type":"string"}}}}}},"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/folders/{id}":{"patch":{"operationId":"patchFoldersById","tags":["Folders"],"summary":"Rename a folder","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Folder"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteFoldersById","tags":["Folders"],"summary":"Delete a folder (its recordings move to no folder)","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Done."},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/speakers/{id}":{"patch":{"operationId":"patchSpeakersById","tags":["Transcript"],"summary":"Rename a saved speaker (and the speaker in every linked recording)","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSpeaker"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteSpeakersById","tags":["Transcript"],"summary":"Delete a saved speaker (linked recordings keep the name)","description":"Needs the `recordings:write` scope.","x-nullnote-scope":"recordings:write","security":[{"bearerAuth":[]},{"oauth2":["recordings:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Done."},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/ask":{"post":{"operationId":"postAsk","tags":["Ask AI"],"summary":"Ask AI about recordings (a stream)","description":"Server-sent events: conversation, citation, notice, delta, done and error. Counts as an AI request.\n\nNeeds the `ai` scope.","x-nullnote-scope":"ai","security":[{"bearerAuth":[]},{"oauth2":["ai"]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string"},"conversationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"scope":{"type":"object","properties":{"recordingIds":{"type":"array","items":{"type":"string"}}}}},"required":["question"]}}}},"responses":{"200":{"description":"The answer as server-sent events.","content":{"text/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/ask/conversations":{"get":{"operationId":"getAskConversations","tags":["Ask AI"],"summary":"Ask AI conversations","description":"Needs the `ai` scope.","x-nullnote-scope":"ai","security":[{"bearerAuth":[]},{"oauth2":["ai"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"updatedAt":{"type":"string"}}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/ask/conversations/{id}":{"get":{"operationId":"getAskConversationsById","tags":["Ask AI"],"summary":"An Ask AI conversation","description":"Needs the `ai` scope.","x-nullnote-scope":"ai","security":[{"bearerAuth":[]},{"oauth2":["ai"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteAskConversationsById","tags":["Ask AI"],"summary":"Delete an Ask AI conversation","description":"Needs the `ai` scope.","x-nullnote-scope":"ai","security":[{"bearerAuth":[]},{"oauth2":["ai"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Done."},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recordings/{id}/suggested-questions":{"get":{"operationId":"getRecordingsByIdSuggestedQuestions","tags":["Ask AI"],"summary":"Questions worth asking about a recording","description":"Needs the `ai` scope.","x-nullnote-scope":"ai","security":[{"bearerAuth":[]},{"oauth2":["ai"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"questions":{"type":"array","items":{"type":"string"}}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/vision/extract":{"post":{"operationId":"postVisionExtract","tags":["Ask AI"],"summary":"Scan an image to text or a table","description":"Needs the `ai` scope.","x-nullnote-scope":"ai","security":[{"bearerAuth":[]},{"oauth2":["ai"]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/vision/export":{"post":{"operationId":"postVisionExport","tags":["Ask AI"],"summary":"Export a scanned table to Excel","description":"Needs the `ai` scope.","x-nullnote-scope":"ai","security":[{"bearerAuth":[]},{"oauth2":["ai"]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"The file.","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/meetings":{"post":{"operationId":"postMeetings","tags":["Meetings"],"summary":"Send a meeting bot","description":"Needs the `meetings` scope.","x-nullnote-scope":"meetings","security":[{"bearerAuth":[]},{"oauth2":["meetings"]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"meetingUrl":{"type":"string"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"joinAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["meetingUrl"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"meeting":{"$ref":"#/components/schemas/Meeting"},"recording":{"$ref":"#/components/schemas/Recording"}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"getMeetings","tags":["Meetings"],"summary":"Meeting bots","description":"Needs the `meetings` scope.","x-nullnote-scope":"meetings","security":[{"bearerAuth":[]},{"oauth2":["meetings"]}],"parameters":[{"name":"active","in":"query","schema":{"type":"string","description":"1 for bots that are scheduled or in a call."},"required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"meetings":{"type":"array","items":{"$ref":"#/components/schemas/Meeting"}}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/meetings/{id}":{"get":{"operationId":"getMeetingsById","tags":["Meetings"],"summary":"A meeting bot","description":"Needs the `meetings` scope.","x-nullnote-scope":"meetings","security":[{"bearerAuth":[]},{"oauth2":["meetings"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"meeting":{"$ref":"#/components/schemas/Meeting"}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteMeetingsById","tags":["Meetings"],"summary":"Cancel a bot","description":"Needs the `meetings` scope.","x-nullnote-scope":"meetings","security":[{"bearerAuth":[]},{"oauth2":["meetings"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"meeting":{"$ref":"#/components/schemas/Meeting"}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/meetings/{id}/leave":{"post":{"operationId":"postMeetingsByIdLeave","tags":["Meetings"],"summary":"Make the bot leave","description":"Needs the `meetings` scope.","x-nullnote-scope":"meetings","security":[{"bearerAuth":[]},{"oauth2":["meetings"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"meeting":{"$ref":"#/components/schemas/Meeting"}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/calendar/events":{"get":{"operationId":"getCalendarEvents","tags":["Meetings"],"summary":"Upcoming calendar meetings","description":"Needs the `meetings` scope.","x-nullnote-scope":"meetings","security":[{"bearerAuth":[]},{"oauth2":["meetings"]}],"parameters":[{"name":"days","in":"query","schema":{"type":"integer","minimum":1,"maximum":14},"required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"events":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/calendar/connections":{"get":{"operationId":"getCalendarConnections","tags":["Meetings"],"summary":"Connected calendars","description":"Needs the `meetings` scope.","x-nullnote-scope":"meetings","security":[{"bearerAuth":[]},{"oauth2":["meetings"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/developer/webhooks":{"get":{"operationId":"getDeveloperWebhooks","tags":["Webhooks"],"summary":"Webhooks (a key or token sees the ones it made)","description":"Needs the `webhooks` scope.","x-nullnote-scope":"webhooks","security":[{"bearerAuth":[]},{"oauth2":["webhooks"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"webhooks":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postDeveloperWebhooks","tags":["Webhooks"],"summary":"Create a webhook","description":"Needs the `webhooks` scope.","x-nullnote-scope":"webhooks","security":[{"bearerAuth":[]},{"oauth2":["webhooks"]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"A public https URL."},"events":{"type":"array","items":{"type":"string","enum":["recording.created","recording.transcribed","notes.ready","recording.trashed","recording.deleted"]}},"description":{"type":"string"}},"required":["url","events"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"webhook":{"$ref":"#/components/schemas/Webhook"},"secret":{"type":"string","description":"whsec_…, shown once."}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/developer/webhooks/{id}":{"patch":{"operationId":"patchDeveloperWebhooksById","tags":["Webhooks"],"summary":"Change or turn off a webhook","description":"Needs the `webhooks` scope.","x-nullnote-scope":"webhooks","security":[{"bearerAuth":[]},{"oauth2":["webhooks"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"events":{"type":"array","items":{"type":"string","enum":["recording.created","recording.transcribed","notes.ready","recording.trashed","recording.deleted"]}},"description":{"type":"string"},"disabled":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"webhook":{"$ref":"#/components/schemas/Webhook"}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteDeveloperWebhooksById","tags":["Webhooks"],"summary":"Delete a webhook","description":"Needs the `webhooks` scope.","x-nullnote-scope":"webhooks","security":[{"bearerAuth":[]},{"oauth2":["webhooks"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Done."},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/developer/webhooks/{id}/test":{"post":{"operationId":"postDeveloperWebhooksByIdTest","tags":["Webhooks"],"summary":"Send a ping event now","description":"Needs the `webhooks` scope.","x-nullnote-scope":"webhooks","security":[{"bearerAuth":[]},{"oauth2":["webhooks"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"delivery":{"$ref":"#/components/schemas/WebhookDelivery"}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/developer/webhooks/{id}/deliveries":{"get":{"operationId":"getDeveloperWebhooksByIdDeliveries","tags":["Webhooks"],"summary":"The last 50 deliveries","description":"Needs the `webhooks` scope.","x-nullnote-scope":"webhooks","security":[{"bearerAuth":[]},{"oauth2":["webhooks"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"deliveries":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}}}}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The scope, role or a workspace policy doesn’t allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit (120 requests a minute per key or app).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","not_found","invalid","conflict","too_large","rate_limited","quota_exceeded","upstream","not_configured","not_member"]},"message":{"type":"string"},"policy":{"type":"string","description":"Set when a workspace policy refused the request."}},"required":["code","message"]}},"required":["error"]},"WorkspaceRef":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"Workspace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"personal":{"type":"boolean"},"role":{"type":"string","enum":["owner","admin","member"]}}},"Member":{"type":"object","properties":{"userId":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"role":{"type":"string"},"joinedAt":{"type":"string"}}},"Folder":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"recordingCount":{"type":"integer"},"purged":{"type":"boolean"}}},"Template":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"builtIn":{"type":"boolean"},"sections":{"type":"array","items":{"type":"object"}}}},"UploadStart":{"type":"object","properties":{"uploadId":{"type":"string"},"partSize":{"type":"integer"},"partCount":{"type":"integer"}}},"Segment":{"type":"object","properties":{"id":{"type":"string"},"start":{"type":"number"},"end":{"type":"number"},"speakerId":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"},"kind":{"type":"string","enum":["speech","note"]}}},"Speaker":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"libraryId":{"type":"string","description":"The speaker library entry it is linked to; absent when its name is its own."}}},"SavedSpeaker":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}}},"NoteBlock":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["summary","bullets","actionItems","chapters","topics","custom"]},"title":{"type":"string"},"content":{"type":"string","description":"Markdown."},"position":{"type":"integer"},"items":{"type":"array","items":{"type":"object"}}}},"RecordingSummary":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"title":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"version":{"type":"integer"},"duration":{"type":"number","description":"Seconds."},"source":{"type":"string","enum":["recorded","imported","meeting"]},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"starred":{"type":"boolean"},"trashedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"excerpt":{"type":"string"},"languageHint":{"anyOf":[{"type":"string"},{"type":"null"}]},"wordsLanguage":{"anyOf":[{"type":"string","description":"Word by word: the language a live session worded the recording into. Open it with word by word on, in this language."},{"type":"null"}]},"audio":{"type":"object","properties":{"state":{"type":"string"},"bytes":{"type":"integer"}}},"transcription":{"type":"object","properties":{"state":{"type":"string"},"engine":{"anyOf":[{"type":"string"},{"type":"null"}]},"language":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"notes":{"type":"object","properties":{"state":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"purged":{"type":"boolean"}}},"Recording":{"allOf":[{"$ref":"#/components/schemas/RecordingSummary"},{"type":"object","properties":{"segments":{"type":"array","items":{"$ref":"#/components/schemas/Segment"}},"speakers":{"type":"array","items":{"$ref":"#/components/schemas/Speaker"}},"notes":{"type":"object","properties":{"state":{"type":"string"},"templateId":{"anyOf":[{"type":"string"},{"type":"null"}]},"language":{"anyOf":[{"type":"string"},{"type":"null"}]},"blocks":{"type":"array","items":{"$ref":"#/components/schemas/NoteBlock"}}}},"bookmarks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"time":{"type":"number"},"kind":{"type":"string"},"note":{"type":"string"}}}},"photos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"time":{"type":"number"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}}]},"Meeting":{"type":"object","properties":{"id":{"type":"string"},"recordingId":{"type":"string"},"title":{"type":"string"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}]},"meetingUrl":{"type":"string"},"status":{"type":"string"},"joinAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}}},"Webhook":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"workspace":{"$ref":"#/components/schemas/WorkspaceRef"},"disabled":{"type":"boolean"},"disabledReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"lastDeliveryAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastStatus":{"anyOf":[{"type":"integer"},{"type":"null"}]}}},"WebhookDelivery":{"type":"object","properties":{"id":{"type":"string"},"event":{"type":"string"},"at":{"type":"string"},"status":{"anyOf":[{"type":"integer"},{"type":"null"}]},"durationMs":{"anyOf":[{"type":"integer"},{"type":"null"}]},"attempt":{"type":"integer"},"state":{"type":"string","enum":["pending","delivered","failed","skipped"]}}},"WebhookEvent":{"type":"object","properties":{"id":{"type":"string","description":"evt_…"},"type":{"type":"string","enum":["recording.created","recording.transcribed","notes.ready","recording.trashed","recording.deleted","ping"]},"createdAt":{"type":"string"},"workspaceId":{"type":"string"},"data":{"type":"object","properties":{"recording":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"createdAt":{"type":"string"},"duration":{"type":"number"},"source":{"type":"string"},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string"}}}}}}}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key (nnk_…) or an OAuth access token (nno_…)."},"oauth2":{"type":"oauth2","description":"Authorization code with PKCE (S256). Refresh tokens rotate.","flows":{"authorizationCode":{"authorizationUrl":"https://nullnote-api.nullside.workers.dev/oauth/authorize","tokenUrl":"https://nullnote-api.nullside.workers.dev/oauth/token","refreshUrl":"https://nullnote-api.nullside.workers.dev/oauth/token","scopes":{"workspace:read":"See your account, your workspaces and their members","recordings:read":"Read your recordings, transcripts and notes","recordings:write":"Create, edit and upload recordings, and make notes","ai":"Ask AI about your recordings and scan images","meetings":"See your upcoming meetings and send meeting bots","webhooks":"Send events from your workspace to the app"}}}}}}}