CodeWords API key
Create and use your CodeWords API key to trigger workflows from external apps. Paid feature.
Overview
The CodeWords API lets paid users trigger workflows from external applications with simple HTTP requests. Whether you're building a web app, mobile app, or connecting to third-party services, it's easy to connect to CodeWords once API access is enabled on your account.
CodeWords API keys are available on paid plans only. They are not available on the free plan.
Getting your API key
First things first — you'll need credentials. If you're on a paid plan, open Settings → API Keys from the sidebar account menu.
Generate a key (or regenerate if you already have one). Keys look like:
cwk-for standard reusable keys (most common)cwotk-for one-time keys (extra security for sensitive operations)
You can reveal, copy, or delete keys from the same tab. Treat your API key like a password — keep it secret and store it as an environment variable.
How the API works
Base URL: https://runtime.codewords.ai
The endpoints you'll use:
Quick tasks:
POST /run/{serviceId}(under two minutes)Heavy lifting:
POST /run_async/{serviceId}(up to 30 minutes)Check results:
GET /result/{request_id}(for async calls)Watch progress:
GET /logs/{request_id}(live streaming)Upload files:
POST /file(when your workflow needs files)
Authentication: Just add "Authorization: Bearer {YOUR_API_KEY}" to your headers using a CodeWords API key from an eligible paid plan.
Quick synchronous calls
Perfect for automations that finish fast (under two minutes). Your request waits for the result and gets it back immediately.
Using cURL
Python example
Install the CodeWords client first:
JavaScript/TypeScript example
Install the client:
Asynchronous calls for heavy lifting
For automations that need more time (up to 30 minutes), use async execution. You'll get a request ID immediately, then check back for results.
Using cURL
Python example
TypeScript example
Working with files
When your CodeWords automation needs file inputs, upload them first and pass the download URLs.
Upload and process pattern
Integrating with web apps
Here's how to add CodeWords to a Flask web application:
Error handling best practices
Make your API calls bulletproof with smart retry logic:
FAQs
Last updated
Was this helpful?