Skip to main content
PATCH
/
v1
/
accounts
/
{accountId}
/
warmup
/
configure
curl -X PATCH https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/warmup/configure \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "keywords": ["streetwear", "sneakers", "hypebeast"],
    "duration": 10
  }'
{
  "accountId": "acc_1a2b3c4d5e",
  "platform": "tiktok",
  "warmupStatus": {
    "enabled": true,
    "startedAt": "2024-04-21T20:00:00Z",
    "completionDate": "2024-05-01T20:00:00Z",
    "duration": 10,
    "keywords": ["streetwear", "sneakers", "hypebeast"],
    "updatedAt": "2024-04-23T20:10:00Z"
  }
}

Path Parameters

accountId
string
required
The unique account identifier.

Request Body

duration
number
Update number of days for the warmup process (3-14 days).
keywords
array
Update keywords for content discovery.

Response

accountId
string
The account identifier.
platform
string
Platform: tiktok or instagram.
warmupStatus
object
Updated warmup configuration.
curl -X PATCH https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/warmup/configure \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "keywords": ["streetwear", "sneakers", "hypebeast"],
    "duration": 10
  }'
{
  "accountId": "acc_1a2b3c4d5e",
  "platform": "tiktok",
  "warmupStatus": {
    "enabled": true,
    "startedAt": "2024-04-21T20:00:00Z",
    "completionDate": "2024-05-01T20:00:00Z",
    "duration": 10,
    "keywords": ["streetwear", "sneakers", "hypebeast"],
    "updatedAt": "2024-04-23T20:10:00Z"
  }
}
Changes to warmup configuration take effect immediately but won’t retroactively affect completed days.

Error Responses

Unauthorized
{
  "error": {
    "code": "unauthenticated",
    "message": "Invalid or missing API key"
  }
}
Account Not Found
{
  "error": {
    "code": "not_found",
    "message": "Account acc_1a2b3c4d5e not found"
  }
}
Warmup Not Active
{
  "error": {
    "code": "warmup_not_active",
    "message": "No active warmup found for this account"
  }
}
Invalid Duration
{
  "error": {
    "code": "invalid_parameter",
    "message": "Duration must be between 3 and 14 days"
  }
}
Server Error
{
  "error": {
    "code": "internal",
    "message": "An unexpected error occurred"
  }
}