refreshAccount
# refreshAccount
POST
/accounts/{accountId}/refresh
const url = 'http://localhost:8080/api/v1/accounts/per_01j9x3k8m2q4r5s6t7v8w9y0z1/refresh';const options = {method: 'POST', headers: {cookie: 'hs_session=<hs_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”accountId
required
string
Responses
Section titled “Responses”Refresh scheduled.
Media typeapplication/json
object
id
required
string
platform
required
string
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
platformUserId
string | null
avatar
fetchTier
required
string
status
required
string
statusDetailKey
string | null
fetchIntervalS
integer | null
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" } ]}