Get Task Message Status

Get the status of a task message

Endpoint: /task/status/{taskId} Method: GET

{
    taskId: string; // The task's unique identifier
}

Example Usage

// Setup request parameters
const timestamp = Date.now().toString();
const taskId = 'task_abc123xyz789';

// Generate HMAC signature (empty body for GET request)
const hmac = generateHmacSignature(timestamp, {}, secretKey);

// Make the API request
const response = await axios.get(apiEndpoint + '/task/status/' + taskId, {
    headers: {
        apikey: apiKey,
        signature: hmac,
        timestamp: timestamp
    }
});

Task status should be polled at reasonable intervals (e.g., every 1-2 seconds) to avoid rate limiting.

Last updated