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¶
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.