curl --request POST \
--url https://rxnote.ai/api/v1/visits/{id}/regenerate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"template_id": 123,
"clinician_email": "doctor@clinic.example"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({template_id: 123, clinician_email: 'doctor@clinic.example'})
};
fetch('https://rxnote.ai/api/v1/visits/{id}/regenerate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://rxnote.ai/api/v1/visits/{id}/regenerate"
payload = {
"template_id": 123,
"clinician_email": "doctor@clinic.example"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": 90211,
"patient_id": 123,
"status": "recording",
"language": "<string>",
"template_id": 123,
"outputs": [
"transcript"
],
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"icd_codes": {
"code_version": "icd11",
"generated_at": "<string>",
"codes": [
{
"code": "CA02",
"name": "Acute pharyngitis",
"confidence": "high"
}
]
},
"error": {
"code": "TRANSCRIPTION_FAILED",
"message": "<string>"
},
"upload": {
"url": "<string>",
"method": "PUT",
"headers": {
"Content-Type": "audio/webm"
},
"expires_at": "2023-11-07T05:31:56Z"
},
"transcript": {
"text": "<string>",
"duration_seconds": 123,
"segments": [
{
"speaker": 123,
"start_ms": 123,
"end_ms": 123,
"text": "<string>"
}
]
},
"note": {
"template": {
"id": 123,
"name": "<string>"
},
"framework": "soap",
"sections": [
{
"id": "<string>",
"title": "<string>",
"fields": [
{
"id": "<string>",
"label": "<string>",
"text": "<string>"
}
]
}
],
"html": "<string>"
},
"summary": {}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"request_id": "req_Q2w9Lx7Hc4Vb8Np1Zs3Kt6"
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"request_id": "req_Q2w9Lx7Hc4Vb8Np1Zs3Kt6"
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"request_id": "req_Q2w9Lx7Hc4Vb8Np1Zs3Kt6"
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"request_id": "req_Q2w9Lx7Hc4Vb8Np1Zs3Kt6"
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"request_id": "req_Q2w9Lx7Hc4Vb8Np1Zs3Kt6"
}
}Regenerate the note
Writes the visit’s note again from its transcript, optionally with another template — the app’s regenerate. The visit goes back to processing; poll GET /visits/. Scope visits:write.
curl --request POST \
--url https://rxnote.ai/api/v1/visits/{id}/regenerate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"template_id": 123,
"clinician_email": "doctor@clinic.example"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({template_id: 123, clinician_email: 'doctor@clinic.example'})
};
fetch('https://rxnote.ai/api/v1/visits/{id}/regenerate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://rxnote.ai/api/v1/visits/{id}/regenerate"
payload = {
"template_id": 123,
"clinician_email": "doctor@clinic.example"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": 90211,
"patient_id": 123,
"status": "recording",
"language": "<string>",
"template_id": 123,
"outputs": [
"transcript"
],
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"icd_codes": {
"code_version": "icd11",
"generated_at": "<string>",
"codes": [
{
"code": "CA02",
"name": "Acute pharyngitis",
"confidence": "high"
}
]
},
"error": {
"code": "TRANSCRIPTION_FAILED",
"message": "<string>"
},
"upload": {
"url": "<string>",
"method": "PUT",
"headers": {
"Content-Type": "audio/webm"
},
"expires_at": "2023-11-07T05:31:56Z"
},
"transcript": {
"text": "<string>",
"duration_seconds": 123,
"segments": [
{
"speaker": 123,
"start_ms": 123,
"end_ms": 123,
"text": "<string>"
}
]
},
"note": {
"template": {
"id": 123,
"name": "<string>"
},
"framework": "soap",
"sections": [
{
"id": "<string>",
"title": "<string>",
"fields": [
{
"id": "<string>",
"label": "<string>",
"text": "<string>"
}
]
}
],
"html": "<string>"
},
"summary": {}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"request_id": "req_Q2w9Lx7Hc4Vb8Np1Zs3Kt6"
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"request_id": "req_Q2w9Lx7Hc4Vb8Np1Zs3Kt6"
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"request_id": "req_Q2w9Lx7Hc4Vb8Np1Zs3Kt6"
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"request_id": "req_Q2w9Lx7Hc4Vb8Np1Zs3Kt6"
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"request_id": "req_Q2w9Lx7Hc4Vb8Np1Zs3Kt6"
}
}Authorizations
Your API key, created in RxNote under Settings → API: Authorization: Bearer rxn_live_….
Path Parameters
90211
Body
Rewrite the note with this template. Omitted: the visit's current template.
Required with an organization key: the RxNote member acting. With a personal key, omit it or send the owner's own email.
255"doctor@clinic.example"
Response
The visit, now processing.
90211
recording, pending, processing, transcribing, generating-soap, completed, failed, no-speech transcript, note, summary Set once POST /visits/{id}/icd-codes has run.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Only while the status is recording (waiting for the audio).
Show child attributes
Show child attributes
Omitted unless requested; null until ready.
Show child attributes
Show child attributes
Omitted unless requested; null until ready.
Show child attributes
Show child attributes
Omitted unless requested; null until ready.
Show child attributes
Show child attributes
