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

# Restart verification of a sending domain

> Verification checks DNS for 72 hours and then fails for good. This starts a new 72-hour check without deleting the domain. The domain gets a new DKIM key, so its DKIM record changes: publish the `dns_records` this returns at your DNS provider. A verified domain is a 400 with code `DOMAIN_ALREADY_VERIFIED`, and one still being checked is a 400 with code `DOMAIN_VERIFICATION_IN_PROGRESS`.


Requires one of the following scopes: `lifecycle_domains:update`, `lifecycle_domains:all`, `all:update`, `all:all`



## OpenAPI

````yaml https://api.instantly.ai/openapi/api_v2_lifecycle.json post /api/v2/lifecycle/domains/{id}/restart-verification
openapi: 3.1.0
info:
  title: API Explorer
  description: >-
    The entire API V2 documentation is interactive and can be tested here. To
    the right side of every endpoint you will see a box with an example request.
    You can click on the "Try it" button to send a request to the server right
    from the docs. You will need to provide an API key by clicking the
    `ApiKeyAuth_token` blue text.
  version: 2.0.0
servers:
  - url: https://api.instantly.ai
    description: Instantly API Server
security:
  - ApiKeyAuth: []
tags:
  - name: Contact
    description: >-
      A contact in the workspace: one email address with its consent, tags and
      custom attributes. Segments, and the broadcasts and journeys that target
      them, read contacts. Optional fields with no value are left out of
      responses. The contact list, contact imports and tags page with `cursor`:
      pass the previous page's `next_cursor` until there is none. A contact's
      emails page with `starting_after` and `next_starting_after`.
    x-group: Contact
  - name: Segment
    description: >-
      A saved set of rules that selects contacts. Membership is worked out each
      time the segment is used. Optional fields with no value are left out of
      responses. Lists page with `cursor`: pass the previous page's
      `next_cursor` until there is none.
    x-group: Segment
  - name: Broadcast
    description: >-
      An email marketing broadcast campaign. Optional fields with no value are
      left out of responses. Lists page with `starting_after`: pass the previous
      page's `next_starting_after` until there is none.
    x-group: Broadcast
  - name: Domain
    description: >-
      An email sending domain. Optional fields with no value are left out of
      responses. Lists page with `starting_after`: pass the previous page's
      `next_starting_after` until there is none.
    x-group: Domain
  - name: Journey
    description: >-
      A customer journey, triggered by an event or by membership of a segment.
      Optional fields with no value are left out of responses. Lists page with
      `starting_after`: pass the previous page's `next_starting_after` until
      there is none. Step contacts page with `cursor` and `next_cursor` instead.
    x-group: Journey
  - name: EventCatalogEntry
    description: >-
      An event type seen in this workspace, which journey triggers and
      conversions can use. Optional fields with no value are left out of
      responses. Lists page with `starting_after`: pass the previous page's
      `next_starting_after` until there is none.
    x-group: Event Catalog Entry
  - name: Template
    description: >-
      An email marketing template. Optional fields with no value are left out of
      responses. Lists page with `starting_after`: pass the previous page's
      `next_starting_after` until there is none.
    x-group: Template
  - name: TemplateAsset
    description: >-
      An image or file uploaded for use in email templates. Optional fields with
      no value are left out of responses. Lists page with `starting_after`: pass
      the previous page's `next_starting_after` until there is none.
    x-group: Template Asset
  - name: EmailMetrics
    description: >-
      Aggregated email marketing metrics including totals, time-series data, and
      metadata.
    x-group: Email Metrics
  - name: Conversion
    description: >-
      A conversion event received for a person, credited to the emails they got
      before it.
    x-group: Conversion
