Connect your code to the Rank Prompt REST API
Put your AI visibility where your team already looks, from your own dashboards to your client reporting, and run reports from your backend on the same data the app uses.
What it does
- Feed AI visibility into your own tools: dashboards, a data warehouse or the reports you send clients.
- Automate the routine: create brands, add prompts and run reports from your backend, on the schedule you choose.
- Give each integration only the access it needs, down to a single client’s brand.
- Build without surprises: a retried write never runs twice, and any call can be previewed for free first.
- Start fast with a full reference and an OpenAPI spec your tools can read.
Before you start
Plan Every plan, free included
- A backend or script that can keep a secret: the API is server to server, not for the browser.
- An API key from Developers, API, API keys, shown once when you create it.
- Every plan works, free included, with 1,000 requests a month on Free.
REST API setup in 4 steps
-
Step 1
Create a key
In Rank Prompt, open Developers, API, the API keys tab, and click Create key.
-
Step 2
Choose its scopes, brand and expiry
Give it a name you will recognize, only the scopes the integration needs, a brand if it should only reach one, and an expiry date for keys you hand to contractors.
-
Step 3
Store the key safely
The full key is shown once. Put it in your secret manager, never in client-side code.
-
Step 4
Make the first call
Call
GET https://api.rankprompt.com/v1/mewithAuthorization: Bearerand your key. It confirms the key works and which account it acts in.
REST API: errors and fixes
These are the messages the app shows, word for word, and what fixes each one.
-
invalid_api_key: API key is invalid or revoked
Check that the whole key was copied, starting with
rp_live_, and that it was not revoked in Developers. -
insufficient_scope: API key does not have the required scope
The error names the scope that is missing. Create a key that includes it.
-
brand_not_authorized: API key is not authorized for this brand
The key is restricted to another brand. Use a key for this brand, or one without a brand restriction.
-
request_quota_exceeded: Monthly request quota exceeded
The plan’s monthly request allowance ran out. It resets with the billing period, and every response tells you how much is left.
-
browser_calls_forbidden: The Public Developer API is server-to-server only. Browser CORS calls are blocked; call /v1 from your backend with a bearer API key.
Move the call to your backend and keep the key there.
REST API integration FAQs
Still have questions? Contact our team
Is the API included in my plan?
Yes, on every plan, free included. The plan sets the monthly request allowance, from 1,000 requests on Free, and calls that do AI work use your plan credits.
Where is the API reference?
At rankprompt.com/docs/v1, with every endpoint, the access it needs, its errors and what it costs in credits.
Can a key reach only one client’s brand?
Yes. Restrict it to a brand when you create it, and it cannot touch any other brand, whatever else it is allowed to do.
What about keys made in a team account?
A key works in the account that was active when you created it, and stops working if you leave that account. GET /v1/me tells you which account a key acts in.
Up and running in a few minutes
Create a free account, follow the steps above and see what the connection adds to your AI visibility.