Skip to main content

Developer docs

Create and rotate API keys

Create an account API key in Settings and keep the secret on your server.

Last verified:

Create a key in Settings

  1. Sign in and open Settings, then choose the API Keys section.
  2. Select Generate API Key. The full key is shown once.
  3. Copy it now and store it in your server-side secret manager. Do not put it in browser code, a public repository, or a chat message.
  4. Send requests from your server using the Authorization: Bearer header shown below.
Open API Keys settings
Send the key from your server
curl --request GET \
  --url "https://app.charigent.com/api/v1/me" \
  --header "Authorization: Bearer $CHARIGENT_API_KEY"

The list shows a short key prefix and last four characters. It does not show the full key again.

Rotate or revoke a key

Create a replacement key, update your server secret, confirm the new key works, then revoke the old key in Settings. Revoking takes effect immediately and cannot be undone.

Open API Keys settings