paths:
  /api/v2/lifecycle/domains/{id}/restart-verification:
    post:
      tags:
        - Domain
      summary: Restart verification of a sending domain
      description: >-
        Verification checks DNS for 72 hours and then fails for good. This
        starts a new 72-hour check without deleting the domain. The domain gets
        a new DKIM key, so its DKIM record changes: publish the `dns_records`
        this returns at your DNS provider. A verified domain is a 400 with code
        `DOMAIN_ALREADY_VERIFIED`, and one still being checked is a 400 with
        code `DOMAIN_VERIFICATION_IN_PROGRESS`.



        Requires one of the following scopes: `lifecycle_domains:update`,
        `lifecycle_domains:all`, `all:update`, `all:all`
      operationId: restartDomainVerification
      parameters:
        - schema:
            type: string
            format: uuid
            example: 01234567-89ab-cdef-0123-456789abcdef
          example: 01234567-89ab-cdef-0123-456789abcdef
          in: path
          name: id
          required: true
          description: ID of the domain to verify again
      responses:
        '200':
          description: The domain with its new DNS records
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Domain'
        '400':
          description: >-
            The request is invalid. `message` names the field and the problem.
            `code` is `FST_ERR_VALIDATION` when the request does not match this
            schema and `VALIDATION_ERROR` when a value is refused after that. A
            request the resource's current state does not allow, such as pausing
            a broadcast that is not sending, has its own `code` named on that
            operation. `code` is absent on a few request-level checks.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  The request is invalid. `message` names the field and the
                  problem. `code` is `FST_ERR_VALIDATION` when the request does
                  not match this schema and `VALIDATION_ERROR` when a value is
                  refused after that. A request the resource's current state
                  does not allow, such as pausing a broadcast that is not
                  sending, has its own `code` named on that operation. `code` is
                  absent on a few request-level checks.
                properties:
                  statusCode:
                    type: number
                    example: 400
                  error:
                    type: string
                    example: Bad Request
                  message:
                    type: string
                    example: 'limit: must be at most 50'
                  code:
                    type: string
                    description: >-
                      Machine-readable error code. Branch on this, not on the
                      message.
                    example: VALIDATION_ERROR
        '401':
          description: >-
            This request is unauthorized (either the Authorization header is
            missing or invalid, or the API key has been revoked)
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    enum:
                      - 401
                    examples:
                      - 401
                    example: 401
                  error:
                    type: string
                    enum:
                      - Unauthorized
                    examples:
                      - Unauthorized
                    example: Unauthorized
                  message:
                    type: string
                    examples:
                      - Missing Authorization header
                    example: Missing Authorization header
                required:
                  - statusCode
                  - error
                  - message
        '402':
          description: >-
            This request cannot be fulfilled because the workspace does not have
            an active paid plan
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    enum:
                      - 402
                    examples:
                      - 402
                    example: 402
                  error:
                    type: string
                    enum:
                      - Payment Required
                    examples:
                      - Payment Required
                    example: Payment Required
                  message:
                    type: string
                    examples:
                      - Workspace does not have an active paid plan
                    example: Workspace does not have an active paid plan
                required:
                  - statusCode
                  - error
                  - message
        '403':
          description: >-
            The workspace may not perform this action, for example while it is
            suspended. A key without the required scope gets a 401.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  The workspace may not perform this action, for example while
                  it is suspended. A key without the required scope gets a 401.
                properties:
                  statusCode:
                    type: number
                    example: 403
                  error:
                    type: string
                    example: Forbidden
                  message:
                    type: string
                    example: >-
                      Workspace suspended due to a high bounce or spam complaint
                      rate. Please contact support.
                  code:
                    type: string
                    description: >-
                      Machine-readable error code. Branch on this, not on the
                      message.
                    example: WORKSPACE_SUSPENDED
        '404':
          description: The resource does not exist in this workspace.
          content:
            application/json:
              schema:
                type: object
                description: The resource does not exist in this workspace.
                properties:
                  statusCode:
                    type: number
                    example: 404
                  error:
                    type: string
                    example: Not Found
                  message:
                    type: string
                    example: Domain not found
                  code:
                    type: string
                    description: >-
                      Machine-readable error code. Branch on this, not on the
                      message.
                    example: DOMAIN_NOT_FOUND
        '408':
          description: >-
            The request timed out. The outcome is unknown: a write may or may
            not have been applied. Read the resource back before retrying.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  The request timed out. The outcome is unknown: a write may or
                  may not have been applied. Read the resource back before
                  retrying.
                properties:
                  statusCode:
                    type: number
                    example: 408
                  error:
                    type: string
                    example: Request Timeout
                  message:
                    type: string
                    example: An internal error occurred
        '409':
          description: The request conflicts with the current state of the resource.
          content:
            application/json:
              schema:
                type: object
                description: The request conflicts with the current state of the resource.
                properties:
                  statusCode:
                    type: number
                    example: 409
                  error:
                    type: string
                    example: Conflict
                  message:
                    type: string
                    example: Verification was just restarted. Try again in a minute
                  code:
                    type: string
                    description: >-
                      Machine-readable error code. Branch on this, not on the
                      message.
                    example: DOMAIN_VERIFICATION_RECENTLY_RESTARTED
        '429':
          description: >-
            You have exceeded the rate limit. Please check the rate limit docs
            for more information.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    enum:
                      - 429
                    examples:
                      - 429
                    example: 429
                  error:
                    type: string
                    enum:
                      - Too Many Requests
                    examples:
                      - Too Many Requests
                    example: Too Many Requests
                  message:
                    type: string
                    examples:
                      - Rate limit exceeded
                    example: Rate limit exceeded
                required:
                  - statusCode
                  - error
                  - message
        '500':
          description: >-
            An internal error occurred. The outcome is unknown: a write may or
            may not have been applied. Read the resource back before retrying.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  An internal error occurred. The outcome is unknown: a write
                  may or may not have been applied. Read the resource back
                  before retrying.
                properties:
                  statusCode:
                    type: number
                    example: 500
                  error:
                    type: string
                    example: Internal Server Error
                  message:
                    type: string
                    example: An internal error occurred
