Skip to content
Ranqo
Docs
DashboardGet started
GuidesMethodologyIntegrationsAPI
Video tutorials

Get started

  • Introduction
  • Quickstart
  • Authentication

Using the API

  • Rate limits
  • Errors
  • Pagination
  • Dates and time zones
  • Versioning

Account

  • Get the account

Brands

  • List brands
  • Get a brand

Visibility

  • Get visibility

Competitors

  • List competitors

Runs

  • List runs
  • Get a run

Prompts

  • List prompts
  • Get a prompt
  • List a prompt's answers

Site Access

  • Get site access

Page audits

  • List page audits
  • Get a page audit

Recommendations

  • List recommendations
  • Get a recommendation

Outreach

  • List outreach targets

4 sections

Account

Get the account

View as MarkdownOpen this page as .md
ChatGPTOpen in ChatGPTAsk about this pageClaudeOpen in ClaudeAsk about this page

Read the account an API key belongs to: its plan, its rate limit, and the key's own name, expiry and brand access.

HTTP
GET https://api.ranqo.ai/v1/account

The account this key reads, its plan, the key's own details and its rate limit. Carries no owner name or email.

Response#

The response body, as JSON.

FieldTypeDescription
account_idstringThe account this key reads.
planobject
plan.idstringOne of starter, pro, business, agency, agency_scale, pilot.
plan.namestring
plan.is_trialingboolean
plan.trial_ends_atstring or nullRFC 3339 timestamp in UTC. When the trial ends; null outside a trial.
rate_limitobject
rate_limit.requests_per_minuteintegerPer key, in a fixed one-minute window.
rate_limit.window_secondsinteger
keyobject
key.idstring
key.namestring
key.maskedstringThe key with its middle hidden, as Settings lists it.
key.created_atstringRFC 3339 timestamp in UTC.
key.expires_atstring or nullRFC 3339 timestamp in UTC. Null when the key never expires.
key.brand_accessobject
key.brand_access.all_brandsbooleanTrue when the key reads every brand, including ones added later.
key.brand_access.brand_idsarray of stringsThe brands a restricted key reads; empty when all_brands is true.

Response headers#

HeaderDescription
X-Request-IdThe request id; quote it to support.
RateLimitRequests left in this window and seconds until it resets.
RateLimit-PolicyThe key's limit per window.

Example request#

curl
curl "https://api.ranqo.ai/v1/account" \
  -H "Authorization: Bearer $RANQO_API_KEY"

Errors#

Errors are problem details (application/problem+json) with a stable code. See Errors for each one.

StatusCodes
400unknown_parameter, api_key_in_url
401missing_api_key, invalid_api_key, api_key_revoked, api_key_expired, api_key_orphaned
403plan_upgrade_required, subscription_inactive
429rate_limited
500internal_error
503service_unavailable
Previous page: VersioningNext page: List brands
On this page
Ranqo
Docs
Dashboardranqo.aiPrivacyTerms
Be the Source AI Cites.
Ranqo
Docs
GuidesMethodologyIntegrationsAPI

Get started

  • Introduction
  • Quickstart
  • Authentication

Using the API

  • Rate limits
  • Errors
  • Pagination
  • Dates and time zones
  • Versioning

Account

  • Get the account

Brands

  • List brands
  • Get a brand

Visibility

  • Get visibility

Competitors

  • List competitors

Runs

  • List runs
  • Get a run

Prompts

  • List prompts
  • Get a prompt
  • List a prompt's answers

Site Access

  • Get site access

Page audits

  • List page audits
  • Get a page audit

Recommendations

  • List recommendations
  • Get a recommendation

Outreach

  • List outreach targets
Get started