Skip to content

refreshAccount

POST
/accounts/{accountId}/refresh
curl --request POST \
--url http://localhost:8080/api/v1/accounts/per_01j9x3k8m2q4r5s6t7v8w9y0z1/refresh \
--cookie hs_session=<hs_session>

Server tier: fetch now (async). Agent tier: queue a priority-10 agent task. Closed tier: 409 conflict.

accountId
required
string
/^[a-z]{2,3}_[0-9a-hjkmnp-tv-z]{26}$/

Refresh scheduled.

Media typeapplication/json
object
id
required
string
/^[a-z]{2,3}_[0-9a-hjkmnp-tv-z]{26}$/
platform
required
string
Allowed values: instagram facebook line wechat bluesky x douyin xiaohongshu truthsocial
handle
required
string
displayName
string | null
profileUrl
required
string format: uri
deepLinks
required

Client picks app link on mobile when installed, else web.

object
web
required
string format: uri
ios
string
android
string
copyValue

Value to copy when no link exists (e.g. WeChat ID).

string
hintKey

I18n key with instructions, e.g. “platformWechatOpenHint”.

string
personId
required
string
/^[a-z]{2,3}_[0-9a-hjkmnp-tv-z]{26}$/
platformUserId
string | null
avatar
One of:
object
id
required
string
/^[a-z]{2,3}_[0-9a-hjkmnp-tv-z]{26}$/
url
required

Signed URL, valid 24 h.

string
thumbUrl
string
cardUrl
string
posterUrl
string
mime
required
string
width
integer
height
integer
durationMs
integer
blurhash
string
alt
string
fetchTier
required
string
Allowed values: server agent closed
status
required
string
Allowed values: pending ok stale needs_agent login_required not_found error paused closed
statusDetailKey
string | null
fetchIntervalS
integer | null
lastSuccessAt
One of:
string format: date-time
nextFetchAt
One of:
string format: date-time
createdAt
required
string format: date-time

Examples

Exampleseed

Derived from fixtures/seed.json.

{
"avatar": null,
"createdAt": "2026-09-17T09:00:00.000Z",
"deepLinks": {
"android": "https://www.instagram.com/_u/lin.cooks/",
"ios": "instagram://user?username=lin.cooks",
"web": "https://www.instagram.com/lin.cooks/"
},
"displayName": null,
"fetchIntervalS": 10800,
"fetchTier": "agent",
"handle": "lin.cooks",
"id": "acc_01j9te0skfktnnmw6zvew46azb",
"lastSuccessAt": "2026-10-17T08:00:00.000Z",
"nextFetchAt": "2026-10-17T12:00:00.000Z",
"personId": "per_01j9f8r1agkh6g3jp30xcwnytc",
"platform": "instagram",
"platformUserId": null,
"profileUrl": "https://www.instagram.com/lin.cooks/",
"status": "ok",
"statusDetailKey": null
}

Conflicts with current state.

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
code
required
string
i18nKey
string
detail
string
fields
Array<object>
object
path
required
string
code
required
string
i18nKey
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"code": "example",
"i18nKey": "example",
"detail": "example",
"fields": [
{
"path": "example",
"code": "example",
"i18nKey": "example"
}
]
}