Skip to main content
POST
/
ai
/
provider
/
bio
Generate Provider Bio
curl --request POST \
  --url https://api.decodahealth.com/ai/provider/bio \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
{
  "firstName": "<string>",
  "lastName": "<string>",
  "modelName": "gemini-2.0-flash",
  "useStructuredOutput": false,
  "previousGeneration": "<string>",
  "feedback": "<string>",
  "credentials": "<string>",
  "phoneNumber": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

application/json

Request schema for generating a provider bio.

firstName
string
required

Provider's first name

lastName
string
required

Provider's last name

modelName
string
default:gemini-2.0-flash

Model to use for generation

useStructuredOutput
boolean
default:false

Whether to request structured JSON output

previousGeneration
string | null

Previous generated text for context

feedback
string | null

User feedback for regeneration

credentials
string | null

Provider's credentials (e.g., MD, DO, PA-C)

phoneNumber
string | null

Provider's phone number

Response

Successful Response