Skip to content

Conversation

@quantstruct-dev-sarthak
Copy link

API Reference: Example Requests and Responses

This document provides example requests and responses for various API endpoints to help developers understand how to use the API and what to expect in return. These examples are designed to reduce integration time and improve overall developer experience.

Messages Endpoints

POST /messages/individual/{accountId}/send

Description: Send a message to an individual.

Parameters:

  • accountId (path): Your account ID.
  • x-api-key (header): Your API key.
  • x-api-secret (header): Your API secret.

Request Body:

{
  "content": "Hello, how are you?",
  "attachment_uri": "https://example.com/image.jpg",
  "from": "61421868490",
  "to": "61433174782",
  "service": "whatsapp"
}

Example Request (cURL):

curl -X POST \
  'https://api.example.com/v1/messages/individual/your_account_id/send' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: your_api_key' \
  -H 'x-api-secret: your_api_s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant