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

# Send the code

> A six-digit code to the DPO's e-mail, valid for 15 minutes; 429 after five, or within a minute of the last.



## OpenAPI

````yaml openapi/en/control.json POST /v1/approvals/link/code
openapi: 3.1.0
info:
  title: Niadra control API
  version: '1'
  description: >-
    Tenants, projects, sources, keys, people, configuration and usage. It never
    receives customer content.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/approvals/link/code:
    post:
      tags:
        - accounts
      summary: Send the code
      description: >-
        A six-digit code to the DPO's e-mail, valid for 15 minutes; 429 after
        five, or within a minute of the

        last.


        **Authentication.** No authentication.
      operationId: send_approval_code_v1_approvals_link_code_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkRequest'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CodeSent'
          description: Successful Response
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security: []
components:
  schemas:
    LinkRequest:
      additionalProperties: false
      properties:
        token:
          maxLength: 128
          minLength: 20
          title: Token
          type: string
      required:
        - token
      title: LinkRequest
      type: object
    CodeSent:
      additionalProperties: false
      properties:
        codes_left:
          title: Codes Left
          type: integer
        expires_at:
          format: date-time
          title: Expires At
          type: string
      required:
        - expires_at
        - codes_left
      title: CodeSent
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object

````