API Overview¶
The EMR API is a RESTful web service that allows you to integrate with Spry PT. This section provides a comprehensive reference for all available endpoints.
Base URL¶
Every path on this host is served under /apis — that prefix is the API gateway, and the paths on the following pages already include it. Dropping it does not 404: the host serves the web application on everything else, so a request without /apis returns the app's HTML page with a 200.
Content Type¶
All requests and responses use JSON format:
Request Headers¶
| Header | Required | Description |
|---|---|---|
Authorization |
Yes | Bearer token for authentication |
Content-Type |
Yes* | Must be application/json for POST/PUT/PATCH |
Accept |
Recommended | Set to application/json |
Request Body¶
Request bodies must be valid JSON:
Response Structure¶
Standard Response Format¶
All responses follow a consistent structure:
Success Response¶
{
"code": 2000,
"data": {
"id": "patient_123",
"first_name": "John",
"last_name": "Doe"
},
"message": "Success"
}
Error Response¶
Error codes greater than 2000 indicate an error.