Create Conversation
curl --request POST \
--url https://api.formbharo.artpark.ai/api/v1/conversations \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>"
}
'import requests
url = "https://api.formbharo.artpark.ai/api/v1/conversations"
payload = { "agent_id": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"conversation_id": "<string>",
"token": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Agents
Create Conversation
Start a conversation and return the token that authorizes its answers.
Refused with 403 when the workspace has used its calling minutes for this month.
Open on purpose: anyone who can open an agent’s call page can start a call. The id is generated here rather than accepted from the caller, so one caller cannot name another caller’s conversation and read or overwrite it.
POST
/
api
/
v1
/
conversations
Create Conversation
curl --request POST \
--url https://api.formbharo.artpark.ai/api/v1/conversations \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>"
}
'import requests
url = "https://api.formbharo.artpark.ai/api/v1/conversations"
payload = { "agent_id": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"conversation_id": "<string>",
"token": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}