Potarix Account API

Profile, credit balance, and API-key self-service.

GitHub OpenAPI

Operations 4

POST /auth/signup Create an account and mint an API key (headless, no browser) #
POST /auth/api-keys Verify email plus password and mint a fresh API key #
GET /me Get profile, credit balance, and payment status #
GET /credits Get the caller's credit balance #

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/potarix-com:potarix-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

potarix-com-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Potarix Enricher Account API
  description: 'Company-data enrichment API. Resolve a company name to its website, find a person''s verified work email, recover decision-maker emails from a domain, turn a LinkedIn URL into an email, scrape a company-wide email roster, or run the full enricher in one call. Each successful lookup spends credits from the caller''s balance. New accounts get 25 free trial credits.


    Auth: every billable and account endpoint takes a bearer token in the Authorization header. The token is a Potarix API key that starts with "ptk_live_". Agents can self-serve a key with no browser via POST /auth/signup (new account) or POST /auth/api-keys (existing account), both of which take email + password and return the key once.


    Credit costs per call: find-website 2, find-email/person 25, find-email/decision-maker 25, find-email/linkedin 10, find-email/company 25 (flat per call). find-all is the sum of the sub-calls it runs. Whiffed lookups (no result) are not charged. A repeat lookup of the same input by the same user is served from cache for free.


    Versioning and deprecation: this is API v1, served at the stable base URL above. Backwards-incompatible changes ship under a new major version (for example a /v2 base path) while the current version stays available. Clients may pin a version with the optional Api-Version request header. Deprecations are announced via the Deprecation and Sunset response headers with at least 90 days notice.


    Rate limits: every response carries RateLimit-Limit, RateLimit-Remaining, and RateLimit-Reset headers so agents can self-pace and back off politely.


    Idempotency: enrichment lookups are idempotent and cached per caller, and accept an optional Idempotency-Key header so automated clients can safely retry without double-charging credits.'
  version: 1.0.0
  contact:
    name: Potarix
    url: https://enricher.potarix.com
servers:
- url: https://api.potarix.com/enricher
  description: Production
security:
- ApiKeyAuth: []
- OAuth2ClientCredentials:
  - enricher:all
tags:
- name: Account
  description: Profile, credit balance, and API-key self-service.
