Aautoranko

API reference

Account

Identify the account behind a token and check its plan. GET /me is the quickest way to confirm that a new token works.

1 endpointBase URL https://autoranko.com/api/public/v1Every request needs a bearer token

Get the current account

GEThttps://autoranko.com/api/public/v1/me

Returns the account the API token belongs to: its ID, email and name, its subscription plan and how many sites it owns. Call it first to check that a token works: a 200 means the token is valid and active.

plan is the account's billing plan (free unless a paid subscription is active, trialing or past due). Allowances are enforced per site, using each site's own plan field (see GET /sites/{id}), which normally mirrors this value.

Request

No parameters. Send the request with your token, nothing else.

curl https://autoranko.com/api/public/v1/me \
  -H "Authorization: Bearer $AUTORANKO_TOKEN"

Response

200OKThe account, its plan and its site count.

Response bodyapplication/json
  • accountobject
    The account that owns the token.
    account keys(3)Account
    • idstring (uuid)
      Account ID (a UUID).
    • emailstring (email)
      The account's login email.
    • namestring or null
      Display name, or null if none is set.
  • planstring
    The account's subscription plan: free unless a paid subscription is active, trialing or past due.

    One offreestarterpro

  • site_countinteger
    Number of sites the account owns.

Examples

GET/me

Response · 200 OK
{
  "account": {
    "id": "7776bc52-200e-4df1-b959-0837990dd4e8",
    "email": "demo@autoranko.com",
    "name": "Demo Account"
  },
  "plan": "free",
  "site_count": 1
}

Errors

ErrorWhen
401missing_tokenThe Authorization: Bearer … header is missing.
401invalid_tokenThe token is malformed, unknown or revoked.
429rate_limitedThe token made more than 120 requests in the last 60 seconds.

API version v1. Every path on this page is relative to https://autoranko.com/api/public/v1.