Developer Tools
BetaIntegrate ContextFile.ai with your applications using API keys, webhooks, and third-party integrations.
Developer Tools provides everything you need to integrate ContextFile.ai into your workflow. Access is available on Team and Enterprise plans.
Navigate to Team Features → Developer Tools in the dashboard to access these features.
API keys allow you to access your context files programmatically. You can use them to:
- Fetch context files from your applications
- Update contexts programmatically
- Integrate with CI/CD pipelines
- Build custom integrations
Creating an API Key
- Go to Team Features → Developer Tools
- Select the API Keys tab
- Click Create New Key
- Enter a descriptive name for your key
- Copy and securely store the generated key
Important
Your API key is only shown once when created. Store it securely - you won't be able to see it again.
Using the API
Include your API key in the Authorization header:
curl https://api.contextfile.ai/v1/contexts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Webhooks allow you to receive HTTP POST notifications when events occur on your account. Each request includes a signature header for verification.
Available Events
context.created- When a new context is createdcontext.updated- When a context is modifiedcontext.deleted- When a context is deletedcontext.viewed- When someone views your profilecontext.copied- When someone copies your contextfile.uploaded- When a file is uploadedfile.deleted- When a file is deleted
Creating a Webhook
- Go to Team Features → Developer Tools
- Select the Webhooks tab
- Click Create Webhook
- Enter a name and your endpoint URL
- Copy and save the signing secret
- Select the events you want to receive
Webhook Payload
Each webhook request includes:
{
"event": "context.updated",
"timestamp": "2024-12-14T12:00:00Z",
"data": {
"id": "ctx_123",
"name": "My Context",
"user_id": "usr_456"
}
}Verifying Signatures
Each webhook request includes an X-Signature header. Verify it by computing HMAC-SHA256 of the request body using your signing secret.
Slack
Get notifications in Slack when your contexts are viewed, copied, or updated. Connect your Slack workspace and configure which events to receive.
Zapier
Connect ContextFile.ai to 5,000+ apps using Zapier. Create automated workflows triggered by events on your account.
Coming Soon
- Discord - Bot notifications
- Microsoft Teams - Team notifications
- Notion - Sync context to pages
- GitHub - Profile sync