Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add documentation: Provide Example Requests and Responses for Each Endpoint#11

Open
quantstruct-dev-sarthak[bot] wants to merge 1 commit intomainquantstruct/a1base-docs:mainfrom
quantstruct/content-20250207-154303quantstruct/a1base-docs:quantstruct/content-20250207-154303Copy head branch name to clipboard
Open

Add documentation: Provide Example Requests and Responses for Each Endpoint#11
quantstruct-dev-sarthak[bot] wants to merge 1 commit intomainquantstruct/a1base-docs:mainfrom
quantstruct/content-20250207-154303quantstruct/a1base-docs:quantstruct/content-20250207-154303Copy head branch name to clipboard

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.

0 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.