Mediloop
DocsAPIsPrescription APISign prescription
Prescription API

Sign prescription

Sign a clinically validated prescription to make it active and immutable.

POST/prescriptions/{id}/signOAuth 2.0prescriptions.sign201 Created

Authentication

OAuth 2.0

Required

Permissions

prescriptions.sign

Required

Rate limit

300 requests / min

Default

Caching

No caching

Not applicable

Response

201 Created

Path parameters

ParameterTypeRequiredDescription
iduuidYesPrescription identifier

Request headers

HeaderTypeRequiredDescription
Idempotency-KeystringNoPrevents duplicate signing

Request body

FieldTypeRequiredDescription
signature_methodstringYesSignature method
signed_byuuidYesPrescriber identifier
certificate_idstringNoCertificate/key reference
notesstringNoAudit note

Example request

cURL

curl -X POST "https://api.mediloop.com/v1/prescriptions/presc_456/sign" \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"signature_method":"qualified_electronic","signed_by":"prac_123"}'

Example response

201 Created
{
  "data": {"id":"presc_456","status":"signed","snapshot_hash":"sha256:..."}
}

Example response

Responses use stable identifiers and lifecycle status values so clients can safely coordinate clinical and pharmacy workflows.

Errors

HTTPDescription
200Request completed successfully
201Resource/action created
400Validation error
401Authentication required
403Insufficient permission or scope
404Prescription not found
409Lifecycle or concurrency conflict
422Unprocessable clinical/request data

Workflow

draft

Created by provider

clinically_validated

Clinically validated

signed

Digitally signed

routed

Sent to pharmacy

dispensed

Dispensed to patient