Skip to main content
GET
/
api
/
v1
/
info
/
encounter-types
Gets the list of supported encounter types.
curl --request GET \
  --url https://sdp.suki-stage.com/api/v1/info/encounter-types \
  --header 'sdp_suki_token: <sdp_suki_token>'
{
  "encounter_types": [
    {
      "code": "AMBULATORY"
    }
  ]
}
Use this endpoint to get the list of supported encounter types.

Code Examples

  • Python
  • TypeScript
import requests

url = "https://sdp.suki.ai/api/v1/info/encounter-types"
headers = {
    "sdp_suki_token": "<sdp_suki_token>"
}

response = requests.get(url, headers=headers)

if response.status_code == 200:
    encounter_types_data = response.json()
    print("Supported Encounter Types:")
    for encounter_type in encounter_types_data.get("encounter_types", []):
        print(f"  {encounter_type.get('code')}")
else:
    print(f"Failed to get encounter types: {response.status_code}")
    print(response.json())

Headers

sdp_suki_token
string
required

Response

encounter_types
object[]