# Export results with outcomes

> GET /campaigns/{id}/export. HeyRik API parameters and documented request and response examples.

Source: https://www.heyrik.com/docs/api-reference/campaigns/get-campaigns-id-export-export-results-with-outcomes

GET https://server.heyrik.com/api/v1/campaigns/{id}/export

## Path parameters

- id (required): Replace {id} in the request URL with the value for this resource.

## Headers

Authorization: Bearer $HEYRIK_API_KEY (required). Keep your key on your server.

## Notes

One row per lead with the call outcome, summary and any fields the agent extracted. For JSON (not a file), use GET /campaigns/{id}/contacts.

## Request example

```sh
curl https://server.heyrik.com/api/v1/campaigns/cmp_4a19/export \
  -H "Authorization: Bearer $HEYRIK_API_KEY"
```
