Skip to content

Get a prescription request

GET
/prescription/{prescriptionId}
curl --request GET \
--url https://client-api.abi.ai/prescription/8910zyx321cba \
--header 'Authorization: Bearer <token>'

Retrieve a specific form-based prescription request by its consultation identifier. A 404 is returned when the request does not exist for the authenticated partner.

prescriptionId
required
string

The prescription request’s consultation identifier.

Example
8910zyx321cba

Form-based prescription request returned, including its current status and any available professional response or prescription file.

Media typeapplication/json

Current state and available artifacts for a prescription request.

object
consultationId

Identifier for the consultation behind the prescription request.

string
userId

Abi user identifier.

string
status

Current prescription workflow status returned by the consultation service.

string
Allowed values: new open claimed resolved canceled closed closedworating onGoingVideoCall videoCallEnded waitingforrating waitingForInfo waitingForSwap
createdAt
string format: date-time
questions
Array<object>
object
question

The question submitted by the user.

string
answer

The response provided by the healthcare professional

string
attachments

Images or documents provided through the approved journey.

Array<string>
professional

Information about the professional who resolved a consultation, when available.

object
name
string
title
string
specialties
Array<string>
licenses
Array<object>
object
licenseNumber
string
countries
Array<string>
profileUrl
string format: uri
createdAt

Time this question was recorded.

string format: date-time
prescription
object
pdfUrl

Short-lived URL of the prescription file

string format: uri
integration

Configured prescription integration.

string
duration
string
instructions
string
createdAt
string format: date-time
quantity
string
medication
string
frequency
string
prescriptionDetail

Detailed prescription data returned when available.

object
key
additional properties
any
lastClaim

Latest professional claim

object
professional

Information about the professional who resolved a consultation, when available.

object
name
string
title
string
specialties
Array<string>
licenses
Array<object>
object
licenseNumber
string
countries
Array<string>
profileUrl
string format: uri
indicationSurveyUrl

Short-lived URL for the completed indication survey.

string format: uri
isRefused

Whether a healthcare professional refused the request.

boolean
rating

User rating

number
>= 1 <= 5
caseConsultationPdf

A consultation document that is available to retrieve.

object
status
string
Allowed values: CREATING CREATED
type
string
Allowed values: PDF
url

Short-lived download URL when the file is ready.

string format: uri
paymentInformation

Payment information returned for consultations that require a user payment.

object
userIsRequiredToPay

Whether payment is required before the consultation can proceed.

boolean
url

Payment URL when payment is required.

string format: uri
price

Price of the consultation

number
currency

ISO 4217 currency code

string
sickNotes

Sick notes issued for this prescription request

Array<object>
object
key
additional properties
any
referrals

Referrals issued for this prescription request

Array<object>
object
key
additional properties
any
Example
{
"consultationId": "8910zyx321cba",
"status": "resolved",
"userId": "abi12345",
"createdAt": "2025-08-28T10:12:30.000Z",
"isRefused": false,
"prescription": {
"pdfUrl": "https://clientdomain.example/prescriptions/8910zyx321cba.pdf",
"medication": "Example medication",
"quantity": "30",
"frequency": "Once daily",
"duration": "30 days",
"instructions": "Take with food."
},
"indicationSurveyUrl": "https://clientdomain.example/surveys/8910zyx321cba",
"questions": [
{
"question": "I need help renewing my prescription.",
"answer": "Your prescription has been approved.",
"attachments": []
}
]
}

Request could not be completed.

Media typeapplication/json
object
code

Short machine-readable error code.

string
message

Human-readable explanation of the error.

string
Examplegenerated
{
"code": "example",
"message": "example"
}