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

# Perk

> Connect Perk (formerly TravelPerk) trips, bookings, and travel invoices to your agents

## Connect Perk

An Aster organization admin connects Perk in **Control Hub > Integrations > Perk** with a Perk API key. The connection is shared across the organization.

1. In Perk, sign in as an account admin and open **Settings > Developer > Travel tools**.
2. Create an API key and copy it. Perk shows the key only once.
3. Paste the key into Aster, choose **Production** (or **Sandbox** for a key from app.sandbox-perk.com), and save. Aster reads one traveler to check the key before saving.
4. Enable the Perk tools on your agent.

A Perk API key reads the whole Perk account with an admin's rights, so every agent with the Perk tools can see all trips and invoices. See Perk's [API documentation](https://developers.perk.com/reference/api-keys-1) for details.

## Available tools

| Tool | Use |
| - | - |
| `perk_trips` | `action=trips` (trips with dates, status, and locations), `trip` (one trip by `trip_id`), or `bookings` (flights, hotels, trains, and cars with confirmation references). |
| `perk_invoices` | `action=invoices` (invoice totals, taxes, and paid status), `invoice` (one by `serial_number`), `invoice_lines` (each billed service, for spend analysis), `profiles` (billing profiles), or `invoice_pdf` (attaches the invoice PDF to the conversation). |
| `perk_lookup` | `action=users` (travelers), `cost_centers`, or `cost_center` to find names and IDs. |

Trips and bookings carry no prices; travel spend is on invoice lines. Dates use `YYYY-MM-DD`.

List calls return up to 50 rows per page. While `more` is true, call again with `next_offset` as `offset` and the same filters. Large results are attached to the conversation as JSON.

## Example prompts

* "What did we spend on travel last quarter, by cost center?"
* "Which trips are booked for next week, and who is traveling?"
* "List unpaid Perk invoices due this month and attach the largest one."
* "Show the hotel bookings on Ana Diaz's Chicago trip."

## Troubleshooting

* **401:** The key was disabled, or it belongs to the other environment. Sandbox keys only work with the Sandbox setting.
* **403:** This Perk account's plan or key doesn't include that API.
* **429:** Perk's rate limit was reached. Wait and retry.

The tools are read-only. The key stays server-side and is redacted in connection responses. To rotate it, edit the connection; to remove it, disconnect Perk in Integrations.


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