HomeUser GuidesAPI Reference
Get Started
HomeAPI Reference
Authentication
Branches
Contact Groups
Contacts
Conversations
Error HandlingInvoices
Messages
Orders
Rate LimitingSDKs & Code ExamplesTemplatesTicketsAPI VersioningWABA NumbersWebhooks
User GuideAPI ReferenceBest PracticesTimestamp

Timestamp

Understanding and generating timestamps

Reading time: 1 minute

Timestamp

The timestamp must be in Unix timestamp format (in seconds) and recent (usually within 5 minutes).

Important Details

  • Format: Unix timestamp in seconds (not milliseconds)
  • Validity: Must be within a specified time window (5 minutes by default)
  • Rejection: Very old requests will be automatically rejected

Generate Timestamp Examples

JavaScriptjavascript
// JavaScript/Node.js
const timestamp = Math.floor(Date.now() / 1000);
Pythonpython
# Python
import time
timestamp = int(time.time())
PHPphp
// PHP
$timestamp = time();

Related

← Back to Authentication
View Guide
View