Retrieve own profile
Retrieve information about the account owner. The shape of the response depends on the provider of the linked account.
Authorization
Query parameters
Response 200 OK
The response is one of the following variants, picked based on the account's provider.
LinkedIn variantobjectLinkedIn variant object
objectstringAccountOwnerProfilerequiredproviderstringLINKEDINrequiredprovider_idstringrequiredentity_urnstringrequiredobject_urnstringrequiredfirst_namestringrequiredlast_namestringrequiredprofile_picture_urlstringrequiredpublic_profile_urlstringpublic_identifierstringheadlinestringlocationstringemailstringrequiredpremiumbooleanrequiredopen_profilebooleanrequiredoccupationstringorganizationsarray of objectsrequiredorganizations array
idstringrequiredmailbox_idstringrequirednamestringrequiredrecruiterobjectrequiredrecruiter object
Seat variantobjectSeat variant object
owner_seat_idstringrequiredcontract_idstringrequiredError variantobjectError variant object
errorstringrequiredMULTIPLE_SESSIONSDISCONNECTEDnullnullsales_navigatorobjectrequiredsales_navigator object
Seat variantobjectSeat variant object
owner_seat_idstringrequiredcontract_idstringrequiredError variantobjectError variant object
errorstringDISCONNECTEDrequirednullnullTelegram variantobjectTelegram variant object
objectstringAccountOwnerProfilerequiredproviderstringTELEGRAMrequiredprovider_idstringrequiredselfbooleancontactbooleanmutual_contactbooleandeletedbooleanbotbooleanverifiedbooleanrestrictedbooleanfakebooleanpremiumbooleanclose_friendbooleanfirst_namestringlast_namestringusernamestringphonestringprofile_picture_urlstringrequiredstatusobjectstatus object
namestringrequiredexpiresnumberwas_onlinenumberrestriction_reasonarray of objectsrestriction_reason array
platformstringrequiredreasonstringrequiredtextstringrequiredlang_codestringTwitter variantobjectTwitter variant object
objectstringAccountOwnerProfilerequiredproviderstringTWITTERrequiredidstringrequirednamestringrequiredscreen_namestringrequiredlocationstringrequireddescriptionstringrequiredurlstringrequiredentitiesobjectrequiredentities object
descriptionobjectrequireddescription object
urlsarrayrequiredprotectedbooleanrequiredverifiedbooleanrequiredfollowers_countnumberrequiredfriends_countnumberrequiredlisted_countnumberrequiredfavourites_countnumberrequiredstatuses_countnumberrequiredcreated_atstringrequiredprofile_banner_urlstringprofile_image_url_httpsstringrequireddefault_profilebooleanrequireddefault_profile_imagebooleanrequiredwithheld_in_countriesarray of stringsrequiredfollowed_bybooleanfollowingbooleanfollow_request_sentbooleanhas_extended_profilebooleannotificationsbooleanadvertiser_account_typestringbusiness_profile_statestringrequire_some_consentbooleanGmail variantobjectGmail variant object
objectstringAccountOwnerProfilerequiredproviderstringGMAILrequiredemailstringrequiredmessages_totalnumberthreads_totalnumberallowed_scopearray of stringsaliasesarray of objectsrequiredaliases array
emailstringrequireddisplay_namestringreply_tostringsignaturestringis_primarybooleanis_defaultbooleanverification_statusstringis_treated_as_aliasstringOutlook variantobjectOutlook variant object
objectstringAccountOwnerProfilerequiredproviderstringOUTLOOKrequiredidstringrequiredemailstringrequireddisplay_namestringrequiredgiven_namestringrequiredsurnamestringrequireduser_principal_namestringrequiredjob_titlestringrequiredmobile_phonestringrequiredpreferred_languagestringrequiredIMAP variantobjectIMAP variant object
objectstringAccountOwnerProfilerequiredproviderstringIMAPrequiredconnection_paramsobjectrequiredconnection_params object
imapobjectrequiredimap object
usernamestringrequiredportnumberrequiredhoststringrequiredsmtpobjectrequiredsmtp object
usernamestringrequiredportnumberrequiredhoststringrequiredExample request
curl --request GET \
--url 'https://api.postpress.ai/api/v1/users/me?account_id=acc_linkedin_01HXYZ4QK3WJ8FN3M6QH7TZ8GR' \
--header 'X-API-KEY: pp_live_...' \
--header 'accept: application/json'Example response
{
"object": "AccountOwnerProfile",
"provider": "LINKEDIN",
"provider_id": "ACoAACr-1eYBl...",
"entity_urn": "urn:li:fsd_profile:ACoAACr-1eYBl...",
"object_urn": "urn:li:person:ACoAACr-1eYBl...",
"first_name": "Ada",
"last_name": "Lovelace",
"profile_picture_url": "https://media.licdn.com/.../profile.jpg",
"public_profile_url": "https://www.linkedin.com/in/ada-lovelace",
"public_identifier": "ada-lovelace",
"headline": "Founder at postpress",
"location": "San Francisco, CA",
"email": "ada@postpress.ai",
"premium": true,
"open_profile": false,
"occupation": "Founder at postpress",
"organizations": [
{ "id": "org_1337", "mailbox_id": "mb_1", "name": "postpress" }
],
"recruiter": { "owner_seat_id": "seat_1", "contract_id": "ct_1" },
"sales_navigator": null
}Errors
Every error response follows the same envelope:
401 Unauthorized13 types
Credentials are missing, expired, or otherwise invalid.
errors/missing_credentials- Some credentials are necessary to perform the request.errors/multiple_sessions- LinkedIn limits multiple sessions on certain Recruiter accounts. Use the cookie connection method.errors/invalid_checkpoint_solution- The checkpoint resolution did not pass successfully. Retry.errors/invalid_proxy_credentials- The provided proxy credentials are invalid.errors/checkpoint_error- The checkpoint does not appear to be resolvable.errors/invalid_credentials- The provided credentials are invalid.errors/expired_credentials- Credentials have expired. Reconnect the account.errors/insufficient_privileges- This resource is out of your API-key scopes.errors/disconnected_account- The account is disconnected from the provider service.errors/disconnected_feature- The service you're trying to reach is disconnected.errors/invalid_credentials_but_valid_account_imap- IMAP/SMTP credentials are invalid but the account is otherwise valid.errors/expired_link- This link has expired. Generate a new one.errors/wrong_account- The provided credentials do not match the correct account.
403 Forbidden9 types
Authenticated but the account is restricted or the action is not allowed.
errors/account_restricted- The account has been restricted by the provider.errors/account_mismatch- This action cannot be done with your account.errors/insufficient_permissions- Valid authentication but insufficient permissions to perform the request.errors/session_mismatch- Token user id does not match client session id.errors/feature_not_subscribed- The requested feature has not been subscribed or authenticated properly.errors/subscription_required- A subscription is required to use this feature.errors/unknown_authentication_context- An additional step seems necessary to complete login.errors/action_required- An additional step is required.errors/resource_access_restricted- You don't have access to this resource.
404 Not Found2 types
The account or the owning user could not be found.
errors/resource_not_found- The requested resource was not found.errors/invalid_resource_identifier- The provided identifier is not valid.
422 Unprocessable Entity3 types
The account is not designed for this feature, or another constraint is violated.
errors/invalid_account- Provided account is not designed for this feature.errors/unprocessable_entity- The request could not be processed as submitted.errors/account_configuration_error- The account configuration prevents this operation.
429 Too Many Requests1 types
The provider cannot accept any more requests at the moment. Retry later.
errors/too_many_requests- Provider rate limit reached. Back off and retry.
500 Internal Server Error3 types
Something went wrong on our side or with the upstream provider.
errors/unexpected_error- Something went wrong.errors/provider_error- The provider is experiencing operational problems. Retry later.errors/authentication_intent_error- The current authentication intent was killed after failure.
501 Not Implemented1 types
The requested feature is planned but not yet available.
errors/feature_not_implemented- This feature has not been implemented yet.
503 Service Unavailable5 types
postpress is temporarily unable to handle the request.
errors/no_client_session- No client session is currently running.errors/no_channel- No channel to client session.errors/no_handler- Handler missing for that request.errors/network_down- Network is down on the server side. Retry shortly.errors/service_unavailable- Service temporarily unavailable. Retry later.
504 Gateway Timeout1 types
The upstream provider did not respond in time.
errors/request_timeout- Request timed out. Retry, and contact support if it persists.