For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
  • Getting Started
    • What is Runtype?
    • Creating your account
    • Platform Keys vs. BYOK
    • Understanding the Runtype UI
    • Quickstart: Social Media Post Generator
    • Quickstart: From Agent to Chat Widget
  • Dashboard
    • What is the Dashboard?
    • Daily Executions
  • Playground
    • What is the Playground?
  • Products & Surfaces
    • What are Products?
    • What are Surfaces?
    • Creating a Product
    • Setting up a Chat Surface
    • Setting up an API Surface
    • Setting up an MCP Surface
    • Setting up an A2A Surface
    • Setting up a Slack Surface
    • MCP authentication
    • Authenticating with product API keys
    • Embedding the chat widget (script tag)
    • Embedding the chat widget (React)
    • Surface orchestration modes
    • Product views
    • Adding Capabilities to a product
    • Connecting external agents
    • How A2A works
    • Connecting to Cursor / VS Code
    • Connecting to Claude Desktop
    • Scoping API keys to capabilities
    • Auto-generated OpenAPI spec
    • Calling your API endpoints
    • Client tokens and domain restrictions
    • AI-powered theme generation
    • Widget theming and customization
    • Product versioning and status
  • Flows
    • What are Flows?
    • Creating and Editing Flows
    • Flow step types overview
    • Agent and Flow Templates
    • Using prompt steps
    • Using transform-data steps
    • Using conditional steps
    • Using fetch-url and api-call steps
    • Using record steps (upsert/retrieve)
    • Flow variables and templates
    • Flow versioning and publishing
    • Running flows in batch
    • Handling batch failures
    • Debugging flows
  • Agents
    • What are Agents?
    • Creating and configuring Agents
    • Agent tools
  • Records
    • What are Records?
    • Creating and managing records
    • Using records in flows
    • Filtering and searching records
  • Tools
    • What are Tools?
    • Built-in Tools
    • Creating custom tools
    • Creating external tools
    • Runtime tools
  • Evals
    • What are Evals?
    • Running an Eval
    • Interpreting eval results
  • Schedules
    • What are Schedules?
    • Automating batch processing
  • Logs
    • What are Logs?
    • Working with Logs
  • Integrations
    • Connecting AI model providers
    • Slack integration
    • Google Workspace integration
    • GitHub integration
    • Linear integration
    • Weaviate (vector search)
    • Firecrawl (web scraping)
    • Exa (web search)
  • Settings
    • What's in Settings?
    • Available AI models
    • What are Organizations?
    • Managing AI models
    • Managing API keys
    • Billing and plans
    • Usage data
    • Team members and permissions
    • Appearance and preferences
    • Integrations (PostHog, Weaviate, Daytona)
  • Troubleshooting & FAQ
    • FAQ
    • Rate Limits and Usage
    • Managing Runtype with Claude
    • Flow execution failures
    • Common errors and solutions
    • Authentication issues
Dashboard
LogoLogo
On this page
  • What are Runtype API keys?
  • Creating an API key
  • Key permissions
  • Using API keys
  • Key prefixes
  • Rotating keys
  • Revoking keys
  • Best practices
  • Next steps
Settings

Managing API keys

Was this page helpful?
Previous

Billing and plans

Next
Built with

Create and manage API keys for accessing Runtype programmatically via the Runtype API.

What are Runtype API keys?

API keys let you call Runtype’s API to trigger Flows, manage resources, and access data programmatically.

These are different from:

  • Product API keys: For calling Product surfaces (see Setting up an API surface)
  • Provider keys: For OpenAI, Anthropic, etc. (see Connecting AI model providers)

Creating an API key

  1. Go to Settings → API
  2. Click Create New API Key
  3. Configure:
    • Name: Descriptive identifier (e.g., “CI/CD pipeline”)
    • Environment: Test or Production
    • Permissions: Select individual scopes or use a permission template
    • Expiration Date: Optional date picker, or leave blank for no expiration
  4. Click Create
  5. Copy the key immediately — it will not be shown again

Key permissions

Permissions are organized into scopes and groups. You can select a permission template for common configurations or pick individual scopes. Use least privilege — only grant the permissions needed.

Using API keys

Include in the Authorization header:

$curl https://api.runtype.com/v1/flows \
> -H "Authorization: Bearer rt_xxxxx"

See the API documentation for endpoint details.

Key prefixes

Runtype API keys start with:

  • rt_live_ — Production keys
  • rt_test_ — Test mode keys (sandbox environment)

Rotating keys

Change compromised keys:

  1. Create a new key with the same permissions
  2. Update your applications to use the new key
  3. Revoke the old key

Revoking keys

  1. Go to Settings → API
  2. Find the key
  3. Click Revoke
  4. Confirm

Revoked keys stop working immediately.

Never commit API keys to version control or expose them in client-side code. Use environment variables and secrets management.

Best practices

  • Descriptive names: “Production deploy script” not “Key 1”
  • Separate keys per use: Different keys for CI/CD, scripts, integrations
  • Rotate regularly: Generate new keys every 90 days
  • Monitor usage: Check which keys are actively used
  • Set expiration: Keys auto-expire for security

Next steps

  • API documentation (external) for endpoint reference
  • Setting up an API surface for Product API keys
  • Authenticating with product API keys