---
title: "Export giveaway codes of a giveaway pool"
method: GET
path: "/v1/giveaways/pools/{poolId}/export"
tags: ["Giveaways"]
---

# Export giveaway codes of a giveaway pool

`GET /v1/giveaways/pools/{poolId}/export`

## Request

- Base URL: `https://yourbaseurl.talon.one`
- URL: `https://yourbaseurl.talon.one/v1/giveaways/pools/{poolId}/export`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/talon/apis/management-api/docs/v1/giveaways/pools/:poolId/export/get.ts> (a function with typed inputs; its response is checked against the schema)

> [!note] Management API endpoints are **not** meant to be used in real-time integrations that directly serve your end users. Rate limit: 3 requests per second.

Download a CSV file containing the giveaway codes of a specific giveaway
pool.

> [!tip] If the exported CSV file is too large to view, you can
> [split it into multiple files](https://www.google.com/search?q=split+CSV+into+multiple+files).

The CSV file contains the following columns:

- `id`: The internal ID of the giveaway.
- `poolid`: The internal ID of the giveaway pool.
- `code`: The giveaway code.
- `startdate`: The validity start date in RFC3339 of the giveaway (can be empty).
- `enddate`: The validity end date in RFC3339 of the giveaway (can be empty).
- `attributes`: Any custom attributes associated with the giveaway code (can be empty).
- `used`: An indication of whether the giveaway is already awarded.
- `importid`: The ID of the import which created the giveaway.
- `created`: The creation time of the giveaway code.
- `profileintegrationid`: The third-party integration ID of the customer
   profile that was awarded the giveaway. Can be empty if the giveaway was not
   awarded.
- `profileid`: The internal ID of the customer profile that was awarded the
   giveaway. Can be empty if the giveaway was not awarded or an internal ID
   does not exist.

## Path parameters

- `poolId` integer, required

## Query parameters

- `createdBefore` string, date-time
- `createdAfter` string, date-time

## Response `200`

OK

## Other responses

- `400`: Bad request

---

[API](https://skmtc.dev/talon/apis/management-api.md) - [All operations](https://skmtc.dev/talon/apis/management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talon/apis/management-api/revisions/7ef1b9504c3a?raw)
