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
}'
const response = await fetch('https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/warmup/configure', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
keywords: ['streetwear', 'sneakers', 'hypebeast'],
duration: 10
})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/warmup/configure',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'keywords': ['streetwear', 'sneakers', 'hypebeast'],
'duration': 10
}
)
print(response.json())
{
"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"
}
}
Warmup
Configure Warmup
Update warmup settings for an active warmup
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
}'
const response = await fetch('https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/warmup/configure', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
keywords: ['streetwear', 'sneakers', 'hypebeast'],
duration: 10
})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/warmup/configure',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'keywords': ['streetwear', 'sneakers', 'hypebeast'],
'duration': 10
}
)
print(response.json())
{
"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
string
required
The unique account identifier.
Request Body
number
Update number of days for the warmup process (3-14 days).
array
Update keywords for content discovery.
Response
string
The account identifier.
string
Platform:
tiktok or instagram.object
Updated warmup configuration.
Show properties
Show properties
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
}'
const response = await fetch('https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/warmup/configure', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
keywords: ['streetwear', 'sneakers', 'hypebeast'],
duration: 10
})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/warmup/configure',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'keywords': ['streetwear', 'sneakers', 'hypebeast'],
'duration': 10
}
)
print(response.json())
{
"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"
}
}
⌘I