components:
  schemas:
    Domain:
      title: Domain
      description: >-
        An email sending domain. Optional fields with no value are left out of
        responses. Lists page with `starting_after`: pass the previous page's
        `next_starting_after` until there is none.
      x-tags:
        - Schemas
        - Domain
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the domain
          readOnly: true
          format: uuid
          example: 01a2323d-a7fd-7256-ac2c-7f253d8c39ca
        name:
          type: string
          description: >-
            Domain name (valid FQDN, max 253 characters). Cannot be changed
            after creation.
          minLength: 1
          maxLength: 253
          example: example.com
        workspace_id:
          type: string
          description: Workspace ID that owns this domain
          readOnly: true
          format: uuid
          example: 01a2323d-a7fd-7256-ac2c-7f2656671d2c
        dns_records:
          type: array
          description: Required DNS records for domain verification
          readOnly: true
          items:
            type: object
            properties:
              purpose:
                type: string
                description: 'Authentication protocol: DKIM, SPF, DMARC'
                example: DKIM
              dns_type:
                type: string
                description: DNS record type
                enum:
                  - TXT
                  - MX
                x-enumDescriptions:
                  TXT: Text record for SPF, DKIM, and DMARC verification
                  MX: Mail exchange record for email routing
                example: TXT
              name:
                type: string
                description: DNS record name
                example: instantly._domainkey
              value:
                type: string
                description: DNS record value
                example: p=PUBLIC_KEY_HERE
              priority:
                type: integer
                description: Priority (MX records only)
                example: 10
              ttl:
                type: string
                description: Time to live
                example: Auto
              required:
                type: boolean
                description: Whether record is required for sending
                example: true
              description:
                type: string
                description: Human-readable purpose description
                example: Verifies emails are from you
        is_warmed_up:
          type: boolean
          description: >-
            Whether the domain is already warmed up, so broadcasts skip the
            warmup ramp. False for a new domain; set it with an update.
          example: false
        open_tracking_enabled:
          type: boolean
          description: Whether open tracking is enabled. Defaults to false on create.
          example: false
        click_tracking_enabled:
          type: boolean
          description: Whether click tracking is enabled. Defaults to false on create.
          example: false
        timestamp_created:
          type: string
          description: Timestamp when the domain was created
          readOnly: true
          format: date-time
          example: '2026-12-01T15:33:51.229Z'
        timestamp_updated:
          type: string
          description: Timestamp when the domain was last updated
          readOnly: true
          format: date-time
          example: '2026-12-01T15:33:51.229Z'
        created_by:
          type: string
          description: >-
            ID of the user who created the domain, or the literal `api_key` when
            it was created with an API key
          readOnly: true
          example: 01a2323d-a7fd-7256-ac2c-7f2726aa1034
        actor_type:
          type: string
          description: Type of actor that created the domain
          readOnly: true
          enum:
            - user
            - api_key
          x-enumDescriptions:
            user: Created by a user, in the app or with an OAuth token
            api_key: Created programmatically via API key
          example: user
        verified_for_sending_status:
          type: boolean
          description: Whether the domain is verified for sending emails
          readOnly: true
          example: false
        dkim_status:
          type: string
          description: DKIM verification status
          readOnly: true
          enum:
            - PENDING
            - SUCCESS
            - FAILED
            - NOT_STARTED
            - NOT_FOUND
            - TEMPORARY_FAILURE
          x-enumDescriptions:
            PENDING: Waiting for DNS records to propagate
            SUCCESS: DKIM verification successful
            FAILED: DKIM verification failed
            TEMPORARY_FAILURE: A temporary problem stopped the DKIM check
            NOT_STARTED: DKIM verification not yet initiated
            NOT_FOUND: The sending setup for this domain could not be found
          example: PENDING
        verification_info:
          type: object
          description: >-
            Details of the last verification check. Empty right after create;
            each key is left out until it has a value.
          readOnly: true
          properties:
            last_checked_timestamp:
              type: string
              format: date-time
              description: When the DNS records were last checked
              example: '2026-12-01T15:33:51.229Z'
            last_success_timestamp:
              type: string
              format: date-time
              description: When the DNS records last passed the check
              example: '2026-12-01T15:33:51.229Z'
            error_type:
              type: string
              description: >-
                Why the last check failed, for example `DNS_SERVER_ERROR`,
                `HOST_NOT_FOUND`, `TYPE_NOT_FOUND` or `INVALID_VALUE`.
                `DOMAIN_NOT_FOUND_IN_SES` means the sending setup for this
                domain could not be found.
              example: TYPE_NOT_FOUND
          additionalProperties: true
      required:
        - id
        - name
        - workspace_id
        - dns_records
        - timestamp_created
        - timestamp_updated
        - created_by
        - actor_type
        - verified_for_sending_status
        - dkim_status
        - verification_info
      additionalProperties: false
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer

````

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