Hanzo
OpenapiSocial

Returns one of the org's connected accounts by id — its network, handle, status…

Returns one of the org's connected accounts by id — its network, handle, status and timestamps — or 404.

GET /v1/social/accounts/{id}

Addresshttps://api.hanzo.ai/v1/social/accounts/{id}
MethodGET
Operationget_social_accounts_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Returns one of the org's connected accounts by id — its network, handle, status and timestamps — or 404. The provider access token is not part of the response.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the account or post to act on, taken from the path.

Response

StatusBodyMeaning
200socialAccountok

200 body — 6 fields.

FieldInTypeAlwaysDescription
createdAtbodyintegerCreatedAt is when the account was connected, as a unix timestamp in seconds.
handlebodystringHandle is the account's public name on the network, as the customer knows it.
idbodystringID is the account's identifier, minted on connect and the id every later call addresses it by.
providerbodystringProvider is the network this account is on: x, facebook, instagram, linkedin, tiktok, youtube or threads.
statusbodystringStatus is the connection lifecycle: connected, disconnected or error.
updatedAtbodyintegerUpdatedAt is when the account row last changed, as a unix timestamp in seconds.

Failure carries the platform error shape — see Errors.

Examples

hanzo social accounts get <id>

Social API · All Hanzo APIs · Interactive reference

How is this guide?

On this page