Palisade Spf API
The Spf API from Palisade — 1 operation(s) for spf.
The Spf API from Palisade — 1 operation(s) for spf.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/palisade-email:palisade-email-spf-api"
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.
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: 3.2.0
info:
version: '2025-04-30'
title: Palisade Spf API
description: 'The Palisade API uses independent rate-limit buckets. Honor the response headers — do not hard-code limits.
### Buckets
- **Global** — applies to every request reaching the API (public and authenticated alike).
- **DNS** — applies in addition to the global bucket on endpoints that trigger outbound DNS resolution during the request (domain verify, find-dkim-keys, the DNS-reading tools — audit, mailbox provider, SPF include validation, DNS lookup and header analysis — and DNS provider detect). A request can hit either bucket independently.
- **API key** — applies in addition to the global bucket on every request authenticated with an API key. Each key gets its own bucket, shared across all API instances.
- **API key DNS** — a stricter per-key bucket that applies in addition to the DNS bucket on the same DNS-triggering endpoints when the request is authenticated with an API key.
- **Signup** — a per-IP bucket on the headless signup endpoint.
- **MCP OAuth** — a per-subject bucket on the MCP server for requests authenticated with an OAuth (JWT) token, mirroring the API-key bucket for token callers.
### Headers on every response
- `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset` — current bucket state.
### Headers on 429 responses
- `Retry-After` — seconds to wait before retrying.
### 429 response body
`{ "error": "rate_limit_exceeded", "scope": "global" | "dns" | "api_key" | "api_key_dns" | "signup" | "mcp_oauth", "limit": N, "window_seconds": N, "retry_after_seconds": N, "message": "..." }`. Clients must respect `Retry-After` and back off exponentially on repeat failures.
### Keying
Limits are applied **per API key** when the request carries Basic credentials, **per JWT subject** for dashboard-session callers, and fall back to **per source IP** otherwise. Multiple keys from the same host each get their own bucket.'
servers:
- url: https://api.palisade.email
description: API server
tags:
- name: Spf
paths:
/domains/{domainId}/spf:
get:
tags:
- Spf
summary: Get SPF diagnostics
operationId: getSpfDiagnostics
security:
- BearerAuth: []
- BasicAuth: []
parameters:
- schema:
type: string
format: uuid
required: true
name: domainId
in: path
- schema:
$ref: '#/components/schemas/ApiVersion'
required: true
name: Palisade-Version
in: header
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/SpfDiagnostics'
components:
schemas:
SpfProblem:
type: object
properties:
code:
type: string
description: Stable identifier for the problem, safe to branch on — for example "spf-max-10-lookups", "spf-multiple-records", "spf-lookup-failed" or "spf-no-record".
severity:
type: string
enum:
- error
- warning
description: '"error" when receivers fail SPF (or get no protection from it) because of this; "warning" for a risk that does not break evaluation.'
host:
type:
- string
- 'null'
description: The hostname the problem is about, when it concerns a specific lookup.
message:
type: string
description: What is wrong and what it means for mail, in plain language.
required:
- code
- severity
- host
- message
description: A problem found in the live SPF setup.
DnsStatus:
type: string
enum:
- unknown
- syncing
- ready
- error
SpfLookup:
type: object
properties:
mechanism:
type: string
description: 'The SPF term that costs the lookup: "include", "a", "mx", "ptr", "exists" or "redirect". "expanded-domain" marks a macro expansion, which costs none.'
host:
type:
- string
- 'null'
description: The operand the term queries, as published. Usually a hostname. A macro-bearing `exists:` carries the template here, and the substituted name follows as an `expanded-domain` entry when every macro in it could be resolved. A macro-bearing `a:`, `mx:` or `ptr:` carries the template here too, but is never expanded, so no `expanded-domain` entry follows it; only `include:` and `redirect=` operands are put through the macro resolver, and one whose macros all resolved reports the substituted name it queried here rather than the published template, under the note "macro-expanded" when that name publishes exactly one SPF record, and with `error` when it does not.
depth:
type: integer
description: 'Nesting depth: 0 for mechanisms in the domain''s own record, 1 for those inside an include it references, and so on.'
lookups:
type: integer
description: 'DNS lookups this entry accounts for: itself plus everything nested under it. The expensive includes are the ones with the highest number here.'
error:
type: boolean
description: True when this lookup failed to resolve to a usable record.
note:
type:
- string
- 'null'
description: 'Extra context, such as "loop", "unresolved", or one of "macro-expanded" / "macro-unexpanded". Any term whose operand carries a macro -- `exists:`, `include:` or `redirect=` -- carries one of those two, and costs one lookup either way, except that an expanded `include:` or `redirect=` carries no macro note once its target disappoints: "unresolved" when the lookup could not be completed, "loop" when it refers back, "no-txt" alongside `error` when the target returned no TXT records at all, and no note at all -- just `error` -- when the target returned TXT records but not a single SPF record among them.'
required:
- mechanism
- host
- depth
- lookups
- error
- note
description: One DNS lookup the record costs receivers.
SpfDiagnostics:
type: object
properties:
domain_id:
type: string
format: uuid
description: Id of the domain the diagnostics are for.
domain:
type: string
description: The domain name whose live DNS was read, for example "example.com".
record:
type:
- string
- 'null'
description: The SPF TXT record live DNS serves for the domain, or null when none is published. When more than one v=spf1 record exists they are joined with newlines here; see records for them individually.
records:
type: array
items:
type: string
description: One v=spf1 TXT record.
description: Every v=spf1 TXT record found at the domain. More than one entry is itself an error — receivers treat it as a permanent failure.
ttl:
type:
- number
- 'null'
description: TTL of the SPF TXT record in seconds, when it could be read.
status:
type: string
description: 'Overall SPF health: "pass", "warn" or "fail".'
lookup_count:
type: integer
description: 'DNS lookups the record costs receivers: every include, a, mx, ptr, exists and redirect term, counted recursively through every include and redirect. Terms receivers never reach are not charged: anything to the right of a matching `all`, and a `redirect=` in a record that also carries an `all`, which RFC 7208 section 6.1 says must be ignored.'
max_lookups:
type: integer
description: 'The limit SPF imposes before receivers return a permanent error: 10.'
lookups_remaining:
type: integer
description: How many more lookups the record could add before breaking. 0 when at or over the limit.
lookup_breakdown:
type: array
items:
$ref: '#/components/schemas/SpfLookup'
description: Every lookup in the chain, nested entries following their parent.
problems:
type: array
items:
$ref: '#/components/schemas/SpfProblem'
description: Problems found, errors before warnings. Empty when SPF is healthy.
hosted_spf:
type: object
properties:
is_managed:
type: boolean
description: True when Palisade hosts and flattens the SPF record for this domain.
status:
allOf:
- $ref: '#/components/schemas/DnsStatus'
- description: Live status of the hosted SPF chain, when managed.
target_spf:
type:
- string
- 'null'
description: The record Palisade flattens and publishes, when hosted SPF is configured.
error_reason:
allOf:
- $ref: '#/components/schemas/ManagedDnsErrorReason'
- description: Why the hosted SPF chain is in error, when it is.
last_flattened_at:
type:
- string
- 'null'
description: When Palisade last flattened and published the hosted chain, ISO 8601.
required:
- is_managed
- status
- target_spf
- error_reason
- last_flattened_at
description: State of Palisade-hosted SPF for the domain. When managed, the domain publishes a single Palisade include and Palisade keeps the flattened chain under the 10-lookup limit.
next_step:
type: string
description: The single action Palisade suggests taking next.
required:
- domain_id
- domain
- record
- records
- ttl
- status
- lookup_count
- max_lookups
- lookups_remaining
- lookup_breakdown
- problems
- hosted_spf
- next_step
ManagedDnsErrorReason:
type:
- string
- 'null'
enum:
- setup_timeout
- drift
- certificate_invalid
- record_conflict
- delegation_missing
- publish_failed
- dkim_key_error
- check_failed
- null
description: Why managed_dns_status.bimi is "error". "setup_timeout" means the customer CNAME was never detected within the verification window (setup was never completed); "drift" means a previously verified CNAME stopped pointing at Palisade; "record_conflict" means default._bimi holds conflicting records — see dns_conflicts. Null when there is no error or the error predates reason tracking.
ApiVersion:
type: string
enum:
- '2025-04-30'
- unstable
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
BasicAuth:
type: http
scheme: basic
description: 'API key sent as HTTP Basic credentials. Put the API key in the username and leave the password empty: `Authorization: Basic base64(<api_key>:)`.'
externalDocs:
description: View the raw OpenAPI Specification in JSON format
url: /swagger.json