paths:
  /auth/signup:
    post:
      operationId: authSignup
      summary: Create an account and mint an API key (headless, no browser)
      description: Create a new Potarix Enricher account from email + password and return a fresh API key in one round trip. The key is shown ONCE, store it immediately. Grants 25 free trial credits. Returns 409 if an account already exists for that email; use POST /auth/api-keys to mint a key for an existing account instead. No bearer token required.
      tags:
      - Account
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HeadlessAuthRequest'
            example:
              email: founder@example.com
              password: a-strong-password
              label: chatgpt-app
      responses:
        '200':
          description: Account created; API key returned once.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeadlessAuthResponse'
              example:
                user_id: user_2abcXYZ
                email: founder@example.com
                api_key: ptk_live_4c2a72c9d3e1f0a8b6c5d4e3f2a1b0c9
                key_prefix: ptk_live_4c2a72c9
                credits_remaining: 25
                created_at: '2026-05-24T12:00:00Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '409':
          description: An account already exists for that email.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
              example:
                detail:
                  error: user_exists
                  message: An account already exists for that email. Use POST /auth/api-keys to mint a key.
  /auth/api-keys:
    post:
      operationId: authMintApiKey
      summary: Verify email plus password and mint a fresh API key
      description: 'For an existing account: verify email + password and mint a new API key. The key is shown ONCE, store it immediately. Returns 404 if no account exists for the email and 401 if the password is wrong. No bearer token required (this is the credential-based login path).'
      tags:
      - Account
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HeadlessAuthRequest'
            example:
              email: founder@example.com
              password: a-strong-password
              label: chatgpt-app
      responses:
        '200':
          description: Credentials verified; API key returned once.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeadlessAuthResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          description: Invalid email or password.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '404':
          description: No account found for that email.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
  /me:
    get:
      operationId: getMe
      summary: Get profile, credit balance, and payment status
      description: Return the caller's user_id, email, credit balance, total credits ever purchased, whether a card is saved (has_saved_card), and active API-key count. This is the status check an agent should call first to decide whether it can run lookups or needs to top up. Accepts an API key bearer token.
      tags:
      - Account
      security:
      - ApiKeyAuth: []
      - OAuth2ClientCredentials:
        - enricher:read
      responses:
        '200':
          description: Profile and balance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeResponse'
              example:
                user_id: user_2abcXYZ
                email: founder@example.com
                credits_remaining: 861
                total_purchased: 1000
                has_saved_card: true
                api_key_count: 2
        '401':
          $ref: '#/components/responses/Unauthorized'
  /credits:
    get:
      operationId: getCredits
      summary: Get the caller's credit balance
      description: Return the caller's current credit balance and total credits ever purchased. Lighter than /me (no email, card, or key-count lookup). Accepts an API key bearer token.
      tags:
      - Account
      security:
      - ApiKeyAuth: []
      - OAuth2ClientCredentials:
        - enricher:read
      responses:
        '200':
          description: Credit balance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditsResponse'
              example:
                user_id: user_2abcXYZ
                credits_remaining: 861
                total_purchased: 1000
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    HeadlessAuthRequest:
      type: object
      required:
      - email
      - password
      properties:
        email:
          type: string
          format: email
        password:
          type: string
          description: Minimum 8 characters on signup.
          minLength: 8
        label:
          type:
          - string
          - 'null'
          description: Optional label for the minted API key (e.g. chatgpt-app).
    MeResponse:
      type: object
      required:
      - user_id
      - credits_remaining
      - total_purchased
      - has_saved_card
      - api_key_count
      properties:
        user_id:
          type: string
        email:
          type:
          - string
          - 'null'
        credits_remaining:
          type: integer
        total_purchased:
          type: integer
        has_saved_card:
          type: boolean
          description: True if a card is on file (off-session top-ups available).
        api_key_count:
          type: integer
    HeadlessAuthResponse:
      type: object
      required:
      - user_id
      - email
      - api_key
      - key_prefix
      - credits_remaining
      - created_at
      properties:
        user_id:
          type: string
        email:
          type: string
        api_key:
          type: string
          description: Full plaintext API key. Shown ONCE. Store it immediately.
        key_prefix:
          type: string
          description: First chars of the key, safe to display (e.g. ptk_live_4c2a72c9).
        credits_remaining:
          type: integer
        created_at:
          type: string
          format: date-time
    StructuredError:
      type: object
      description: Typed error object with a stable, machine-readable error code.
      required:
      - error
      - message
      properties:
        error:
          type: string
          description: Stable machine-readable error code agents can branch on.
          enum:
          - invalid_token
          - insufficient_credits
          - no_saved_card
          - user_exists
          - bad_request
          - email_not_found
          - not_found
          - upstream_error
          - unconfigured
          - server_error
        message:
          type: string
          description: Human-readable explanation with a suggested recovery step.
        credits_remaining:
          type:
          - integer
          - 'null'
          description: Caller credit balance, included on credit-related errors.
    ErrorDetail:
      type: object
      description: Standard error envelope. detail is either a human-readable string or a structured error object carrying a stable machine-readable error code.
      required:
      - detail
      properties:
        detail:
          description: Error message string, or a structured error object.
          anyOf:
          - type: string
          - $ref: '#/components/schemas/StructuredError'
    CreditsResponse:
      type: object
      required:
      - user_id
      - credits_remaining
      - total_purchased
      properties:
        user_id:
          type: string
        credits_remaining:
          type: integer
        total_purchased:
          type: integer
  responses:
    BadRequest:
      description: Invalid or missing request parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorDetail'
          example:
            detail: domain is required.
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorDetail'
          example:
            detail: Invalid API key
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Potarix Enricher API key. Send it as: Authorization: Bearer ptk_live_xxx. Mint one with POST /auth/signup or POST /auth/api-keys.'
    OAuth2ClientCredentials:
      type: oauth2
      description: 'OAuth 2.0 client-credentials flow (RFC 6749 section 4.4) for agents that prefer short-lived bearer tokens. Use your ptk_live_ API key as the client_secret (client_id is the key prefix). The minted access token resolves to the same account and credit balance as the API key. Discovery: /.well-known/oauth-authorization-server (RFC 8414) and /.well-known/oauth-protected-resource (RFC 9728).'
      flows:
        clientCredentials:
          tokenUrl: https://api.potarix.com/enricher/oauth/token
          scopes:
            enricher:all: Full access to every enrichment, account, and billing endpoint.
            enricher:read: Read-only enrichment and account lookups.
            enricher:write: Billable mutations such as billing top-ups and checkout.