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

# Kyriba

> Connect to your users' Kyriba accounts to manage companies, bank accounts, cash flows, and payments.

Product
Supported

## Connecting to Kyriba

Kyriba uses OAuth client credentials issued in your users' Kyriba environment. You do not need to register an app in the Paragon dashboard. Your users will need the following information to connect their Kyriba account with your integration built with Paragon Connect:

* **Client ID:** The client ID of an API client created in the user's Kyriba environment.
* **Client Secret:** The client secret issued with that client ID.
* **Auth base URL (optional):** The Kyriba OAuth host, without `/oauth/token`. Defaults to `https://auth.demo.kyriba.com`.
* **API base URL (optional):** The Kyriba REST API base URL, including `/api`. Defaults to `https://api.demo.kyriba.com/api`.

Users connecting a production Kyriba environment should enter the auth and API base URLs for their environment, since the defaults point to the Kyriba demo environment. See the [Kyriba developer portal](https://developer.kyriba.com) for how to create API credentials.

Once your users have connected their Kyriba account, you can use the Paragon SDK to access the [Kyriba API](https://developer.kyriba.com) on behalf of connected users. Paragon exchanges the client credentials for an access token and sets the `Authorization` header on each request.

Any Kyriba API endpoints can be accessed with the Paragon SDK as shown in this example.

```js JavaScript theme={null}
// You can find your project ID in the Overview tab of any Integration

// Authenticate the user
paragon.authenticate(<ProjectId>, <UserToken>);

// List companies
await paragon.request("kyriba", "/v1/companies?page.limit=100&page.offset=0", {
  method: "GET"
});

// List bank accounts
await paragon.request("kyriba", "/v1/accounts?page.limit=100&page.offset=0", {
  method: "GET"
});
```

## Building Kyriba workflows

Once your Kyriba account is connected, you can add steps to perform the following actions:

* **Companies:** Search Companies, Get Company
* **Bank accounts:** Search Bank Accounts, Get Bank Account, Get Cash Balance
* **Cash flows:** Search Cash Flows, Create Cash Flow, Update Cash Flow
* **Transfers:** Search Transfers, Delete Transfer
* **Payment files:** Search Payment Files, Upload Payment File, Get Payment File Log
* **Third parties:** Search Third Parties

Delete Transfer only deletes transfers that have not been validated. Kyriba rejects requests to delete a validated transfer.

You can also use the [Kyriba Request](https://docs.useparagon.com/workflows/requests.md#making-integration-requests) step to access any of Kyriba's API endpoints without the authentication piece.

When creating or updating records in Kyriba, you can reference data from previous steps by typing `{{` to invoke the variable menu.

## Using triggers

Kyriba polling triggers check your users' Kyriba account for changes since the last check and run your workflows when they find them. The first poll starts at the time you enable the workflow, so existing records are not replayed. You can use the following polling triggers:

* **Company Created**
* **Bank Account Updated**
* **Cash Flow Updated**
* **Transfer Status Changed:** Runs when the status, next action, or acknowledgement time of a transfer changes. Kyriba's transfer status API cannot filter by time, so this trigger only checks the first page of transfer statuses.
* **Payment File Created**
* **Third Party Updated**

Kyriba webhooks are configured in the Kyriba UI and have no subscription API, so Paragon does not offer Kyriba webhook triggers.
