Ready-to-use code examples for the instantKOM REST API in multiple programming languages.
| Language | Folder | Prerequisites |
|---|---|---|
| cURL | /curl |
curl |
| JavaScript | /javascript |
Node.js 14+ |
| PHP | /php |
PHP 7.4+ |
| Python | /python |
Python 3.7+ |
All API requests require authentication via API Key:
Authorization: Bearer YOUR_API_KEYThe API key is found in your instantKOM dashboard under Settings > API Keys.
Send a 1:1 text message to a contact by their internal recipientId.
Use GET /v1/contacts to look up the recipient ID.
List all configured messaging channels.
Send a message to all contacts in a channel (or a segment).
Broadcasts target stored contacts — not raw phone numbers.
Use segmentId to restrict the audience.
https://api.instantkom.app
Full API reference: api.instantkom.app/api-docs
These examples are also available at: github.com/instantKOM/api-examples
MIT License - see LICENSE