Skip to main content
This guide walks you through creating your first application using the Klara API.

Prerequisites

  • A Klara organization account with admin access
  • Access to your organization’s API settings
New to Klara? Use our sandbox environment at sandbox.klara-ai.com to test your integration before going live. Sandbox uses separate API keys from production.

Step 1: Generate an API key

  1. Log in to your Klara dashboard
  2. Navigate to Settings → Integrations → API Keys
  3. Click Create API Key
  4. Enter a name for your key (e.g., “Production API Key”)
  5. Copy the full API key immediately, it will only be shown once
Store your API key securely. The secret portion is only displayed once at creation. If you lose it, you’ll need to create a new key.
Your API key follows this format:

Step 2: Create an Application

Make a POST request to create a new application. The API requires a primary contact and company information. An application is created using your organization’s default configuration.

Request fields

When a company_number is provided, it is validated against the company registry (Companies House for GB, CRO for IE). The company must be active and the company_name must match the registered name.

Step 3: Handle the response

A successful request returns:

Step 4: Redirect the user

Redirect the user to the link URL. If you used pre_auth: true, they’ll land directly on the submission form without needing to verify their email.
The pre-auth code expires after 72 hours. If the user doesn’t access the link in time, they’ll be prompted to verify their email instead.

Step 5: Re-entry with refreshed pre-auth

If a user leaves the form and comes back later via your platform, you don’t need to create a new application. Instead, refresh the pre-auth code on the existing one:
  1. User starts the application but leaves before completing it
  2. User returns to your platform and wants to continue
  3. Your backend calls POST /api/external/applications/{id}/pre-auth to get a fresh link
  4. Redirect the user, they’re authenticated instantly with the new code
See the full Refresh Pre-Auth API reference for response details and error handling.

Next steps

Authentication

Learn more about API key management and security.

API Reference

See the full API specification with all parameters.