Skip to main content
/Developers/Documentation
Back to Developers

API Documentation

Complete reference for the Briefly. API v1.

Authentication

All API requests require authentication via an API key passed in the Authorization header using the Bearer scheme.

bash
curl -X GET "https://app.briefly.health/api/v1/letters" \
  -H "Authorization: Bearer briefly_sk_your_key_here"

Keep your API key secure

Never expose your API key in client-side code. Store it securely in environment variables on your server.

API Key Scopes

API keys can be configured with specific scopes to limit access:

ScopeDescription
letters:readRead letters
letters:writeCreate letters
patients:readRead patients
patients:writeCreate patients
recordings:readRead recording status
recordings:writeSubmit recordings

Rate Limits

API requests are rate limited to ensure fair usage and system stability.

PlanLimitWindow
Standard100 requests1 minute
Enterprise1000 requests1 minute

When rate limited, the API returns HTTP 429 with a Retry-After header indicating seconds to wait.

Letters

Patients

Recordings

Error Handling

The API uses standard HTTP status codes to indicate success or failure.

StatusCodeDescription
400BAD_REQUESTInvalid request body or parameters
401UNAUTHORIZEDInvalid or missing API key
403FORBIDDENMissing required scopes
404NOT_FOUNDResource not found
429RATE_LIMITEDToo many requests
500SERVER_ERRORInternal server error
json
{
  "error": {
    "code": "BAD_REQUEST",
    "message": "Invalid request body",
    "details": [
      { "path": ["patientId"], "message": "Required" }
    ]
  }
}