RegTail Account API

The Account API from RegTail — 1 operation(s) for account.

GitHub OpenAPI

Operations 1

GET /api/v1/credits Your credits #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/regtail-com:regtail-com-account-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

regtail-com-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: RegTail Account API
  description: 'UK used-car checks for developers and agents: the full report for a plate or a photo of the car, advice for the viewing, and your credits. The API works from a number plate or a photo of the car. It doesn''t accept advert links or return advert content. To compare an advert with the records, use regtail.com. Have an advert? Send its number plate, or a photo of the car, and we''ll check the records. A report on one car needs an API key and spends 1 credit. Fleet statistics (`/api/v1/mot-stats`, the RegTail MOT Index) are free and need no key. Start at /docs/agents. The same tools over MCP at `/mcp`.'
  version: '1'
servers:
- url: https://regtail.com
tags:
- name: Account
paths:
  /api/v1/credits:
    get:
      tags:
      - Account
      summary: Your credits
      description: The credits this key's account can spend now, and where to buy more. **Free**.
      operationId: get_credits_api_v1_credits_get
      responses:
        '200':
          description: The balance
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Credits'
              example:
                credits: 4
                top_up_url: https://regtail.com/?account=topup
                sample: false
        '401':
          description: No API key, or an unknown or revoked one
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Too many calls. Wait for the `Retry-After` header's seconds
          headers:
            Retry-After:
              description: Seconds to wait
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - ApiKey: []
components:
  schemas:
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
          description: unauthorized, payment_required, invalid_plate, invalid_image, invalid_request, no_plate, rate_limited, advice_unavailable, photo_unavailable, ...
        message:
          type: string
          title: Message
          description: What went wrong, in plain English
        docs_url:
          type: string
          title: Docs Url
        credits_remaining:
          anyOf:
          - type: integer
          - type: 'null'
          title: Credits Remaining
          description: With 402
        top_up_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Top Up Url
          description: 'With 402: where to buy credits'
      type: object
      required:
      - code
      - message
      - docs_url
      title: ErrorDetail
    Error:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
      - error
      title: Error
    Credits:
      properties:
        credits:
          type: integer
          title: Credits
          description: Credits the key's account can spend now
        top_up_url:
          type: string
          title: Top Up Url
        sample:
          type: boolean
          title: Sample
          default: false
        plan:
          anyOf:
          - $ref: '#/components/schemas/Plan'
          - type: 'null'
          description: The account's API plan and this period's cars, if it has one
      type: object
      required:
      - credits
      - top_up_url
      title: Credits
    Plan:
      properties:
        cars_used:
          type: integer
          title: Cars Used
          description: Distinct cars looked up this billing period, this one included
        cars_included:
          type: integer
          title: Cars Included
          description: Cars the monthly plan includes
        extra_cars:
          type: integer
          title: Extra Cars
          description: Cars past the included ones this period, billed at the end of the month
        price_per_extra_car_pence:
          type: integer
          title: Price Per Extra Car Pence
        period_end:
          type: string
          title: Period End
          description: When this billing period ends and the count starts again (UTC)
        new_car:
          anyOf:
          - type: boolean
          - type: 'null'
          title: New Car
          description: Whether this call counted a car not yet looked up this period
      type: object
      required:
      - cars_used
      - cars_included
      - extra_cars
      - price_per_extra_car_pence
      - period_end
      title: Plan
  securitySchemes:
    ApiKey:
      type: http
      description: '`Authorization: Bearer rt_live_...` (or `X-API-Key: rt_live_...`). Create a key at https://regtail.com/?account=keys. `rt_test_sample` works with no sign-up and returns sample data for free.'
      scheme: bearer