Skip to main content
POST
/
v1
/
email
/
extract-attachments
Extract Email Attachment
curl --request POST \
  --url https://api.pdf.co/v1/email/extract-attachments \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "url": "<string>",
  "inline": true,
  "async": true,
  "profiles": "<string>",
  "httpusername": "<string>",
  "httppassword": "<string>"
}'

Authorizations

x-api-key
string
header
required

Body

application/json
url
string<uri>
default:https://pdfco-test-files.s3.us-west-2.amazonaws.com/email-extractor/sample.eml
required

URL to the source file url attribute.

inline
boolean
default:false

Set to true to return results inside the response. Otherwise, the endpoint will return a URL to the output file generated.

async
boolean
default:false

Set async to true for long processes to run in the background, API will then return a jobId which you can use with the Background Job Check endpoint. Also see Webhooks & Callbacks

profiles
string

Profiles are used configure extra options for specific API endpoints and may be unique to an API. For more information, see Profiles and the documentation of each endpoint for profiles specific to it.

httpusername
string

HTTP auth user name if required to access source URL.

httppassword
string

HTTP auth password if required to access source URL.