Skip to Content
Account

Account

Check your profile and balance, manage API keys, read usage logs, view pricing and plans, and start a purchase or subscription.

The account endpoints cover the business side of the API: who a key acts as, how many credits the workspace has, which API keys exist, what has been spent, what credits and plans cost, and how to pay. None of them costs credits. They are the same endpoints the RankParse dashboard uses.

Every route here except Get pricing authenticates with the normal X-API-Key header. See Authentication.

Operations

OperationRouteWho can call it
Get profileGET /v1/meAny key
Get credit balanceGET /v1/creditsOwner, admin, member
List usageGET /v1/usageOwner, admin, member
Get pricingGET /v1/pricingAnyone, no key
List API keysGET /v1/keysOwner, admin, member (members see only their own keys)
Create an API keyPOST /v1/keysOwner, admin, member
Revoke an API keyDELETE /v1/keys/:idOwner, admin, member (members revoke only their own keys)
Buy creditsPOST /v1/checkoutOwner, admin
Start a subscriptionPOST /v1/subscription/checkoutOwner
Open the billing portalPOST /v1/subscription/portalOwner

Keys, people and workspaces

An API key belongs to a workspace and acts as the person who created it, with that person's role in the workspace. Credits, usage and keys are all workspace-wide. A role that is not allowed an action gets 403 capability_missing:

{
  "error": "Forbidden",
  "code": "capability_missing",
  "message": "Your role in this workspace does not allow this action"
}

A client role (a report login) can call Get profile, which then shows credits: null, and nothing else on this page.

Two credit buckets

A workspace can hold two kinds of credits:

  • Purchased credits come from credit packs (and the legacy lifetime deal). They never expire.
  • Plan credits are the monthly quota of a Pro or Agency subscription. Each grant replaces the previous one rather than adding to it, they expire at the end of the period, and they are spent first.

credits in every response is the total you can spend now. Get credit balance also returns the split. Credit packs stay available on every plan.

Dashboard only

Some account actions have no API: changing auto recharge or the monthly spend cap, saving a card, connecting integrations, inviting teammates and the affiliate payout screens. Do those from the dashboard.

These account routes do not answer an API key: the team routes under /v1/internal/team and the other /v1/internal/* routes are signed calls from the RankParse web app only.

Errors shared by every route

HTTPCodeWhen
401invalid_api_keyMissing, invalid or revoked API key.
403capability_missingYour role in the workspace does not allow the action.

See Errors for the error body format. These routes are not counted against the 60 requests per minute data endpoint limit, but keep polling modest.

On this page