Retrieve a user's social identity and associated token storage .
This API retrieves the social identity and its associated token set for the specified user from the Logto Secret Vault. The token set will only be available if token storage is enabled for the corresponding social connector.
GET
/api/users/{userId}/identities/{target}
curl \
--request GET 'https://[tenant_id].logto.app/api/users/{userId}/identities/{target}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"identity": {
"userId": "string",
"details": {}
},
"tokenSecret": {
"tenantId": "string",
"id": "string",
"userId": "string",
"type": "string",
"metadata": {
"scope": "string",
"expiresAt": 42.0,
"tokenType": "string",
"hasRefreshToken": true
},
"createdAt": 42.0,
"updatedAt": 42.0,
"connectorId": "string",
"identityId": "string",
"target": "string"
}
}