SparkPost DKIM Keys API

The DKIM Keys API from SparkPost — 3 operation(s) for dkim keys.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /sending-domains/{domain}/dkim-keys List DKIM keys for a sending domain · List DKIM Keys #
Ask an LLM
“Which DKIM keys are configured for my sending domain?”
“Can I see all DKIM keys on a domain?”
Tell an agent
List DKIM keys for sending domain {domain}.
Show every DKIM key on {domain}.
POST /sending-domains/{domain}/dkim-keys Add a DKIM key to a sending domain · Create a DKIM Key #
Ask an LLM
“How do I add a DKIM key so my domain can sign outbound mail?”
“Can I choose the selector and key length when adding a DKIM key?”
Tell an agent
Add DKIM key {id} to sending domain {domain}.
Create a {dkim_key_length}-bit DKIM key {id} on {domain} with selector {selector}.
GET /sending-domains/{domain}/dkim-keys/{key_id} Get a DKIM key on a sending domain · Retrieve a DKIM Key #
Ask an LLM
“What selector and public key does a specific DKIM key use?”
“Can I look up one DKIM key by its ID?”
Tell an agent
Get DKIM key {key_id} on sending domain {domain}.
Show the details of DKIM key {key_id} for {domain}.
PUT /sending-domains/{domain}/dkim-keys/{key_id} Update a DKIM key on a sending domain · Update a DKIM Key #
Ask an LLM
“Can I change the selector on an existing DKIM key?”
“How do I rotate the private key of a DKIM key?”
Tell an agent
Update DKIM key {key_id} on {domain} to use selector {selector}.
Rotate the private key of DKIM key {key_id} on {domain}.
DELETE /sending-domains/{domain}/dkim-keys/{key_id} Remove a DKIM key from a sending domain · Delete a DKIM Key #
Ask an LLM
“How do I remove a DKIM key from my sending domain?”
“Can I delete a DKIM key that is no longer in use?”
Tell an agent destructive · confirm first
Delete DKIM key {key_id} from sending domain {domain}.
Remove DKIM key {key_id} on {domain}.
POST /sending-domains/{domain}/dkim-keys/{key_id}/verify Verify a DKIM key is published in DNS · Verify a DKIM Key #
Ask an LLM
“Is my DKIM key published correctly in DNS?”
“Can SparkPost check that my DNS record matches the DKIM key?”
Tell an agent
Verify DKIM key {key_id} on sending domain {domain}.
Check that DNS publishes DKIM key {key_id} for {domain}.

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/sparkpost:sparkpost-dkim-keys-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

sparkpost-dkim-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SparkPost Sending Domains DKIM Keys API
  description: Add and verify custom sending domains via DKIM signing. Required for domain-based email authentication and custom bounce domain configuration.
  version: 1.0.0
  contact:
    name: SparkPost Developer Support
    url: https://developers.sparkpost.com/api/sending-domains/
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: https://api.sparkpost.com/api/v1
  description: SparkPost Production API
security:
- ApiKeyAuth: []
tags:
- name: DKIM Keys
paths:
  /sending-domains/{domain}/dkim-keys:
    get:
      operationId: listDkimKeys
      summary: List DKIM Keys
      description: List all DKIM keys for a sending domain.
      tags:
      - DKIM Keys
      parameters:
      - name: domain
        in: path
        required: true
        description: Sending domain name
        schema:
          type: string
      responses:
        '200':
          description: List of DKIM keys
        '404':
          description: Domain not found
    post:
      operationId: createDkimKey
      summary: Create a DKIM Key
      description: Add a new DKIM key to a sending domain.
      tags:
      - DKIM Keys
      parameters:
      - name: domain
        in: path
        required: true
        description: Sending domain name
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DkimKeyRequest'
      responses:
        '200':
          description: DKIM key created
        '400':
          description: Invalid request
        '404':
          description: Domain not found
        '422':
          description: Validation error
  /sending-domains/{domain}/dkim-keys/{key_id}:
    get:
      operationId: getDkimKey
      summary: Retrieve a DKIM Key
      description: Retrieve details about a specific DKIM key.
      tags:
      - DKIM Keys
      parameters:
      - name: domain
        in: path
        required: true
        description: Sending domain name
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        description: DKIM key ID
        schema:
          type: string
      responses:
        '200':
          description: DKIM key details
        '404':
          description: Domain or key not found
    put:
      operationId: updateDkimKey
      summary: Update a DKIM Key
      description: Update an existing DKIM key configuration.
      tags:
      - DKIM Keys
      parameters:
      - name: domain
        in: path
        required: true
        description: Sending domain name
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        description: DKIM key ID
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DkimKeyUpdateRequest'
      responses:
        '200':
          description: DKIM key updated
        '400':
          description: Invalid request
        '404':
          description: Domain or key not found
    delete:
      operationId: deleteDkimKey
      summary: Delete a DKIM Key
      description: Remove a DKIM key from a sending domain.
      tags:
      - DKIM Keys
      parameters:
      - name: domain
        in: path
        required: true
        description: Sending domain name
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        description: DKIM key ID
        schema:
          type: string
      responses:
        '204':
          description: DKIM key deleted
        '400':
          description: Invalid request
        '404':
          description: Domain or key not found
  /sending-domains/{domain}/dkim-keys/{key_id}/verify:
    post:
      operationId: verifyDkimKey
      summary: Verify a DKIM Key
      description: Verify that a DKIM key is properly published in DNS.
      tags:
      - DKIM Keys
      parameters:
      - name: domain
        in: path
        required: true
        description: Sending domain name
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        description: DKIM key ID
        schema:
          type: string
      responses:
        '200':
          description: Verification result
        '400':
          description: Invalid request
        '404':
          description: Domain or key not found
components:
  schemas:
    DkimKeyRequest:
      type: object
      required:
      - id
      properties:
        id:
          type: string
          description: Unique key identifier
        signing_domain:
          type: string
        headers:
          type: string
        private:
          type: string
        public:
          type: string
        selector:
          type: string
        dkim_key_length:
          type: integer
          default: 2048
    DkimKeyUpdateRequest:
      type: object
      properties:
        signing_domain:
          type: string
        headers:
          type: string
        private:
          type: string
        public:
          type: string
        selector:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization