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

# Zip (Beta)

> Connect Zip to read and manage procurement records in Serval workflows.

The Zip integration lets workflows read purchase requests, approvals, vendors, purchase orders, and invoices, and send writes to Zip's REST API. Zip authorizes each request using the permissions of the API key connected in Serval.

## Connect Zip

1. In Zip, open **Company Settings** and find **API keys** under **API**.
2. Create a dedicated key and grant the permissions your workflows need. Use read scopes for a read-only connection. Grant read access to requests, approvals, vendors, and purchase orders to pass all four health checks. Grant write permissions in Zip for each operation your workflows perform.
3. In Serval, open **Integrations**, select **Zip**, and click **Connect**.
4. Enter your Zip API key and save the connection.

The integration uses Zip's API-key authentication with API version `2024-06-06` at `api.ziphq.com`. Confirm that your Zip account supports this authentication mode.

## Use Zip in a workflow

Use the **Zip API request** action. For a lookup, select **GET** and choose the path for the record type you need. If the response contains a `next_page_token`, pass it as `page_token` with the same request to fetch the next page.

For a write, choose **POST**, **PUT**, **PATCH**, or **DELETE** and enter the relative path and JSON body specified in your Zip account's [API documentation](https://docs.ziphq.com/hc/en-us/articles/49398321531675-How-to-Access-API-Documentation). Pass query parameters separately. If Zip rejects the request, check that the key is active and has permission for that operation.


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