JavaScript SDK: swarmhit.emailAccounts.hostedLinks.get(hostedLinkId)
What became of a mailbox link: pending while it is open, connected once a mailbox came out of it (accountId names it), failed when the person cancelled, expired once its window closed. Never returns the link URL or its token.
Authorization
bearerAuth AuthorizationBearer <token>
An API key created on the Access tokens page.
In: header
Path Parameters
id*string
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/email-accounts/hosted-link/string"{ "data": { "id": "string", "status": "pending", "channel": "linkedin", "provider": "google", "providers": [ "google" ], "orderId": "string", "purchase": { "maxMailboxes": 0, "contactProvided": true }, "url": "string", "workspaceId": "string", "accountId": "string", "reconnectAccountId": "string", "externalId": "string", "redirectUrl": "string", "hasProxy": true, "country": "string", "error": { "code": "string", "message": "string" }, "expiresAt": "2019-08-24T14:15:22Z", "openedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" }}