import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/meetings/{meeting_id}/ask/"
payload = {
"message": "<string>",
"source": "typed",
"insight_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"time_zone": "<string>"
}
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({
message: '<string>',
source: 'typed',
insight_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
time_zone: '<string>'
})
};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/meetings/{meeting_id}/ask/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/meetings/{meeting_id}/ask/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"source": "typed",
"insight_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"time_zone": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"turn_status": "<string>",
"turn_error": "<string>",
"turn_events": [
{}
],
"updated_at": "2023-11-07T05:31:56Z",
"refused_exchange": [
{}
]
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"turn_status": "idle",
"turn_error": "<string>",
"turn_events": [
{}
],
"updated_at": "2023-11-07T05:31:56Z",
"chat_history": [
{}
]
}Ask Clara a question during the meeting
Only while Clara is in the call. Clara answers from the transcript so far, the brief and
attachments, her current insights and the store (read-only). The question is screened
like any Clara message: a refused one comes back as refused_exchange with 200 and is
never stored. 202 when the turn is queued; 409 outside the call or while a turn runs.
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/meetings/{meeting_id}/ask/"
payload = {
"message": "<string>",
"source": "typed",
"insight_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"time_zone": "<string>"
}
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({
message: '<string>',
source: 'typed',
insight_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
time_zone: '<string>'
})
};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/meetings/{meeting_id}/ask/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/meetings/{meeting_id}/ask/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"source": "typed",
"insight_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"time_zone": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"turn_status": "<string>",
"turn_error": "<string>",
"turn_events": [
{}
],
"updated_at": "2023-11-07T05:31:56Z",
"refused_exchange": [
{}
]
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"turn_status": "idle",
"turn_error": "<string>",
"turn_events": [
{}
],
"updated_at": "2023-11-07T05:31:56Z",
"chat_history": [
{}
]
}Authorizations
Use Authorization: Bearer <token>. The token is either a user token / OAuth access
token, or a service-account API key (cfk_...). A key is valid on every endpoint and
acts as its service account, an organization member with per-store permissions.
Refused keys answer 403 with Invalid API key., API key revoked.,
API key expired. or API key disabled..
Body
Where the question came from (analytics only).
typed, chip_catch_up, chip_check, chip_next_question, insight The insight card the question was asked from; required when source is insight.
The asker's IANA time zone (e.g. Europe/Paris), for the turn's sent time.