curl --location 'https://api-v2.opencopilot.so/backend/chat/init' \
--header 'X-Bot-Token: BOT_TOKEN' \
--header 'X-Session-Id: SESSION_ID' \
{
"type": "text",
"response": [
"text" "The copilot response!"
]
}
This endpoint will initiate a chat with your copilot, it will the copilot name, metdata, and other info.
curl --location 'https://api-v2.opencopilot.so/backend/chat/init' \
--header 'X-Bot-Token: BOT_TOKEN' \
--header 'X-Session-Id: SESSION_ID' \
{
"type": "text",
"response": [
"text" "The copilot response!"
]
}
get copilot endpointtextShow properties
curl --location 'https://api-v2.opencopilot.so/backend/chat/init' \
--header 'X-Bot-Token: BOT_TOKEN' \
--header 'X-Session-Id: SESSION_ID' \
{
"type": "text",
"response": [
"text" "The copilot response!"
]
}
Was this page helpful?