Skip to main content

Send a location to a specified instance.

POST 

/message/sendLocation/:instanceName

This endpoint allows users to share a location message.

Request

Path Parameters

    instanceName stringrequired

    The name of the instance to which the location should be sent.

    Example: codechat

Body

required
    number stringrequired

    The recipient's phone number.

    locationMessage object
    name string

    Name or title of the location.

    address string

    Detailed address of the location.

    latitude float

    Latitude of the location.

    longitude float

    Longitude of the location.

    options object
    delay integer

    Delay time before sending the message.

    presence string

    Possible values: [composing, recording, paused]

    Indicates the sender's action/status.

Responses

Successful response

Schema
    any
Loading...