Authentication
How to authenticate with the Plushcap public API using API keys.
The public API is read-only. Some discovery endpoints can be used anonymously, while data endpoints require either a logged-in browser session or a Plushcap API key.
Sending Your API Key
Send the key in the X-API-Key HTTP header:
X-API-Key: your-api-key-here
MCP clients can also use the API key as a bearer token when connecting to the Plushcap MCP server.
Read-Only Access
All public API endpoints allow only safe HTTP methods:
| Method | Supported |
|---|---|
GET |
Yes |
HEAD |
Yes |
OPTIONS |
Yes |
Write methods such as POST, PUT, PATCH, and DELETE are not supported by
the public API.
Public Discovery Endpoints
These endpoints do not require an API key:
| Endpoint | Description |
|---|---|
GET /api/v1/companies/ |
List companies |
GET /api/v1/companies/<slug>/ |
Get company details |
GET /api/v1/trends/topics/ |
List active trend topics |
API Key Endpoints
Protected endpoints require an API key or an authenticated browser session. Authentication identifies your account; your effective access determines which capabilities are available. Active Accelerate or Lead access, qualifying private trials and organization grants, and staff access bypass the Free hourly allowance. Expired or revoked grants no longer provide that access.
Free hourly allowance
Free accounts have five requests per metered endpoint per hour. The counter belongs to your Plushcap account, not an API key, device, MCP client, or session. REST requests, API-key MCP connections, and OAuth MCP connections for the same account share it. Reconnecting or creating another key does not reset it.
Each endpoint has a separate counter. All companies, post IDs, filters, and pages requested through that endpoint use the same counter. For example, all single X post lookups share one allowance, while listing X posts uses another. Repeated lookups count again. GET, HEAD, and OPTIONS requests that reach quota accounting use a call; the allowance is not a count of unique records returned.
The window resets at the top of each UTC hour, not one hour after your first request. Five calls between 14:00 and 14:59 UTC use that endpoint's allowance; at 15:00 UTC a new window begins. Using those calls at 14:59 does not require waiting another full hour.
Public company discovery and profiles, and the public trend-topic catalog, do not use this allowance. The authenticated trend-report metadata catalog is also available to Free accounts without the hourly quota; full reports and other paid-only capabilities require their applicable effective tier. Those tier denials do not consume Free calls.
Which failed requests count?
Quota accounting happens before looking up a single X post. A permitted lookup
uses one call even when the post is missing (404) or its age requires paid
history access (403). Once all five calls are used, another detail lookup
returns 429 before checking the post, regardless of whether it is old, recent,
or missing. An older-post denial within the allowance does not grant access to
the post's contents.
Explicit paid request parameters are checked before charging the allowance:
raw trend mode, X ranges older than 14 days, and paid YouTube history dates or
pagination. These requests return 403 without using a Free call, including
when the endpoint's allowance is already exhausted. Invalid trend modes return
400 without using a call. Other errors may use a call when their validation
or record lookup happens after quota accounting; a failure status alone does
not determine whether it counted.
Quota responses and reset headers
After five calls, the endpoint returns 429 Too Many Requests with code
free_plan_endpoint_limit_reached. Selected fields from an example response
at 14:59:30 UTC are shown below; additional access-guidance fields are omitted:
{
"schema_version": 1,
"code": "free_plan_endpoint_limit_reached",
"error_type": "quota_exhausted",
"current_tier": "free",
"required_tier": "free",
"retryable": true,
"wait_will_help": true,
"resets_at": "2026-10-30T15:00:00Z",
"retry_after_seconds": 30,
"free_limit": {
"limit": 5,
"remaining": 0,
"window": "hour",
"endpoint": "blog-posts"
},
"limit": 5,
"window": "hour",
"endpoint": "blog-posts",
"upgrade_url": "https://www.plushcap.com/subscription"
}
Metered REST responses expose X-RateLimit-Limit, X-RateLimit-Remaining, and
X-RateLimit-Reset (Unix seconds). A quota rejection also includes Retry-After
(seconds). The example above has these headers:
X-RateLimit-Limit: 5
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1793372400
Retry-After: 30
The reset timestamp and remaining seconds come from the same clock reading.
Wait until that reset, use an available endpoint with its own allowance, or
consider the returned optional upgrade offer. The minimum tier stays free;
Accelerate is an optional way to remove this allowance. A paid capability
restriction instead returns 403 with wait_will_help: false; waiting or
reconnecting will not unlock it. See access errors and recovery.
Authentication Context
GET /api/v1/auth/context/
Returns the current authenticated account context, including subscription tier and whether the request is using internal MCP access.
{
"authenticated": true,
"subscription": "accelerate",
"subscription_status": "active",
"tier": "accelerate",
"tier_level": 1,
"is_staff_access": false,
"is_internal_access": false
}
Error Responses
Missing or invalid API key:
{"detail": "Authentication credentials were not provided."}
Status: 403 Forbidden
Unsupported write method:
{"detail": "Method 'POST' not allowed. This endpoint only supports read operations."}
Status: 403 Forbidden or 405 Method Not Allowed, depending on the endpoint.
Access errors and recovery
Expected access and quota denials include schema_version: 1, code,
error_type, message, capability, current_tier, required_tier,
retryable, wait_will_help, resets_at, retry_after_seconds, free_limit,
free_alternatives, and upgrade. REST also preserves detail and existing
quota fields. MCP returns the JSON in a text content block with isError: true;
successful tool output schemas are unchanged.
Wait only when wait_will_help is true. A Free hourly quota error includes the
actual UTC reset time and remaining seconds, also carried in REST's
Retry-After and X-RateLimit-Reset headers. Each metered endpoint has a separate
allowance shared by the user's API keys and MCP connections. Company profiles
remain available through get_company and the companies API.
A paid capability denial explains the restriction and says waiting will not help. Paid request parameters are checked before consuming the Free allowance. Record-dependent X detail lookups use that allowance, and exhausted callers get 429 before any post lookup. Invalid trend modes return 400 without using quota. Explain the specific capability and offer a listed Free alternative when useful. Reconnecting is appropriate for credential failures, not a plan restriction.
When upgrade is present, use its capability benefit, current price (when
available), and subscription link. required_tier describes minimum access:
Free quota exhaustion still requires only Free access, with Accelerate as an
optional way to remove that allowance. Prices are USD per month, resolved from
the current active billing price and cached briefly; missing prices are null.
Do not invent prices or recommend upgrading for unknown failures or outages.
Manage access at Subscription or review Pricing.
Machine-readable REST description
The OpenAPI 3.1 description covers published customer GET operations, parameters, response shapes, and effective access. REST accepts the X-API-Key header or a Django session cookie. Missing credentials on restricted reads and invalid or expired keys return HTTP 403. Public company and topic discovery remains anonymous.