linkedin.com
Get LinkedIn InMail credit balance
Input
profileUrl requiredA LinkedIn profile URL or public id of any out-of-network 2nd/3rd-degree member this account can InMail. Used only to open the compose panel that displays the balance -- no message is sent. Any valid InMail-eligible target works; the returned balance is an account-level figure, not specific to this person.
Output
canInmail requiredTrue when this account has an InMail route to profileUrl and the composer showed a real 'Use N of M credits' line.
profileUrl requiredcreditsRemaining requiredLive remaining InMail credit balance, read from the compose panel's 'Use 1 of N credits' line. Null when no InMail route exists to profileUrl, or the composer that opened was a free-message one (member already reachable, no credit involved).
note optionalExplains why canInmail is false or creditsRemaining is null, when applicable.
