Accounts
Connect an account (hosted authentication)
Changed onCreate a url which redirect to Unipile's hosted authentication to connect or reconnect an account.
post/api/v1/hosted/accounts/link
Request
- Base URLhttps://api1.unipile.com:13111
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"expiresOn": "2025-12-31T23:59:59.999Z",
"sync_limit": {
"MESSAGING": {
"chats": "2025-12-31T23:59:59.999Z",
"messages": "2025-12-31T23:59:59.999Z"
}
}
}Response
OK. Request succeeded.
Changes
- warning
added the new
errors/target_audience_too_smallenum value to theresponse property for the response status - info
added the new optional request property
/
- warning