Skip to content
Paquetier

API Keys

API keys allow you to authenticate with the Paquetier API and CLI without using your username and password. They are essential for CI/CD pipelines and automated workflows.

Creating an API Key

  1. Navigate to Credentials > API Keys in the sidebar.
  2. Click New Key.
  3. Configure the key:
    • Name — A descriptive name (e.g. “CI pipeline”, “local dev”).
    • Role — The permission level for this key (admin, write, or read).
    • Scope — Restrict the key to a specific repository, or allow access to all repositories.
  4. Click Create Key.

:::caution Copy the generated key immediately. It will not be shown again. :::

Key Format

All API keys are prefixed with paquetier_ for easy identification. For example: paquetier_abc123def456...

Using API Keys

With the CLI

paquetier login --token paquetier_your_api_key

With the API

Pass the key in the Authorization header:

curl -H "Authorization: Bearer paquetier_your_api_key" \
  https://paquetier.example.com/api/v1/repos

With R (Private Repos)

options(download.file.extra = paste0(
  '--header="Authorization: Bearer ', Sys.getenv("PAQUETIER_TOKEN"), '"'
))

Managing Keys

  • Keys can be deleted from the API Keys page.
  • Deletion is immediate and cannot be undone.
  • The Last Used column shows when each key was last used for authentication.