Skip to content

Add documentation: Clarify Authentication Process and Key Management#7

Open
quantstruct-dev-newman[bot] wants to merge 1 commit intomainfrom
quantstruct/content-20250207-143620
Open

Add documentation: Clarify Authentication Process and Key Management#7
quantstruct-dev-newman[bot] wants to merge 1 commit intomainfrom
quantstruct/content-20250207-143620

Conversation

@quantstruct-dev-newman
Copy link

Authentication and Key Management

This document outlines the authentication process for accessing the API and provides guidance on managing your API keys and secrets securely.

Authentication

All API endpoints require authentication using an API key and a secret key. These keys are passed in the header of each request.

Header Parameters:

  • x-api-key: Your API key.
  • x-api-secret: Your API secret.

Example Request (cURL):

curl -X POST \
  'https://your-api-endpoint/v1/messages/individual/{accountId}/send' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'x-api-secret: YOUR_API_SECRET' \
  -d '{
    "content": "Hello, world!",
    "attachment_uri": null,
    "from": "61421868490",
    "to": "61433174782",
    "service": "whatsapp"
  }'

Example Request (Python):

import requests

url = "https://your-api-endpoint/v1/messages/individual/{accountId}/send"
headers = {
    "Content-Type": "application/json",
 

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