Ask across notes
curl --request POST \
--url https://audream-api.tulingbc.com/v1/ask \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"question": "What decisions were made about the launch date?"
}
'import requests
url = "https://audream-api.tulingbc.com/v1/ask"
payload = { "question": "What decisions were made about the launch date?" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({question: 'What decisions were made about the launch date?'})
};
fetch('https://audream-api.tulingbc.com/v1/ask', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import Foundation
let parameters = ["question": "What decisions were made about the launch date?"] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://audream-api.tulingbc.com/v1/ask")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"question\": \"What decisions were made about the launch date?\"\n}")
val request = Request.Builder()
.url("https://audream-api.tulingbc.com/v1/ask")
.post(body)
.addHeader("Authorization", "Bearer <token>")
.addHeader("Content-Type", "application/json")
.build()
val response = client.newCall(request).execute(){
"answer": "<string>",
"note_ids": [
"<string>"
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}Ask
Ask across notes
Answers only from processed notes owned by the authenticated account.
POST
https://audream-api.tulingbc.com
/
v1
/
ask
Ask across notes
curl --request POST \
--url https://audream-api.tulingbc.com/v1/ask \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"question": "What decisions were made about the launch date?"
}
'import requests
url = "https://audream-api.tulingbc.com/v1/ask"
payload = { "question": "What decisions were made about the launch date?" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({question: 'What decisions were made about the launch date?'})
};
fetch('https://audream-api.tulingbc.com/v1/ask', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import Foundation
let parameters = ["question": "What decisions were made about the launch date?"] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://audream-api.tulingbc.com/v1/ask")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"question\": \"What decisions were made about the launch date?\"\n}")
val request = Request.Builder()
.url("https://audream-api.tulingbc.com/v1/ask")
.post(body)
.addHeader("Authorization", "Bearer <token>")
.addHeader("Content-Type", "application/json")
.build()
val response = client.newCall(request).execute(){
"answer": "<string>",
"note_ids": [
"<string>"
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
API key beginning with audream_sk_.
Body
application/json