Attach Analysis
POST
https://x.kupe.in
/
v1
/
agents
/
{agent_id}
/
post-call-analyses
Attach Analysis
import requests
url = "https://x.kupe.in/v1/agents/{agent_id}/post-call-analyses"
payload = { "post_call_analysis_id": "<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({post_call_analysis_id: '<string>'})
};
fetch('https://x.kupe.in/v1/agents/{agent_id}/post-call-analyses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://x.kupe.in/v1/agents/{agent_id}/post-call-analyses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"post_call_analysis_id": "<string>"
}
'{
"agent_id": "<string>",
"post_call_analysis_id": "<string>",
"enabled": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Project API key (sk-kupe-...) or a Supabase user JWT.
Path Parameters
⌘I
Attach Analysis
import requests
url = "https://x.kupe.in/v1/agents/{agent_id}/post-call-analyses"
payload = { "post_call_analysis_id": "<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({post_call_analysis_id: '<string>'})
};
fetch('https://x.kupe.in/v1/agents/{agent_id}/post-call-analyses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://x.kupe.in/v1/agents/{agent_id}/post-call-analyses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"post_call_analysis_id": "<string>"
}
'{
"agent_id": "<string>",
"post_call_analysis_id": "<string>",
"enabled": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}
