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

# Send Domain Code

> Emails a single-use code to the workspace's work address to prove it controls the email domain. Throttled, and a limited number of wrong attempts is accepted per code. Also returns the TXT record for the DNS alternative.

Send Domain Code API Prompt
Copy prompt to clipboard

<pre>
  \`Emails a single-use code to the workspace's work address to prove it controls the email domain. Throttled, and a limited number of wrong attempts is accepted per code. Also returns the TXT record for the DNS alternative.

  Endpoint:
  POST [https://verification.didit.me/v3/travel-rule/workspace/domain/code/](https://verification.didit.me/v3/travel-rule/workspace/domain/code/)

  Authentication:
  Use the x-api-key header with the API key returned when the account was created.

  Failure modes:

  * 404 - This application did not join free, so it has no free workspace.

  Guide: /transaction-monitoring/travel-rule-interoperability#email-pickup.\`
</pre>

Paste into


## OpenAPI

````yaml POST /v3/travel-rule/workspace/domain/code/
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: Identity verification API. Authenticate with x-api-key header.
servers:
  - url: https://verification.didit.me
security: []
tags: []
paths:
  /v3/travel-rule/workspace/domain/code/:
    post:
      tags:
        - Travel Rule
      summary: Email a domain verification code
      description: >-
        Emails a single-use code to the workspace's work address to prove it
        controls the email domain. Throttled, and a limited number of wrong
        attempts is accepted per code. Also returns the TXT record for the DNS
        alternative.
      operationId: sendTravelRuleWorkspaceDomainCode
      responses:
        '200':
          description: The domain, its status and the TXT record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TravelRuleWorkspaceDomainCodeResponse'
        '404':
          description: This application did not join free, so it has no free workspace.
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X POST
            https://verification.didit.me/v3/travel-rule/workspace/domain/code/
            \
              -H 'x-api-key: YOUR_API_KEY'
components:
  schemas:
    TravelRuleWorkspaceDomainCodeResponse:
      type: object
      properties:
        domain:
          type: string
        status:
          type: string
          enum:
            - unverified
            - code_sent
            - verified
        txt:
          $ref: '#/components/schemas/TravelRuleWorkspaceTxtRecord'
    TravelRuleWorkspaceTxtRecord:
      type: object
      description: >-
        The TXT record to publish for the DNS proof. Empty until a proof has
        been started.
      properties:
        host:
          type: string
          example: didit-tr-verify.example.com
        value:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Your application's API key, from Developers -> API keys in the Business
        Console. The primary key has full access. A named key can be scoped:
        none, read or write per resource, limited to some workflows or to
        approved sessions, to a list of IP addresses, and to an expiry date. 401
        means the key is missing, wrong, revoked or expired; 403 means the key
        has no access to this resource or action, or the request came from an
        address outside its IP list; 404 on a session route means the session is
        outside the key's workflows or statuses. A key without media access
        receives image, video and PDF URLs as null, and a key without sessions
        write receives session links and tokens as null. See
        https://docs.didit.me/console/api-keys.

````

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