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

# API access

> Generate ready-to-use API URLs to export your Cliro data as Excel files, and authenticate your requests.

**API access** (under **Company**) lets you generate ready-to-use API URLs that download your Cliro data as Excel files — handy for reporting, spreadsheets or feeding data into other tools.

## Generate an export URL

<Steps>
  <Step title="Choose an export type">
    Select **Prompt responses** or **Sources analysis**.
  </Step>

  <Step title="Configure the export">
    Pick the **main brand**, and (for prompt responses) a **prompt**. Optionally set a **date range** and a specific **model**.
  </Step>

  <Step title="Copy the URL or cURL">
    Cliro generates the URL. Use **Copy URL** for the link, or **Copy cURL** for a ready-to-run command.
  </Step>
</Steps>

<Note>
  Generated URLs may change when your configuration changes, so regenerate them if your export stops returning data.
</Note>

## Authenticate your requests

Export endpoints require a bearer token tied to your account:

<Steps>
  <Step title="Log in and get a token">
    Authenticate against the login endpoint to receive an access token.
  </Step>

  <Step title="Copy the access token">
    From the response, copy the value of the `accessToken` field.
  </Step>

  <Step title="Add the token to every request">
    Include it as an `Authorization: Bearer <token>` header on each request.
  </Step>
</Steps>

<Tip>
  With the cURL command, the file downloads to the directory where you run it. Set the output file name with the `-o` parameter in the command.
</Tip>

## API keys

For integrations that connect to Cliro programmatically, you can manage credentials under **Company → API keys**. Keep keys secret — treat them like passwords and rotate them if one is ever exposed.
