Skip to main content
GET
/
api
/
v1
/
embed
/
document-pdfs
Get a document PDF embed
curl --request GET \
  --url https://sacra.com/api/v1/embed/document-pdfs/ \
  --header 'Authorization: <api-key>'
{
  "status": "success",
  "data": {
    "embed_html": "<iframe frameborder=\"0\" height=\"500\" src=\"https://sacra.com/embed/3056d651-fabe-43ef-81a9-d9c454975581/document/openai?height=500&amp;width=500\" title=\"Sacra Document PDF Embed\" width=\"500\">\n</iframe>\n"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.sacra.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Query Parameters

document_slug
string
required

Slug of the document to embed.

height
integer

Height of the embed iframe in pixels. Default: 500.

width
integer

Width of the embed iframe in pixels. Default: 560.

Response

Embed HTML for the document PDF viewer.

status
string
required
data
object
required