# Introduction

## What are API Keys?

API Keys let you run components and subscribe to triggers programmatically, without opening the visual editor. Each key belongs to your team and gives access only to the apps and actions you explicitly choose.

Every key has:

- A **secret token** used in API requests (`Authorization: Bearer …`)
- A **name** so you can tell keys apart (e.g. "Production", "Staging")
- **Per-app settings** — which components are allowed and which connected account(s) to use

## What can you do with them?

From your own code or infrastructure, you can:

1. **Run actions** — execute allowed automation steps (send an email, create a record, etc.)
2. **Discover components** — list available actions and read their input/output schemas
3. **Manage triggers** — register, list, and remove event-based triggers tied to your key

Management (creating, editing, deleting keys) is done in the Monkedo dashboard while logged in. Runtime calls use only the secret key you generate.

## Who is this for?

AudienceTypical useDevelopersIntegrate Monkedo into a product or internal toolDevOps / platform teamsRun automations from CI/CD, cron jobs, or backend servicesProduct teamsOffer automation features to customers without building every integration from scratchTeam leadsControl exactly which apps and actions each integration can use

## Why use API Keys?

ChallengeHow API Keys helpYou need automation outside the UICall Monkedo over a standard REST APIYou want to limit blast radiusEach key only reaches the apps and components you selectYou don't want to expose account credentialsMonkedo uses your pre-configured **connections**; callers never receive OAuth tokens or passwordsYou need to send or receive filesPass { name, base64 } or { name, url } as File inputs; File outputs come back as { name, size, url }A trigger should notify your systemRegister a public webhookUrl; Monkedo POSTs { triggerId, componentId, success, outputs }A key may have been exposedRegenerate it in one click — the old key stops working immediatelyYou work across environmentsCreate separate keys for dev, staging, and production

## Security & trust

Monkedo is designed so you stay in control:

- **Your key, your scope.** Nothing is accessible through the API unless you add it to the key's configuration. Access is denied by default.
- **Secrets are protected.** After creation or regeneration, the full key is shown once. Monkedo does not display it again in the dashboard or return it in list/detail responses.
- **Credentials stay on Monkedo's side.** When an action needs a connected account, the key uses the connection you picked during setup. Your API consumers never handle raw login tokens, and they must not send _connection in the request.
- **Team boundaries are enforced.** Keys belong to your team. Other teams cannot view or use your keys.
- **You can revoke access instantly.** Deleting a key or regenerating it takes effect immediately. Associated triggers are cleaned up when a key or app is removed.
- **Connections are validated.** If a linked account is expired, revoked, or missing required permissions, Monkedo surfaces that before you save — so you don't accidentally wire a key to a broken connection.
- **Public URLs only.** File download URLs and trigger webhooks must be public HTTP(S). Localhost and private IPs are rejected.

We recommend treating API keys like passwords: store them in a secrets manager, use one key per environment, grant the minimum components needed, and rotate or delete keys you no longer use.
