Start a conversation
const url = 'https://client-api.abi.ai/v2/health-navigator/users/abi1234/conversations';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"context":{"policy":"standard","age":30}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://client-api.abi.ai/v2/health-navigator/users/abi1234/conversations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "context": { "policy": "standard", "age": 30 } }'Create a Health Navigator chat session for the user. Supply optional partner-approved context that matches the schema agreed for the configured journey; retain the returned conversation identifier for subsequent requests.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The Abi identifier of the user account.
Example
abi1234Request Bodyrequired
Section titled “Request Bodyrequired”Start a conversation with optional partner-approved context. The context shape is configured per partner and must match the agreed journey schema.
object
Example
{ "context": { "policy": "standard", "age": 30 }}Responses
Section titled “Responses”Conversation started. The response contains the conversation identifier and its initial status.
object
Abi user identifier for the conversation.
object
Conversation identifier.
Current conversation lifecycle status.
Example
{ "userId": "abi12345", "conversationInfo": { "id": "01HK8GGQ123456789ABCDEFGHI", "status": "OPEN" }}Request could not be completed.
object
Short machine-readable error code.
Human-readable explanation of the error.
Examplegenerated
{ "code": "example", "message": "example"}Request could not be completed.
object
Short machine-readable error code.
Human-readable explanation of the error.
Examplegenerated
{ "code": "example", "message": "example"}