API Keys Management
The API Keys section allows you to generate and manage secure keys for integrating Curie with external systems and CI/CD pipelines.
This is particularly useful when setting up automated code reviews or triggering tasks programmatically via the Curie API.
Adding an API Key
To generate a new API key:
- Go to Settings > API Keys
- Click
+ Add API Key
- A new key will be generated and displayed only once. Make sure to copy and store it securely.
- The key will then be listed in a masked format for future reference (e.g.,
sk-cur-Z3TJl...iMO6
).
Each key displays:
- Created At: Timestamp of creation.
- Last Used At: Usage tracking.
- Status: Active/inactive.
- Actions: Options to revoke or rotate the key.
View API Instructions
Click View Instructions
to see a step-by-step guide on how to use your API key within a CI/CD pipeline.
Example Usage:
curl -X POST "https://platform.curietech.ai/api/code-review/run" \
-H "Authorization: Bearer $CURIE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"conn_type": "github",
"org_name": "YourOrg",
"repo_name": "your-repo",
"branch_name": "feature-branch",
"pr_number": 42,
"prompt": "Optional instructions for the review agent"
}'