Sortance Address rules API

Your account's own single-address blocklist and allowlist.

GitHub OpenAPI

Operations 7

GET /v1/addresses/blocklist List address blocklist #
POST /v1/addresses/blocklist Add to address blocklist #
DELETE /v1/addresses/blocklist Remove from address blocklist #
GET /v1/addresses/allowlist List address allowlist #
POST /v1/addresses/allowlist Add to address allowlist #
DELETE /v1/addresses/allowlist Remove from address allowlist #
POST /v1/addresses/check Check one address against your rules #

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/sortance:sortance-address-rules-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

sortance-address-rules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sortance Address rules API
  version: 0.1.0
  summary: 'Email validation API for signup forms: disposable, no-MX, typo and role checks, your own rules, one decision with its reasons.'
  description: 'Check an email address for disposable domains, a missing mail server, typos and role inboxes, apply your own block and allow rules, and get one decision (send, challenge, hold or drop) with its reasons. It does not claim to confirm that a mailbox exists. Every response carries a trace_id and every error the same envelope. Human docs: https://sortance.com/docs/api. Agent reference: https://sortance.com/llms.txt. A remote MCP server is at https://api.sortance.com/mcp.'
  contact:
    name: Sortance
    url: https://sortance.com
  x-logo:
    url: https://api.sortance.com/brand/icon-512.png
servers:
- url: https://api.sortance.com
security:
- bearerAuth: []
tags:
- name: Address rules
  description: Your account's own single-address blocklist and allowlist.
paths:
  /v1/addresses/blocklist:
    get:
      summary: List address blocklist
      description: Masked addresses (j•••@acme.com), newest first; never the address.
      security:
      - bearerAuth: []
      operationId: listAddressBlocklist
      tags:
      - Address rules
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
      - name: cursor
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddressRuleList'
        '400':
          description: 'invalid_request: malformed body or value.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'unauthorized: missing, malformed or revoked key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'forbidden: the key''s role is below what the route needs.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'rate_limited: too many requests this minute. See the RateLimit-* headers.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error. Carries a trace_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      summary: Add to address blocklist
      description: Adding to one list takes the entry off the other. Needs a member key.
      security:
      - bearerAuth: []
      operationId: addAddressBlocklist
      tags:
      - Address rules
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                emails:
                  type: array
                  items:
                    type: string
                  description: Up to 1,000 addresses.
                trace_ids:
                  type: array
                  items:
                    type: string
                  description: Or trace ids whose addresses to add.
                note:
                  type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: 'invalid_request: malformed body or value.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'unauthorized: missing, malformed or revoked key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'forbidden: the key''s role is below what the route needs.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'rate_limited: too many requests this minute. See the RateLimit-* headers.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error. Carries a trace_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      summary: Remove from address blocklist
      description: Needs a member key.
      security:
      - bearerAuth: []
      operationId: removeAddressBlocklist
      tags:
      - Address rules
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                emails:
                  type: array
                  items:
                    type: string
                ids:
                  type: array
                  items:
                    type: string
                  description: Entry ids from the listing.
                trace_ids:
                  type: array
                  items:
                    type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: 'invalid_request: malformed body or value.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'unauthorized: missing, malformed or revoked key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'forbidden: the key''s role is below what the route needs.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'rate_limited: too many requests this minute. See the RateLimit-* headers.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error. Carries a trace_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/addresses/allowlist:
    get:
      summary: List address allowlist
      description: Masked addresses (j•••@acme.com), newest first; never the address.
      security:
      - bearerAuth: []
      operationId: listAddressAllowlist
      tags:
      - Address rules
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
      - name: cursor
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddressRuleList'
        '400':
          description: 'invalid_request: malformed body or value.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'unauthorized: missing, malformed or revoked key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'forbidden: the key''s role is below what the route needs.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'rate_limited: too many requests this minute. See the RateLimit-* headers.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error. Carries a trace_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      summary: Add to address allowlist
      description: Adding to one list takes the entry off the other. Needs a member key.
      security:
      - bearerAuth: []
      operationId: addAddressAllowlist
      tags:
      - Address rules
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                emails:
                  type: array
                  items:
                    type: string
                  description: Up to 1,000 addresses.
                trace_ids:
                  type: array
                  items:
                    type: string
                  description: Or trace ids whose addresses to add.
                note:
                  type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: 'invalid_request: malformed body or value.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'unauthorized: missing, malformed or revoked key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'forbidden: the key''s role is below what the route needs.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'rate_limited: too many requests this minute. See the RateLimit-* headers.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error. Carries a trace_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      summary: Remove from address allowlist
      description: Needs a member key.
      security:
      - bearerAuth: []
      operationId: removeAddressAllowlist
      tags:
      - Address rules
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                emails:
                  type: array
                  items:
                    type: string
                ids:
                  type: array
                  items:
                    type: string
                  description: Entry ids from the listing.
                trace_ids:
                  type: array
                  items:
                    type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: 'invalid_request: malformed body or value.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'unauthorized: missing, malformed or revoked key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'forbidden: the key''s role is below what the route needs.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'rate_limited: too many requests this minute. See the RateLimit-* headers.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error. Carries a trace_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/addresses/check:
    post:
      summary: Check one address against your rules
      description: Which of your rules apply, without running a verification.
      security:
      - bearerAuth: []
      operationId: checkAddressRules
      tags:
      - Address rules
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: The address to check, up to 320 characters.
                  maxLength: 320
                  examples:
                  - mia@acme.com
              required:
              - email
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: 'invalid_request: malformed body or value.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'unauthorized: missing, malformed or revoked key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'forbidden: the key''s role is below what the route needs.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'rate_limited: too many requests this minute. See the RateLimit-* headers.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error. Carries a trace_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
              - invalid_request
              - unauthorized
              - quota_exceeded
              - rate_limited
              - internal_error
              - all_providers_failed
              - policy_invalid
              - policy_conflict
              - enrichment_quota_exceeded
              - compile_failed
              - not_found
              - screening_quota_exceeded
              - forbidden
              - origin_not_allowed
            message:
              type: string
            trace_id:
              type: string
          required:
          - code
          - message
          - trace_id
      required:
      - error
      description: Every non-2xx body has this shape.
    AddressRuleList:
      type: object
      properties:
        rule:
          type: string
          enum:
          - block
          - allow
        entries:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              display:
                type: string
              note:
                anyOf:
                - type: string
                - type: 'null'
              created_at:
                type: integer
              created_by:
                anyOf:
                - type: string
                - type: 'null'
        count:
          type: integer
        cursor:
          anyOf:
          - type: string
          - type: 'null'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'An API key from https://sortance.com/app: Authorization: Bearer $SORTANCE_KEY.'
externalDocs:
  description: API reference
  url: https://sortance.com/docs/api