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

# Resend a code

> Sends a new code on the same id: the previous code stops working, attempts and the expiry reset, and the send is charged and rate-limited like any other — up to 3 resends per verification.



## OpenAPI

````yaml https://tawked.com/openapi.json post /v1/verify/{id}/resend
openapi: 3.1.0
info:
  title: Tawked Verify API
  version: 2026-09
  summary: >-
    OTP verification for Saudi mobile numbers over SMS or WhatsApp, in two
    calls.
  description: >-
    Tawked is a Saudi OTP verification API: one request sends a code by SMS or
    WhatsApp to a Saudi mobile number, one request checks it. Built in Jeddah,
    billed only per delivered code. SAR 0.09 per delivered SMS code, prepaid;
    failed sends are not charged. Authenticate with a Bearer API key from the
    dashboard (tk_live_ for production, tk_test_ for the sandbox, tk_partner_
    for partners). Both /v1/... and /api/v1/... answer identically. Rate limit:
    120 requests per minute per key.
  termsOfService: https://tawked.com/en/terms
  license:
    name: Proprietary (Tawked terms of service)
    url: https://tawked.com/en/terms
  contact:
    name: Tawked support
    email: support@tawked.com
    url: https://tawked.com/en/contact
servers:
  - url: https://tawked.com
    description: Production (the sandbox is a tk_test_ key on the same host)
  - url: https://tawked.com/api
    description: The same API under /api/v1/..., kept for older integrations
security:
  - bearerKey: []
  - headerKey: []
tags:
  - name: Verify
    description: Send and check one-time codes.
  - name: WhatsApp
    description: >-
      Send approved WhatsApp templates through the number connected to an
      application; any approved application connects its own number from the
      dashboard.
externalDocs:
  description: Developer docs, with code samples
  url: https://tawked.com/en/docs
paths:
  /v1/verify/{id}/resend:
    post:
      tags:
        - Verify
      summary: Resend a code
      description: >-
        Sends a new code on the same id: the previous code stops working,
        attempts and the expiry reset, and the send is charged and rate-limited
        like any other — up to 3 resends per verification.
      operationId: resend
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                application:
                  type: string
                  description: Partner keys only, same meaning as on `start`.
      responses:
        '200':
          description: New code sent
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  expires_at:
                    type: string
                    format: date-time
                  resends_remaining:
                    type: integer
              examples:
                new_code_sent:
                  summary: New code sent
                  value:
                    id: b7e5c2b0-9c1a-4e2f-8f2a-3a6b0e9d1c44
                    status: pending
                    expires_at: '2026-09-01T12:39:56.789Z'
                    resends_remaining: 2
        '400':
          description: >-
            `service_required`: Partner key used with no `application` (or
            `service`) in the request body.; `invalid_json`: The request body is
            not valid JSON.; `invalid_request`: start: `to` (and `phone`) both
            missing or blank. check: `id` or `code` missing.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Error'
                  - properties:
                      error:
                        enum:
                          - service_required
                          - invalid_json
                          - invalid_request
        '401':
          description: >-
            `unauthorized`: Missing, unknown, revoked, or mode-mismatched key;
            or an unknown/suspended partner.; `key_expired`: The key's
            `expires_at` has passed. Checked right after the key is recognised,
            before the IP allowlist or scope.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Error'
                  - properties:
                      error:
                        enum:
                          - unauthorized
                          - key_expired
        '402':
          description: >-
            `insufficient_credits`: The account's prepaid balance is below the
            channel price.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Error'
                  - properties:
                      error:
                        enum:
                          - insufficient_credits
        '403':
          description: >-
            `account_not_active`: The application is not approved yet, the
            account is banned, or a partner disabled this application. All four
            causes share this one response.; `ip_not_allowed`: The caller's IP
            does not match the key's `ip_allowlist` (exact IPs and/or CIDR
            ranges, IPv4 and IPv6).; `insufficient_scope`: A `check`-scoped key
            called anything but `check` or `GET /v1/verify/{id}`.;
            `application_paused`: The application is auto-paused by the pumping
            guard (a spike in distinct new destinations within an hour). The
            owner or an admin must resume it.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Error'
                  - properties:
                      error:
                        enum:
                          - account_not_active
                          - ip_not_allowed
                          - insufficient_scope
                          - application_paused
        '404':
          description: >-
            `service_not_found`: Partner key, but `application`/`service` does
            not match any of that partner's provisioned applications.;
            `not_found`: Unknown id, or an id that belongs to a different
            account or application than the calling key's.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Error'
                  - properties:
                      error:
                        enum:
                          - service_not_found
                          - not_found
        '409':
          description: >-
            Already in a terminal state / `not_resendable`: The verification is
            already in a terminal state (verified, failed, expired or canceled).
            The response includes the current `status`.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Error'
                  - properties:
                      error:
                        enum:
                          - not_resendable
              examples:
                already_in_a_terminal_state:
                  summary: Already in a terminal state
                  value:
                    error: not_resendable
                    status: verified
        '429':
          description: >-
            Resend limit reached / `too_many_requests`: Per-key rate limit
            exceeded (default 120 requests/minute, fixed 60s window). Checked
            before authentication.; `rate_limited`: The per-destination hourly
            cap is reached. Distinct from too_many_requests above — same HTTP
            status, different `error` string.; `ip_rate_limited`: The caller
            passed `client_ip`, and that address sent more starts in the last
            hour than the application's `max_per_ip_per_hour` allows.;
            `spend_cap_reached`: Today's charges (Riyadh calendar day) plus this
            send would pass the application's `daily_spend_cap_halalas`.;
            `resend_limit_reached`: This verification already used its 3
            resends.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Error'
                  - properties:
                      error:
                        enum:
                          - too_many_requests
                          - rate_limited
                          - ip_rate_limited
                          - spend_cap_reached
                          - resend_limit_reached
              examples:
                resend_limit_reached:
                  summary: Resend limit reached
                  value:
                    error: resend_limit_reached
        '500':
          description: >-
            `internal_error`: An unhandled server error. Quote the X-Request-Id
            header if you report it.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Error'
                  - properties:
                      error:
                        enum:
                          - internal_error
        '502':
          description: >-
            `send_failed`: The delivery provider call threw. The charge is
            refunded automatically.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Error'
                  - properties:
                      error:
                        enum:
                          - send_failed
components:
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: A stable machine-readable code; the docs list every one.
      additionalProperties: true
  securitySchemes:
    bearerKey:
      type: http
      scheme: bearer
      description: 'Authorization: Bearer <api key>'
    headerKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        The same API key, as a header, for clients that cannot set
        Authorization.

````