import { UGCClient } from 'ugcinc';const client = new UGCClient({ apiKey: 'YOUR_API_KEY'});// Get status for specific accountsconst response = await client.accounts.getStatus({ accountIds: ['acc_123456', 'acc_789012'], includeCompleted: false});// Get status for all accountsconst allResponse = await client.accounts.getStatus();if (response.ok) { response.data.forEach(task => { console.log(`Task ${task.id}: ${task.status}`); });}
Retrieve the status and pending tasks for one or more accounts. Use this endpoint to check what tasks are scheduled, pending, or completed for your accounts.
Request Body
string[]
Array of account IDs to check status for. Omit to get all accounts.
boolean
default:false
Include completed tasks in the response
Response
AccountTask[]
Array of account task objects
Show AccountTask properties
string
Unique task identifier
string
ID of the account this task belongs to
string
Task type (e.g., edit_profile, warmup_scroll)
string
Current task status (scheduled, pending, complete, failed)
string | null
ISO 8601 timestamp when task is scheduled to execute
object | null
Profile update information (only for edit_profile tasks)
import { UGCClient } from 'ugcinc';const client = new UGCClient({ apiKey: 'YOUR_API_KEY'});// Get status for specific accountsconst response = await client.accounts.getStatus({ accountIds: ['acc_123456', 'acc_789012'], includeCompleted: false});// Get status for all accountsconst allResponse = await client.accounts.getStatus();if (response.ok) { response.data.forEach(task => { console.log(`Task ${task.id}: ${task.status}`); });}
import { UGCClient } from 'ugcinc';const client = new UGCClient({ apiKey: 'YOUR_API_KEY'});// Get status for specific accountsconst response = await client.accounts.getStatus({ accountIds: ['acc_123456', 'acc_789012'], includeCompleted: false});// Get status for all accountsconst allResponse = await client.accounts.getStatus();if (response.ok) { response.data.forEach(task => { console.log(`Task ${task.id}: ${task.status}`); });}