Hail Forward Targets API

The forward-targets API from Hail — 2 operation(s) for forward-targets.

GitHub OpenAPI

Operations 2

GET /v1/forward-targets List Forward Targets #
POST /v1/forward-targets/{address}/resend Resend Forward Confirm #

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/hail-so:hail-so-forward-targets-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

hail-so-forward-targets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hail Forward Targets API
  description: 'Give your AI agent a voice, a real phone number, and an inbox.


    This file is the source of truth for the Go CLI. Regenerate it after

    changing API routes — see docs/public/contributing.md.'
  version: 0.1.0
servers:
- url: https://api.hail.so
  description: Hail Cloud
tags:
- name: forward-targets
paths:
  /v1/forward-targets:
    get:
      tags:
      - forward-targets
      summary: List Forward Targets
      description: 'List every forward address of the organization with its status.


        An address appears here once it was ever put in a domain''s

        ``forward_to``. Only ``verified`` addresses receive forwards.'
      operationId: list_forward_targets_v1_forward_targets_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForwardTargetListResponse'
        '429':
          description: Rate limited. This caller exceeded the general request-rate ceiling. Retry after the Retry-After header (seconds).
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
            RateLimit-Limit:
              description: The request ceiling for the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the current window resets.
              schema:
                type: integer
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/forward-targets/{address}/resend:
    post:
      tags:
      - forward-targets
      summary: Resend Forward Confirm
      description: 'Send a new confirm link to a pending or stopped forward address.


        Use this when the first mail got lost, or to restart forwarding after a

        spam complaint stopped it. One link per address every 10 minutes.'
      operationId: resend_forward_confirm_v1_forward_targets__address__resend_post
      parameters:
      - name: address
        in: path
        required: true
        schema:
          type: string
          title: Address
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForwardTargetResponse'
        '404':
          description: No such forward address in this organization.
        '409':
          description: The address is already verified, or the organization has no sending identity.
        '429':
          description: A confirm link was sent less than 10 minutes ago, the organization reached its daily confirm-mail limit, or the address already received its daily confirm mails. Rate limited. This caller exceeded the general request-rate ceiling. Retry after the Retry-After header (seconds).
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
            RateLimit-Limit:
              description: The request ceiling for the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the current window resets.
              schema:
                type: integer
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ForwardTargetListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/ForwardTargetResponse'
          type: array
          title: Items
          description: Every forward address ever configured for this organization.
      type: object
      required:
      - items
      title: ForwardTargetListResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
          description: Path to the invalid field within the request, as a list of keys/indices (e.g. ['body', 'to']).
        msg:
          type: string
          title: Message
          description: Human-readable description of the validation failure.
        type:
          type: string
          title: Error Type
          description: Machine-readable error type code (e.g. 'missing', 'string_type').
        input:
          title: Input
          description: The value that was actually provided and failed validation.
        ctx:
          type: object
          title: Context
          description: Additional machine-readable context for the error, when the error type provides one.
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
          description: 'List of validation errors: each entry gives the field location (loc), the problem (msg), and the error type (type).'
      type: object
      title: HTTPValidationError
    ForwardTargetResponse:
      properties:
        address:
          type: string
          title: Address
          description: Normalized (lower-cased) email address.
        status:
          type: string
          enum:
          - pending
          - verified
          - stopped
          title: Status
          description: '''verified'' receives forwards. ''pending'' was sent a confirm link that is not yet clicked. ''stopped'' got a spam complaint and needs a new confirm link (POST /forward-targets/{address}/resend).'
        pending_reason:
          anyOf:
          - type: string
            enum:
            - confirm_link
            - account_unverified
          - type: 'null'
          title: Pending Reason
          description: 'Why a ''pending'' address is not live. ''confirm_link'': a confirm mail was sent and not yet clicked. ''account_unverified'': the address is a member''s login email whose account email is not verified yet; it goes live on the account verify click, no confirm mail. Null otherwise.'
        verified_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Verified At
          description: When the address was verified, ISO 8601.
        token_sent_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Token Sent At
          description: When the latest confirm link was sent, ISO 8601. Null once verified.
        stopped_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Stopped At
          description: When forwarding was stopped, ISO 8601.
        stopped_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Stopped Reason
          description: Why forwarding was stopped, e.g. 'complaint'.
      type: object
      required:
      - address
      - status
      title: ForwardTargetResponse
      description: 'One forward address of the organization and whether it may receive

        forwards. Rows come from ``email_forward_targets``; see

        ``hailhq.core.forward_targets``.'