Skip to main content
POST
/
api
/
auth
/
v1
/
iframe-session
Start new iframe session
curl --request POST \
  --url https://api.anagram.care/api/auth/v1/iframe-session/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "entry_point": "add_patient"
}
'
{
  "iframe_url": "https://embed.anagram.care/?token=aa555a4e43949e647bca87be9f77fa0c55ac9e480b9939f21b288da0de0f0f01&entry_point=add_patient"
}
This endpoint allows you to embed the Anagram app in your application and automatically authenticate the user into their account. To use this endpoint, the user’s account must be configured for embedded sessions. Please contact Support to enable this feature.

Authorizations

Authorization
string
header
required

Your API token prefaced with an "Api" prefix. Example value: "Api B3F4242424E3FDB4242424242A9C7642"

Body

application/json
entry_point
enum<string>
required

Initial view of the iframe

Available options:
add_patient,
insurers,
passwords

Response

JSON object response

iframe_url
string

URL of the iframe for empbedding. Use it for src attribute of the iframe HTML tag