curl -X PATCH https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/profile \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"platform": "instagram",
"bio": "Premium fashion content daily 👗✨",
"profilePictureUrl": "https://example.com/new-pic.jpg"
}'
const response = await fetch('https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/profile', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
platform: 'instagram',
bio: 'Premium fashion content daily 👗✨',
profilePictureUrl: 'https://example.com/new-pic.jpg'
})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/profile',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'platform': 'instagram',
'bio': 'Premium fashion content daily 👗✨',
'profilePictureUrl': 'https://example.com/new-pic.jpg'
}
)
print(response.json())
{
"success": true,
"accountId": "acc_1a2b3c4d5e",
"platform": "instagram",
"name": "Fashion Insider",
"username": "fashioninsider",
"bio": "Premium fashion content daily 👗✨",
"profilePictureUrl": "https://storage.googleapis.com/...",
"updatedAt": "2024-04-21T19:45:00Z"
}
Accounts
Edit Profile
Update account profile information
PATCH
/
v1
/
accounts
/
{accountId}
/
profile
curl -X PATCH https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/profile \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"platform": "instagram",
"bio": "Premium fashion content daily 👗✨",
"profilePictureUrl": "https://example.com/new-pic.jpg"
}'
const response = await fetch('https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/profile', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
platform: 'instagram',
bio: 'Premium fashion content daily 👗✨',
profilePictureUrl: 'https://example.com/new-pic.jpg'
})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/profile',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'platform': 'instagram',
'bio': 'Premium fashion content daily 👗✨',
'profilePictureUrl': 'https://example.com/new-pic.jpg'
}
)
print(response.json())
{
"success": true,
"accountId": "acc_1a2b3c4d5e",
"platform": "instagram",
"name": "Fashion Insider",
"username": "fashioninsider",
"bio": "Premium fashion content daily 👗✨",
"profilePictureUrl": "https://storage.googleapis.com/...",
"updatedAt": "2024-04-21T19:45:00Z"
}
Path Parameters
string
required
The unique account identifier.
Request Body
string
required
Platform to update:
tiktok or instagram.string
New display name.Restrictions:
- TikTok: Can change once every 7 days (after Day 5 of warmup)
- Instagram: Can change once every 14 days
string
New username. Instagram only - TikTok does not support username changes via this endpoint.Restrictions:
- Instagram: No restriction on username changes
string
New bio/description. No restrictions on frequency.
string
URL of new profile picture. Must be a publicly accessible image URL.IMPORTANT: Image must have a 1:1 aspect ratio (square). Non-square images will be rejected.
Response
boolean
Whether the profile was updated successfully.
string
Account identifier.
string
Platform:
tiktok or instagram.string
Updated display name.
string
Updated username (Instagram only).
string
Updated bio.
string
Updated profile picture URL.
string
ISO 8601 timestamp of when the profile was updated.
string
ISO 8601 timestamp of when the name can be changed again (if name was changed).
curl -X PATCH https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/profile \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"platform": "instagram",
"bio": "Premium fashion content daily 👗✨",
"profilePictureUrl": "https://example.com/new-pic.jpg"
}'
const response = await fetch('https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/profile', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
platform: 'instagram',
bio: 'Premium fashion content daily 👗✨',
profilePictureUrl: 'https://example.com/new-pic.jpg'
})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e/profile',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'platform': 'instagram',
'bio': 'Premium fashion content daily 👗✨',
'profilePictureUrl': 'https://example.com/new-pic.jpg'
}
)
print(response.json())
{
"success": true,
"accountId": "acc_1a2b3c4d5e",
"platform": "instagram",
"name": "Fashion Insider",
"username": "fashioninsider",
"bio": "Premium fashion content daily 👗✨",
"profilePictureUrl": "https://storage.googleapis.com/...",
"updatedAt": "2024-04-21T19:45:00Z"
}
Name Change RestrictionsAttempting to change the name before the allowed time will return a
429 error with the next allowed change date.Error Responses
Name Change Too Soon
{
"error": {
"code": "name_change_restricted",
"message": "You can change your TikTok name again on 2024-04-28",
"nextAllowedAt": "2024-04-28T10:00:00Z"
}
}
Invalid Profile Picture Ratio
{
"error": {
"code": "invalid_image_ratio",
"message": "Profile picture must have a 1:1 aspect ratio (square). Provided image is 1920x1080."
}
}
Username Not Supported (TikTok)
{
"error": {
"code": "invalid_parameter",
"message": "Username changes are only supported for Instagram accounts"
}
}