Read the social accounts the person connected for your application
Each social account your application's grants were made through, with the provider scopes it holds. Needs profile:activity; profile_section_hidden when your configuration hides the connections section.
Authorization
oauth2 An OAuth2 access token issued through the authorization flow. Acts on a user's behalf, and reads only what that user's granted scopes disclose. A token whose user has since been deactivated or soft-deleted is rejected.
In: header
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
Error codes
Every error response carries one of these in its code field. Branch on the code, never on the detail text.
| Status | code |
|---|---|
| 401 | not_authenticated, authentication_failed |
| 403 | permission_denied |
| 404 | not_found, profile_section_hidden |
| 429 | rate_limited |
Before you run the sample
- Replace
ACCESS_TOKENwith your user's access token.
curl -X GET "https://example.com/api/v1/userinfo/connections/"{ "connections": [ { "account": { "display_name": "string", "username": "string" }, "authorized_at": "2019-08-24T14:15:22Z", "provider": "string", "scopes": [ { "description": "string", "name": "string" } ] } ]}Read your application's sessions for the person GET
Whether your application holds live tokens for the person, since when, and how many refresh-token chains. Needs `profile:activity`; `profile_section_hidden` when your configuration hides the sessions section.
Upload the person's avatar POST
A new avatar, re-encoded by this platform. Needs `profile:edit` and a configuration that shows the avatar. Refused over your plan's per-file upload limit with `media_too_large`, and an image this platform will not decode with `unprocessable_image`.