Skip to main content

Official SDKs

Official SDKs for popular programming languages are coming soon. We’re actively developing SDKs for:
  • Node.js / TypeScript
  • Python
  • PHP
  • Go
  • Java
  • C# / .NET
  • Ruby
Until official SDKs are available, use the direct HTTP API with your preferred HTTP library.

Current Integration

The NativeMessage API is a REST API that works with any HTTP library. All endpoints follow standard REST conventions with JSON request/response bodies. Use these battle-tested HTTP clients for your language:
LanguageRecommended Libraries
Node.jsaxios, node-fetch
Pythonrequests, httpx
PHPGuzzle, cURL
Gonet/http (standard library)
JavaHttpClient (java.net.http)
C# / .NETHttpClient (System.Net.Http)
RubyNet::HTTP, HTTParty

Quick Examples

Node.js (axios)

const axios = require('axios');

const response = await axios.post(
  'https://api-message.nativehub.live/api/v1/messages/send',
  {
    to: '+1234567890',
    message: 'Hello from NativeMessage!',
    from: 'YourBrand'
  },
  {
    headers: {
      'Content-Type': 'application/json',
      'X-API-Key': 'your_api_key_here'
    }
  }
);

console.log(response.data);

Python (requests)

import requests

url = 'https://api-message.nativehub.live/api/v1/messages/send'
headers = {
    'Content-Type': 'application/json',
    'X-API-Key': 'your_api_key_here'
}
payload = {
    'to': '+1234567890',
    'message': 'Hello from NativeMessage!',
    'from': 'YourBrand'
}

response = requests.post(url, json=payload, headers=headers)
print(response.json())

Next Steps