Skip to main content
GET
/
api
/
v1
/
reasons
Get compounding reasons
curl --request GET \
  --url https://api.byblend.com/api/v1/reasons \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
    "created_at": "2025-03-15T12:00:00Z",
    "updated_at": "2025-03-15T12:00:00Z",
    "name": "Adherence or Compliance",
    "description": "Issues related to patient adherence and medication compliance.",
    "is_global": true,
    "parent_id": null,
    "subcategories": [
      {
        "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
        "created_at": "2025-03-15T12:00:00Z",
        "updated_at": "2025-03-15T12:00:00Z",
        "name": "Behavioral Issues",
        "description": "Patient refuses the commercial medication (e.g., children, pets, individuals with cognitive impairment).",
        "parent_id": "00000000-0000-0000-0000-000000000101",
        "is_global": false
      }
    ]
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

type
string

Optional filter to only return global ("global") or customer-specific ("customer") reasons

Example:

"customer"

Response

200 - application/json

Successful response with all compounding reasons.

subcategories
object[]
id
string<uuid>

Unique identifier

Example:

"0227d1e5-ba9a-42b5-8fe2-38882aa65708"

created_at
string<date-time>

Date and time of creation

Example:

"2025-03-15T12:00:00Z"

updated_at
string<date-time>

Date and time of last update

Example:

"2025-03-15T12:00:00Z"

name
string
Example:

"Adherence or Compliance"

description
string
Example:

"Issues related to patient adherence and medication compliance."

is_global
boolean

Whether the reason is a global reason (provided by Blend) or a customer-specific reason.

Example:

true

parent_id
string

UUID of the parent reason, or null if this is a top-level reason.

Example:

null

I