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

# Send location

> Sends a location point (latitude/longitude), with optional name and address.



## OpenAPI

````yaml /en/api-reference/openapi.json post /messages/send-location
openapi: 3.1.0
info:
  title: Zapfy API
  description: >-
    Multi-tenant WhatsApp API. Send messages and manage webhooks through a
    single surface.
  version: 1.0.0
servers:
  - url: https://api.zapfy.io/v1
security:
  - accountToken: []
paths:
  /messages/send-location:
    post:
      tags:
        - Messages
      summary: Send location
      description: >-
        Sends a location point (latitude/longitude), with optional name and
        address.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendLocationBody'
      responses:
        '200':
          $ref: '#/components/responses/MessageAccepted'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
        - instanceToken: []
components:
  schemas:
    SendLocationBody:
      type: object
      required:
        - to
        - latitude
        - longitude
      properties:
        to:
          $ref: '#/components/schemas/Recipient'
          description: >-
            Message recipient: phone in E.164 (e.g. 5511999998888) or a group
            id.
        latitude:
          type: number
          example: -23.5614
          description: Latitude in decimal degrees.
        longitude:
          type: number
          example: -46.6559
          description: Longitude in decimal degrees.
        name:
          type: string
          description: Location name (optional).
        address:
          type: string
          description: Location address (optional).
        delay:
          $ref: '#/components/schemas/Delay'
        quoted:
          $ref: '#/components/schemas/Quoted'
    Recipient:
      type: string
      description: >-
        Recipient: a phone in E.164 (with or without `+`, spaces or formatting,
        e.g. `5511999998888` or `+55 11 99999-8888`) or a group id. To send to a
        group, use the group id (from `GET /groups`).
      example: '5511999998888'
    Delay:
      type: integer
      description: >-
        Optional delay in milliseconds before sending; WhatsApp shows "typing…"
        during this interval.
    Quoted:
      type: object
      description: Quotes (replies to) a previous message.
      required:
        - messageId
      properties:
        messageId:
          type: string
          description: '`messageId` of the quoted message.'
          example: 3EB0C767D4...
        participant:
          type: string
          description: In a group, who sent the quoted message.
    MessageHandle:
      type: object
      description: >-
        Identifier of the sent message. Store the `messageId`: together with the
        same `to` you sent to, it is what `/messages/delete` and
        `/messages/edit` need.
      properties:
        messageId:
          type: string
          description: WhatsApp message ID.
          example: 3EB0C767D4...
  responses:
    MessageAccepted:
      description: Message accepted by WhatsApp.
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                $ref: '#/components/schemas/MessageHandle'
    Error:
      description: Error.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Instance not found
  securitySchemes:
    accountToken:
      type: http
      scheme: bearer
      description: Account token (`zpfy_acct_...`) — manages instances and webhooks.
    instanceToken:
      type: http
      scheme: bearer
      description: Instance token (`zpfy_inst_...`) — sends messages.

````