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

# Send without an approved template

> For numbers enrolled in Meta's direct-send programme. `category` must be `utility` or `authentication`; marketing is not eligible.

**Required scope:** `messages:send`



## OpenAPI

````yaml /api-reference/openapi.json post /v1/messages/direct-send
openapi: 3.1.0
info:
  title: LazyApp API
  version: v1
  description: >-
    One WhatsApp API for developers, SaaS platforms and businesses.


    Every endpoint is Bearer-authenticated with a LazyApp API key, returns JSON,
    and is scoped to the workspace and mode (`live` or `test`) the key belongs
    to.


    Live keys need the Pro plan. A live key on a workspace below Pro gets `402`
    with `code: plan_limit_reached` on every request. Test keys work on every
    plan, so you can build against the test number before you upgrade.


    LazyApp adds 0% to Meta's message rates. Meta bills each message to the
    business's own Meta payment method; your LazyApp plan is billed separately.
  contact:
    name: LazyApp support
    url: https://lazyapp.in
servers:
  - url: https://lazyapp.in
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Messages
    description: Send and schedule WhatsApp messages.
  - name: Contacts
    description: The people you message, and their identifiers.
  - name: Conversations
    description: Threads and their message history.
  - name: Calls
    description: WhatsApp call history for the workspace.
  - name: Templates
    description: Create, submit and sync message templates.
  - name: Media
    description: Upload, retrieve and delete media.
  - name: Broadcasts
    description: Template sends to many contacts at once.
  - name: Events
    description: Say what happened; LazyApp picks the template.
  - name: Flows
    description: WhatsApp Flows and their responses.
  - name: Webhooks
    description: Register endpoints and inspect deliveries.
  - name: Workflows
    description: Automations and their executions.
  - name: Verify
    description: One-time passcodes over WhatsApp.
  - name: Capabilities
    description: What each connected number supports.
  - name: Catalog
    description: Proxy Meta Commerce catalog products for a connection.
  - name: Platform
    description: Manage customers if you run a platform on LazyApp.
  - name: Meta-compatible proxy
    description: Drop-in endpoints for existing Cloud API integrations.
  - name: Connections
    description: >-
      Your WhatsApp numbers and the account behind them: health, limits,
      registration, display name, blue tick, QR codes, conversation starters,
      opt-in links, business profile and blocked users.
  - name: Billing
    description: >-
      Meta's message rates, which LazyApp passes on with 0% added, and the
      billing facts behind them.
  - name: Analytics
    description: Workspace messaging aggregates.
  - name: Groups
    description: WhatsApp group chats on a connection Meta has enabled.
  - name: Funding
    description: Local funding status and recorded WhatsApp charges.
  - name: Connections
    description: 'WhatsApp connections: block users, business profile, insights.'
  - name: Payments
    description: >-
      WhatsApp payments in India: ask for payment, follow it, update the order
      and refund.
paths:
  /v1/messages/direct-send:
    post:
      tags:
        - Messages
      summary: Send without an approved template
      description: >-
        For numbers enrolled in Meta's direct-send programme. `category` must be
        `utility` or `authentication`; marketing is not eligible.


        **Required scope:** `messages:send`
      parameters:
        - name: Idempotency-Key
          in: header
          description: >-
            Optional. Makes this write safe to retry: the same key replays the
            first response instead of acting twice.
          schema:
            type: string
            maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                to:
                  type: string
                  maxLength: 32
                recipient:
                  $ref: '#/components/schemas/Recipient'
                body:
                  type: string
                  maxLength: 1024
                category:
                  type: string
                  enum:
                    - utility
                    - authentication
                context:
                  type: object
                  properties:
                    message_id:
                      type: string
                      maxLength: 128
                idempotency_key:
                  type: string
                  maxLength: 128
                phone_number_id:
                  type: string
                  maxLength: 64
                connection_uuid:
                  type: string
                  format: uuid
                metadata:
                  type: object
                  maxProperties: 20
                  additionalProperties:
                    type: string
                    maxLength: 512
                ttl_seconds:
                  type: integer
                  minimum: 30
                  maximum: 43200
                  description: >-
                    How long WhatsApp keeps trying to deliver. Authentication
                    allows at most 900 (Meta default 600).
                template_name:
                  type: string
                  maxLength: 512
                  pattern: ^[a-z0-9_]+$
                  description: >-
                    Utility only: Meta files every message with this name under
                    one generated template, so insights group them.
                interactive:
                  type: object
                  description: >-
                    Utility only. One of a link button, up to three reply
                    buttons, or a Call on WhatsApp button, with an optional
                    media header.
                  properties:
                    kind:
                      type: string
                      enum:
                        - cta_url
                        - buttons
                        - voice_call
                    header:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - text
                            - image
                            - video
                            - document
                        text:
                          type: string
                          maxLength: 60
                        link:
                          type: string
                          maxLength: 2000
                          description: https only.
                        id:
                          type: string
                          maxLength: 128
                          description: Uploaded media id, instead of `link`.
                        filename:
                          type: string
                          maxLength: 240
                    footer:
                      type: string
                      maxLength: 60
                    cta:
                      type: object
                      properties:
                        display_text:
                          type: string
                          maxLength: 20
                        url:
                          type: string
                          maxLength: 2000
                    buttons:
                      type: array
                      maxItems: 3
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                            maxLength: 256
                          title:
                            type: string
                            maxLength: 20
                        required:
                          - title
                    voice_call:
                      type: object
                      properties:
                        display_text:
                          type: string
                          maxLength: 20
                        ttl_minutes:
                          type: integer
                          minimum: 1
                          maximum: 43200
                  required:
                    - kind
              required:
                - body
                - category
      responses:
        '201':
          description: Sent.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Message'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: >-
            Payment required. Branch on `code`:


            - `plan_limit_reached`: a live key on a workspace below Pro. Test
            keys never get this.

            - `insufficient_credits`: the workspace's monthly spending limit is
            reached, or the number is one LazyApp pays Meta for and its credit
            cannot cover a send Meta charges for.

            - `service_credits_exhausted`: the number is one LazyApp pays Meta
            for, and service replies are paused until credit is added.


            On a number you fund yourself, Meta bills your own Meta payment
            method and LazyApp adds nothing, so only `plan_limit_reached` and
            the spending limit apply.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            The key lacks the required scope, or is restricted from this phone
            number.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Recipient:
      type: object
      properties:
        type:
          type: string
          enum:
            - phone_number
            - bsuid
          description: Defaults to `phone_number`.
        value:
          type: string
          maxLength: 128
    Message:
      type: object
      properties:
        uuid:
          type: string
          description: LazyApp's stable id for the message.
        request_id:
          type: string
          nullable: true
          description: Correlation id, echoed as X-Request-Id.
        status:
          type: string
          enum:
            - queued
            - sent
            - delivered
            - read
            - played
            - failed
        acceptance_status:
          type: string
          nullable: true
        type:
          type: string
          enum:
            - text
            - template
            - image
            - document
            - audio
            - video
            - sticker
            - location
            - contacts
            - interactive
            - reaction
        provider_message_id:
          type: string
          nullable: true
          description: Meta's `wamid`.
        error_message:
          type: string
          nullable: true
          description: Set only when `status` is `failed`.
    Error:
      type: object
      properties:
        message:
          type: string
          description: Human-readable description of what went wrong.
        code:
          type: string
          description: >-
            Stable machine-readable reason, when the failure is one a client can
            branch on.
      required:
        - message
    ValidationError:
      type: object
      properties:
        message:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Field name to list of failures.
      required:
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your API key, e.g. `sk_live_...` or `sk_test_...`.

````

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