Skip to main content
API v1 will be deprecated on June 30, 2026. Please migrate to API v2 — it covers every v1 endpoint plus feeds, analytics, organization management, AI summaries, and more.
With the Octolens API, you can use data from your Octolens workspace to create custom integrations and automations. The Octolens API, MCP server, and webhooks are available on every plan.

How to use the Octolens API

Create an API Key

In Octolens, navigate to Settings and then the API tab.
  • Click “Add new key”
  • Choose a name for your API key
  • Choose an expiration date for your API key from the dropdown
  • Click Create
You can revoke access to an API key at any time by clicking the three dots next to it.

Quick Start

Base URL

Rate Limits

500 requests per hour. Check the X-RateLimit-* headers for current usage and reset time.

Authentication

Bearer token in the Authorization header

Example Request


Endpoints

1. POST /mentions

Fetch mentions matching your keywords with optional filtering. Returns posts sorted by timestamp (newest first).

Parameters

Filters (11 options)

You can also use the AI Filter Wizard inside the app to help construct filters.

Request Body

Response

2. GET /keywords

List all keywords configured for your organization. Returns keyword details including platforms and status.

Response

3. GET /views

List all saved views for your organization. Views contain pre-configured filters that can be used with the mentions endpoint.

Response


Error Codes

The API uses standard HTTP status codes. Here are the possible error responses.

401 unauthorized

Missing or invalid API key. Ensure you include the Authorization header with a valid API key.

403 forbidden

API key is valid but doesn’t have permission to access this resource.

404 not_found

The requested resource (e.g., view ID) was not found.

429 rate_limit_exceeded

Too many requests. Check the X-RateLimit-* headers for limits and reset time.

400 invalid_request

The request body is malformed or contains invalid parameters.

500 internal_error

An unexpected error occurred. Please try again or contact support.