You are integrating Telepatia Synapse Public API.
Endpoint: GET /v1/medical-record-configurations/{configuration_id}
Base URL: https://synapse.telepatia.ai
Auth: Authorization: Bearer ${SYNAPSE_API_KEY}
Request:
- configuration_id [path]: string (required)
Success 200:
- id: string
- hash: string
- createdAt: string
- configuration: object
Errors (envelope: { error: { type, code, message, param? } }):
- 401: authentication_required
- 404: resource_not_found
- 503: service_unavailable
Generate code in the language of the current file that:
1. Reads SYNAPSE_API_KEY from env (do not hardcode it).
2. Calls the endpoint with typed request and response.
3. Maps the error envelope to typed exceptions per status code.
4. Adds one happy-path test using the Bearer token.