Add a consultation follow-up
const url = 'https://client-api.abi.ai/consultation/8910zyx321cba';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"question":"The symptoms are still present today. What should I do next?","attachments":["https://clientdomain.example/attachments/follow-up-image.jpg"]}'};
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/consultation/8910zyx321cba \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "question": "The symptoms are still present today. What should I do next?", "attachments": [ "https://clientdomain.example/attachments/follow-up-image.jpg" ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The Abi identifier of the consultation.
Example
8910zyx321cbaRequest Bodyrequired
Section titled “Request Bodyrequired”Add one follow-up question to an existing consultation.
object
The user identifier when required by the configured consultation journey.
Example
abi12345The follow-up question submitted by the user.
Example
The symptoms are still present today. What should I do next?Optional approved image or document URLs supplied with the follow-up.
Example
[ "https://clientdomain.example/attachments/follow-up-image.jpg"]Example
{ "question": "The symptoms are still present today. What should I do next?", "attachments": [ "https://clientdomain.example/attachments/follow-up-image.jpg" ]}Responses
Section titled “Responses”Follow-up added. The response contains the full consultation, including the new unanswered question.
The durable record returned by the consultation endpoints. Fields such as answers, professional information, files, and ratings appear as the consultation progresses.
object
The Abi identifier for the consultation.
The Abi identifier of the user who submitted the consultation.
The current consultation workflow status.
The date and time the consultation was created in Abi.
The medical questions and, when available, their answers and professional information.
object
The question submitted by the user.
The response provided by the healthcare professional
Images or documents provided through the approved journey.
Information about the professional who resolved a consultation, when available.
object
object
Time this question was recorded.
User rating recorded when the consultation was closed.
The healthcare professional associated with the latest claim
object
Information about the professional who resolved a consultation, when available.
object
object
Short-lived URL for the completed indication survey
A consultation document that is available to retrieve.
object
Short-lived download URL when the file is ready.
Payment information returned for consultations that require a user payment.
object
Whether payment is required before the consultation can proceed.
Payment URL when payment is required.
Price of the consultation
ISO 4217 currency code
Structured medical-advice classification when it is available for the consultation.
object
Sick notes issued for this consultation when available.
object
Referrals issued for this consultation when available.
object
Example
{ "consultationId": "8910zyx321cba", "status": "open", "userId": "abi12345", "createdAt": "2025-08-28T10:12:30.000Z", "questions": [ { "question": "I have a burning sensation after dinner. Could this be acid reflux?", "answer": "It may be reflux. Avoid known triggers and consult a clinician if symptoms continue or worsen.", "attachments": [ "https://clientdomain.example/attachments/consultation-image.jpg" ], "professional": { "name": "Dr Jane Doe", "title": "physician" }, "createdAt": "2025-08-28T10:12:30.000Z" }, { "question": "The symptoms are still present today. What should I do next?", "attachments": [ "https://clientdomain.example/attachments/follow-up-image.jpg" ], "createdAt": "2025-08-29T09:45:00.000Z" } ], "lastClaim": { "professional": { "name": "Dr Jane Doe", "title": "physician" } }}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"}