# Retrieve a user's social identity and associated token storage . **GET /api/users/{userId}/identities/{target}** 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. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters #### Path parameters - **userId** (string) The unique identifier of the user. - **target** (string) #### Query parameters - **includeTokenSecret** (string) Whether to include the token secret in the response. Defaults to false. Token storage must be supported and enabled by the connector to return the token secret. ## Responses ### 200: Returns the user's social identity and associated token storage. #### Body Parameters: application/json (object) - **identity** (object) The user's social identity. - **tokenSecret** (object) The desensitized token set secret associated with the user's social identity. This field is included only if the `includeTokenSecret` query parameter is provided and the corresponding connector has token storage enabled. ### 400: Bad Request ### 401: Unauthorized ### 403: Forbidden ### 404: User social identity not found. [Powered by Bump.sh](https://bump.sh)