Skip to content

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

Production:  https://provider.sprypt.com
Sandbox:     https://provider.staging.spryhealth.care

Content Type

All requests and responses use JSON format:

Content-Type: application/json
Accept: application/json

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:

{
  "first_name": "John",
  "last_name": "Doe",
  "email": "john.doe@example.com"
}

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.

{
  "code": 2999,
  "message": "Invalid appointment type",
}