> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get proof of delivery

> Downloads a PNG of the photo, signature, or PIN captured at a waypoint.

`uber.getProofOfDelivery` returns a PNG file that combines the delivery status, timestamp, order identifiers, and captured proof.

```ts automations/email-uber-proof.automation.ts theme={null}
import { automation, sendEmail } from "automate.ax"
import { uber } from "automate.ax/uber"

export default automation("Email proof of delivery", () => {
  const event = uber.onDeliveryDelivered({})
  const proof = uber.getProofOfDelivery({
    deliveryId: event.deliveryId,
    waypoint: "dropoff",
    type: "picture",
  })

  sendEmail({
    to: "*",
    subject: "Delivered",
    text: "Proof of delivery is attached.",
    attachments: [proof],
  })
})
```

`deliveryId`, `waypoint` (`pickup`, `dropoff`, or `return`), and `type` (`picture`, `signature`, or `pincode`) are required. Request a type that the delivery required at that waypoint; Uber returns an error otherwise. Uber keeps proof for 30 days.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.