> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gethuntd.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Functions

> See which functions your key can use, what each one checks, and how much is left this term

> [!NOTE]
>
> **Availability:** on `https://app.gethuntd.com`, for the same accounts as
> [Submit Email Check](https://docs.gethuntd.com/api-reference/tech-tool-integration/submit-email-check.md). Other accounts receive
> `403 ENDPOINT_NOT_ON_PLAN`. Free: it doesn't use any checks.

```bash cURL theme={null}
curl -X GET "https://app.gethuntd.com/api/v1/public/functions" \
  -H "X-API-Key: hntd_abc12345_yoursecretkey"
```

```javascript JavaScript theme={null}
const response = await fetch('https://app.gethuntd.com/api/v1/public/functions', {
  headers: { 'X-API-Key': process.env.HUNTD_API_KEY },
});

const { functions } = await response.json();
const emailSources = functions.filter((f) => f.available && f.input === 'email').map((f) => f.slug);
const domainSources = functions.filter((f) => f.available && f.input === 'domain').map((f) => f.slug);
```

```python Python theme={null}
import os
import requests

response = requests.get(
    'https://app.gethuntd.com/api/v1/public/functions',
    headers={'X-API-Key': os.environ['HUNTD_API_KEY']},
)

functions = response.json()['functions']
email_sources = [f['slug'] for f in functions if f['available'] and f['input'] == 'email']
domain_sources = [f['slug'] for f in functions if f['available'] and f['input'] == 'domain']
```

```json 200 theme={null}
{
  "success": true,
  "functions": [
    {
      "slug": "okta",
      "name": "Okta",
      "input": "domain",
      "endpoint": "/verify/company",
      "cap": 5000,
      "used": 1240,
      "left": 3760,
      "term": { "starts_at": "2026-10-08T23:53:42.910Z", "expires_at": "2026-11-07T23:53:42.910Z" },
      "expired": false,
      "available": true
    },
    {
      "slug": "hypr",
      "name": "HYPR",
      "input": "email",
      "endpoint": "/verify",
      "cap": 10000,
      "used": 310,
      "left": 9690,
      "term": { "starts_at": "2026-10-08T23:53:19.277Z", "expires_at": "2026-11-07T23:53:19.277Z" },
      "expired": false,
      "available": true
    }
  ]
}
```

```json 401 theme={null}
{
  "success": false,
  "error": {
    "code": "INVALID_API_KEY",
    "message": "API key is missing, invalid, or has been revoked."
  }
}
```

```json 403 theme={null}
{
  "success": false,
  "error": {
    "code": "ENDPOINT_NOT_ON_PLAN",
    "message": "This endpoint is not available on your plan."
  }
}
```

## Overview

Call this before you submit a check. It tells you which tools (the API calls them **functions**)
your key can check, which endpoint each one belongs to, and how many checks each has left. Your
code then never has to hard-code which `sources` it may send.

Each function checks either an email address or a company domain:

| `input` | Send it to | With |
| - | - | - |
| `email` | [`POST /verify`](https://docs.gethuntd.com/api-reference/tech-tool-integration/submit-email-check) | an `email` (or `emails`) |
| `domain` | [`POST /verify/company`](https://docs.gethuntd.com/api-reference/tech-tool-integration/submit-company-check) | a `domain` (or `domains`) |

Use the function's `slug` as the value in `sources`. Before you submit, keep only functions where
`available` is `true`.

## Allowance and Term

A function's **term** is its 30-day window. Its **allowance** is how many checks it allows in that
window.

| Field | Meaning |
| - | - |
| `cap` | How many checks the function allows in its current term. A check over the cap is refused with `429 QUOTA_EXCEEDED`. |
| `used` | How many checks you've used this term |
| `left` | What remains |
| `term` | The function's 30-day term, from `starts_at` to `expires_at`. When it's `null`, the function has no term yet: its cap counts per calendar month (UTC) and it never expires. |
| `expired` | Turns `true` once the term has ended. Checks are then refused with `403 FUNCTION_EXPIRED` until it's renewed. Ask your account manager to renew or change tier. |
| `available` | `true` when the function takes checks right now: its term is running and it isn't paused for maintenance. Filter on it before you submit. |

The numbers are live. Call this endpoint before a large run to see what fits.


## OpenAPI

````yaml api-reference/public-api.json GET /api/v1/public/functions
openapi: 3.0.3
info:
  title: Huntd Public API
  version: 1.0.0
  description: >-
    Read what Huntd tracks for your organization (enterprise plan), or check
    email addresses and company domains against the tools you track (Agency
    plan).
  contact:
    name: Huntd Support
    email: support@gethuntd.com
servers:
  - url: https://app.gethuntd.com
    description: Public API
security:
  - ApiKeyAuth: []
tags:
  - name: Public API
  - name: Email Check
  - name: Company Check
paths:
  /api/v1/public/functions:
    get:
      tags:
        - Email Check
      summary: List Functions
      description: >-
        The functions your API key can send checks to: what each one checks,
        where to send it, its allowance and what's left this term. Agency plan
        only.
      operationId: listFunctions
      responses:
        '200':
          description: Your functions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FunctionsResponse'
              example:
                success: true
                functions:
                  - slug: okta
                    name: Okta
                    input: domain
                    endpoint: /verify/company
                    cap: 5000
                    used: 1240
                    left: 3760
                    term:
                      starts_at: '2026-10-08T23:53:42.910Z'
                      expires_at: '2026-11-07T23:53:42.910Z'
                    expired: false
                    available: true
                  - slug: hypr
                    name: HYPR
                    input: email
                    endpoint: /verify
                    cap: 10000
                    used: 310
                    left: 9690
                    term:
                      starts_at: '2026-10-08T23:53:19.277Z'
                      expires_at: '2026-11-07T23:53:19.277Z'
                    expired: false
                    available: true
                  - slug: servicetitan
                    name: ServiceTitan
                    input: email
                    endpoint: /verify
                    cap: 10000
                    used: 10000
                    left: 0
                    term:
                      starts_at: '2026-09-22T18:30:00.000Z'
                      expires_at: '2026-10-22T18:30:00.000Z'
                    expired: true
                    available: false
        '401':
          description: Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: INVALID_API_KEY
                  message: API key is missing, invalid, or has been revoked.
        '403':
          description: Not available on your plan
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: ENDPOINT_NOT_ON_PLAN
                  message: This endpoint is not available on your plan.
        '429':
          description: Over the API key's per-minute limit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: RATE_LIMIT_EXCEEDED
                  message: 'Rate limit exceeded: 60 requests per minute. Retry in 23s.'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: INTERNAL_ERROR
                  message: Internal server error.
components:
  schemas:
    FunctionsResponse:
      type: object
      required:
        - success
        - functions
      properties:
        success:
          type: boolean
          example: true
        functions:
          type: array
          items:
            $ref: '#/components/schemas/AgencyFunction'
    ApiError:
      type: object
      description: Every error uses this envelope. Branch on `error.code`, not the message.
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - INVALID_PARAMETER
                - INVALID_BODY
                - INVALID_API_KEY
                - ENDPOINT_NOT_ON_PLAN
                - SOURCE_NOT_ALLOWED
                - SUBSCRIPTION_INACTIVE
                - JOB_NOT_FOUND
                - SOURCE_NOT_VERIFIABLE
                - SOURCE_UNAVAILABLE
                - FUNCTION_EXPIRED
                - SOURCE_NEEDS_EMAIL
                - SOURCE_NEEDS_DOMAIN
                - RATE_LIMITED
                - RATE_LIMIT_EXCEEDED
                - QUOTA_EXCEEDED
                - STREAM_FAILED
                - INTERNAL_ERROR
                - ORG_KIND_UNAVAILABLE
            message:
              type: string
              description: Human-readable. May change.
    AgencyFunction:
      type: object
      required:
        - slug
        - name
        - input
        - endpoint
        - cap
        - used
        - left
        - term
        - expired
        - available
      properties:
        slug:
          type: string
          description: The function's ID. Send it in `sources`.
          example: okta
        name:
          type: string
          description: Display name
          example: Okta
        input:
          type: string
          enum:
            - email
            - domain
          description: 'What the function checks: an email address or a company domain'
        endpoint:
          type: string
          enum:
            - /verify
            - /verify/company
          description: >-
            Where to send it: `POST /verify` for `email`, `POST /verify/company`
            for `domain`
        cap:
          type: integer
          description: >-
            Checks allowed in the current term (or calendar month, when there is
            no term)
          example: 5000
        used:
          type: integer
          description: Checks used so far in the current term
          example: 1240
        left:
          type: integer
          description: '`cap` minus `used`, never below 0'
          example: 3760
        term:
          type: object
          nullable: true
          description: >-
            The current 30-day term. `null` when the function has no term: its
            cap counts per calendar month (UTC) and it never expires.
          properties:
            starts_at:
              type: string
              format: date-time
            expires_at:
              type: string
              format: date-time
        expired:
          type: boolean
          description: >-
            `true` once the term has ended. Checks are refused with `403
            FUNCTION_EXPIRED` until it's renewed.
        available:
          type: boolean
          description: >-
            `true` when the function takes checks right now: its term is running
            and it isn't paused for maintenance
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key in format: hntd_{id}_{secret}. Create one in Settings → API &
        webhooks. `Authorization: Bearer` is also accepted.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.