Connect an account (native authentication)
Link to your postpress workspace an account of the given type and provider. The parameters required to perform the authentication depend on the provider you are trying to connect.
Authorization
Request body
The request body is one of the variants below, picked by the provider field. All variants share the same proxy and sync-limit options.
bodyobjectrequiredbody array
LinkedIn - Basic authenticationobjectLinkedIn - Basic authentication object
countrystringlength = 2ipstringdisabled_featuresarray of stringsdisabled_features array
valuestringlinkedin_recruiterlinkedin_sales_navigatorlinkedin_organizations_mailboxessync_limitobjectsync_limit object
chatsstring | number2025-12-31T23:59:59.999Zmessagesstring | number2025-12-31T23:59:59.999ZproviderstringLINKEDINrequiredproxyobjectproxy object
protocolstringhttpshttpsocks5hoststringrequiredportnumberrequiredusernamestringpasswordstringuser_agentstringrecruiter_contract_idstringusernamestringrequiredpasswordstringrequiredLinkedIn - Cookie authenticationobjectLinkedIn - Cookie authentication object
countrystringlength = 2ipstringdisabled_featuresarray of stringsdisabled_features array
valuestringlinkedin_recruiterlinkedin_sales_navigatorlinkedin_organizations_mailboxessync_limitobjectsync_limit object
chatsstring | number2025-12-31T23:59:59.999Zmessagesstring | number2025-12-31T23:59:59.999ZproviderstringLINKEDINrequiredproxyobjectproxy object
protocolstringhttpshttpsocks5hoststringrequiredportnumberrequiredusernamestringpasswordstringuser_agentstringrecruiter_contract_idstringaccess_tokenstringrequiredpremium_tokenstringWhatsAppobjectWhatsApp object
countrystringlength = 2ipstringdisabled_featuresarray of stringsdisabled_features array
valuestringlinkedin_recruiterlinkedin_sales_navigatorlinkedin_organizations_mailboxesproviderstringWHATSAPPrequiredproxyobjectproxy object
protocolstringhttpshttpsocks5hoststringrequiredportnumberrequiredusernamestringpasswordstringpairing_phone_numberstringInstagram - Basic authenticationobjectInstagram - Basic authentication object
countrystringlength = 2ipstringdisabled_featuresarray of stringsdisabled_features array
valuestringlinkedin_recruiterlinkedin_sales_navigatorlinkedin_organizations_mailboxessync_limitobjectsync_limit object
chatsstring | number2025-12-31T23:59:59.999Zmessagesstring | number2025-12-31T23:59:59.999ZproviderstringINSTAGRAMrequiredproxyobjectproxy object
protocolstringhttpshttpsocks5hoststringrequiredportnumberrequiredusernamestringpasswordstringuser_agentstringusernamestringrequiredpasswordstringrequiredInstagram - Cookie authenticationobjectInstagram - Cookie authentication object
countrystringlength = 2ipstringdisabled_featuresarray of stringsdisabled_features array
valuestringlinkedin_recruiterlinkedin_sales_navigatorlinkedin_organizations_mailboxessync_limitobjectsync_limit object
chatsstring | number2025-12-31T23:59:59.999Zmessagesstring | number2025-12-31T23:59:59.999ZproviderstringINSTAGRAMrequiredproxyobjectproxy object
protocolstringhttpshttpsocks5hoststringrequiredportnumberrequiredusernamestringpasswordstringuser_agentstringsessionidstringrequiredMessenger - Basic authenticationobjectMessenger - Basic authentication object
countrystringlength = 2ipstringdisabled_featuresarray of stringsdisabled_features array
valuestringlinkedin_recruiterlinkedin_sales_navigatorlinkedin_organizations_mailboxessync_limitobjectsync_limit object
chatsstring | number2025-12-31T23:59:59.999Zmessagesstring | number2025-12-31T23:59:59.999ZproviderstringMESSENGERrequiredproxyobjectproxy object
protocolstringhttpshttpsocks5hoststringrequiredportnumberrequiredusernamestringpasswordstringuser_agentstringusernamestringrequiredpasswordstringrequiredMessenger - Session authenticationobjectMessenger - Session authentication object
countrystringlength = 2ipstringdisabled_featuresarray of stringsdisabled_features array
valuestringlinkedin_recruiterlinkedin_sales_navigatorlinkedin_organizations_mailboxessync_limitobjectsync_limit object
chatsstring | number2025-12-31T23:59:59.999Zmessagesstring | number2025-12-31T23:59:59.999ZproviderstringMESSENGERrequiredproxyobjectproxy object
protocolstringhttpshttpsocks5hoststringrequiredportnumberrequiredusernamestringpasswordstringuser_agentstringcookiesarray of objectsrequiredcookies array
namestringrequiredvaluestringrequireddomainstringpathstringsecurebooleanhttpOnlybooleanexpirationDatenumbersameSitestringunspecifiedno_restrictionlaxstrictheadersobjectuser_namestringIMAP / SMTP mailboxobjectIMAP / SMTP mailbox object
countrystringlength = 2ipstringdisabled_featuresarray of stringsdisabled_features array
valuestringlinkedin_recruiterlinkedin_sales_navigatorlinkedin_organizations_mailboxessync_limitstringNO_HISTORY_SYNCproviderstringMAILrequiredimap_userstringrequiredsmtp_userstringrequiredimap_passwordstringrequiredsmtp_passwordstringrequiredimap_hoststringrequiredimap_portnumberrequiredsmtp_hoststringrequiredsmtp_portnumberrequiredimap_encryptionstringrequiredtlssslstarttlsdefaultGmail (Google OAuth)objectGmail (Google OAuth) object
countrystringlength = 2ipstringdisabled_featuresarray of stringsdisabled_features array
valuestringlinkedin_recruiterlinkedin_sales_navigatorlinkedin_organizations_mailboxessync_limitstringNO_HISTORY_SYNCproviderstringGOOGLE_OAUTHrequiredrefresh_tokenstringrequiredaccess_tokenstringrequiredTelegramobjectTelegram object
countrystringlength = 2ipstringdisabled_featuresarray of stringsdisabled_features array
valuestringlinkedin_recruiterlinkedin_sales_navigatorlinkedin_organizations_mailboxessync_limitobjectsync_limit object
chatsstring | number2025-12-31T23:59:59.999Zmessagesstring | number2025-12-31T23:59:59.999ZproviderstringTELEGRAMrequiredpasswordstringOutlookobjectOutlook object
countrystringlength = 2ipstringdisabled_featuresarray of stringsdisabled_features array
valuestringlinkedin_recruiterlinkedin_sales_navigatorlinkedin_organizations_mailboxessync_limitstringNO_HISTORY_SYNCproviderstringOUTLOOKrequiredrefresh_tokenstringrequiredaccess_tokenstringrequiredusernamestringrequiredidstringrequiredX / TwitterobjectX / Twitter object
countrystringlength = 2ipstringdisabled_featuresarray of stringsdisabled_features array
valuestringlinkedin_recruiterlinkedin_sales_navigatorlinkedin_organizations_mailboxesproviderstringTWITTERrequiredusernamestringrequiredemailstringrequiredpasswordstringrequiredResponse 201 Created
On success the response contains the newly created account identifier.
objectstringAccountCreatedrequiredaccount_idstringlength ≥ 1requiredExample request (LinkedIn, basic auth)
{
"provider": "LINKEDIN",
"username": "anna@acme.com",
"password": "********"
}Example response
{
"object": "AccountCreated",
"account_id": "acc_01HXYZ4QK3WJ8FN3M6QH7TZ8GR"
}Errors
Every error response follows the same envelope:
400 Bad Request8 types
The request payload is invalid or missing required fields.
errors/invalid_parameters- One or more request parameters are invalid or missing.errors/missing_parameters- One or more request parameters are missing.errors/invalid_request- One or a combination of request parameters are invalid.errors/malformed_request- The given request has been rejected by the provider.errors/content_too_large- The request payload is too large for the provider.errors/too_many_characters- The provided content exceeds the character limit.errors/unescaped_characters- The request path contains unescaped characters.errors/limit_too_high- Pagination limit too high. See API reference for details.
401 Unauthorized1 types
Authentication is missing or the supplied credentials were rejected.
errors/invalid_credentials- The provided credentials are invalid.
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- Credentials don't match the requested account.errors/insufficient_permissions- The account lacks the required permissions.errors/session_mismatch- The session does not match the current account.errors/feature_not_subscribed- The required feature is not part of your subscription.errors/subscription_required- A subscription is required to use this feature.errors/unknown_authentication_context- Unknown authentication context.errors/action_required- The provider requires an additional action.errors/resource_access_restricted- Access to this resource is restricted.
407 Proxy Authentication Required1 types
The proxy in use is rejecting the connection.
errors/proxy_auth_error- The proxy in use is not working. Please try again.
408 Request Timeout1 types
The provider did not respond in time.
errors/request_timeout- Communication with the provider has timed out. Please retry.
409 Conflict2 types
The current task conflicts with another in-flight operation.
errors/operation_canceled- The current task was canceled by a subsequent one.errors/already_exists- An equivalent account already exists.
425 Too Early1 types
Another authentication intent is still in progress for this account.
errors/auth_in_progress- Cannot start a new intent while another is still in progress.
500 Internal Server Error3 types
Something unexpected went wrong on the server side.
errors/unexpected_error- Something went wrong.errors/provider_error- The provider is experiencing operational problems.errors/authentication_intent_error- The current authentication intent was killed after failure. Restart from the beginning.
501 Not Implemented1 types
The requested feature is planned but has not been implemented yet.
errors/feature_not_implemented- Requested feature is planned but has not been implemented yet.
502 Bad Gateway1 types
The proxy in use is rejecting the connection or returned an invalid response.
errors/proxy_error- The proxy in use is not working. Please try again.
503 Service Unavailable5 types
The service is temporarily unavailable; please retry shortly.
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.