Skip to content

Add documentation: Clarify Authentication Process and Key Management #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

quantstruct-dev-newman[bot]
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