Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: RankControl Topics API
version: 1.0.0
description: 'The REST API behind the RankControl dashboard, CLI, and MCP server. Authenticate every request with an API key as a Bearer header; keys are minted in Settings > API and carry scopes (see each operation''s x-required-scope). Full docs: https://rctrl.com/docs/api. MCP endpoint for AI agents: https://api.rctrl.com/mcp (OAuth 2.1, see https://rctrl.com/docs/mcp).'
contact:
email: help@rctrl.com
url: https://rctrl.com/contact
termsOfService: https://rctrl.com/terms
servers:
- url: https://api.rctrl.com
security:
- bearerAuth: []
tags:
- name: Topics
paths:
/api/v1/topics:
get:
operationId: get_topics
summary: The workspace's topics, each with id, name and questions (how many tracked…
description: Requires the `read:content` scope.
x-required-scope: read:content
x-rate-limit-per-minute: 60
security:
- bearerAuth: []
responses:
'200':
description: Success; the payload is wrapped in a data envelope
content:
application/json:
schema:
type: object
properties:
data: {}
'400':
description: Bad input
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: API key lacks the required scope
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found in this workspace
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited; the body includes a retryAfterMs hint
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Topics
post:
operationId: set_topics
summary: Replace the FULL topic list.
description: Requires the `write:content` scope.
x-required-scope: write:content
x-rate-limit-per-minute: 10
security:
- bearerAuth: []
responses:
'200':
description: Success; the payload is wrapped in a data envelope
content:
application/json:
schema:
type: object
properties:
data: {}
'400':
description: Bad input
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: API key lacks the required scope
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found in this workspace
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited; the body includes a retryAfterMs hint
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
topics:
type: array
items:
type: string
description: The complete list of topic names
required:
- topics
tags:
- Topics
components:
schemas:
Error:
type: object
properties:
error:
type: string
required:
- error
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'API key from Settings > API, e.g. `Authorization: Bearer rctrl_pk_...`'