Docs › Integrations › OpenAI

OpenAI

Track OpenAI API calls, completions, and agent runs — get notified when something completes, errors, or takes too long.

Overview

What This Integration Does

OpenAI can send responses and events from its API usage. NotiLens receives those events and instantly notifies you.

No complex infrastructure required for standard OpenAI API usage.

Why NotiLens

Why Use NotiLens with OpenAI?

Stop manually checking logs and dashboards. Get only the OpenAI usage and event alerts that matter, delivered instantly to one app.

Setup

How to Connect OpenAI with NotiLens

1. Create an OpenAI Integration in the NotiLens App

  1. Start integrating OpenAI by selecting the OpenAI integration in the NotiLens app.
  2. Update the Topic and Description if needed (optional).
  3. Copy the generated Webhook URL.

Sample NotiLens webhook URL:

https://hook.notilens.com/webhook/<topic_id>/send

2. Send Events from Your OpenAI Account

  1. Open https://platform.openai.com/.
  2. Go to Settings → Webhooks.
  3. Click Create, add a name, and paste the webhook URL copied earlier.
  4. From Event Types, select the events you want to get notified for (for example: batch.completed, response.failed).
  5. Click Create.
  6. Copy the Secret Key from the popup screen.

3. Configure Your Secret Key (Optional)

  1. Open the webhook settings in the NotiLens app.
  2. Edit the Secret Key and paste the copied value.
  3. Click Update Secret.
  4. Done.

Using a secret key ensures that only trusted OpenAI-related events are accepted by your NotiLens topic.

After updating the secret key, you can send a test notification from OpenAI by clicking the ✔ icon and selecting an event to confirm everything is working correctly.

Events

Common OpenAI Events

Event Description Use Case
response.completed Response successfully generated Track successful AI outputs
response.failed Response generation failed Error and reliability monitoring
response.created Response request received Request activity tracking
batch.completed Batch job finished successfully Bulk processing alerts
batch.failed Batch job failed Operational issue detection
file.processed Uploaded file processed Data pipeline monitoring