createAccount
# createAccount
POST
/accounts
const url = 'http://localhost:8080/api/v1/accounts';const options = { method: 'POST', headers: {cookie: 'hs_session=<hs_session>', 'Content-Type': 'application/json'}, body: '{"personId":"per_01j9x3k8m2q4r5s6t7v8w9y0z1","platform":"instagram","handle":"example","platformUserId":"example","profileUrl":"https://example.com"}'};
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 \ --header 'Content-Type: application/json' \ --cookie hs_session=<hs_session> \ --data '{ "personId": "per_01j9x3k8m2q4r5s6t7v8w9y0z1", "platform": "instagram", "handle": "example", "platformUserId": "example", "profileUrl": "https://example.com" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
personId
required
string
platform
required
string
handle
required
string
platformUserId
string
profileUrl
string format: uri
Responses
Section titled “Responses”Created.
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://bsky.app/profile/nok.bsky.social", "ios": "https://bsky.app/profile/nok.bsky.social", "web": "https://bsky.app/profile/nok.bsky.social" }, "displayName": null, "fetchIntervalS": 3600, "fetchTier": "server", "handle": "nok.bsky.social", "id": "acc_01j9a1b2c3d4e5f6g7h8j9k00c", "lastSuccessAt": null, "nextFetchAt": null, "personId": "per_01j9a1b2c3d4e5f6g7h8j9k00a", "platform": "bluesky", "platformUserId": null, "profileUrl": "https://bsky.app/profile/nok.bsky.social", "status": "pending", "statusDetailKey": null}Invalid request.
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" } ]}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" } ]}