unipile.message — LinkedIn operation
Direct access to LinkedIn's own API, priced in dollars on your Orange Slice key. Everything we expose, with prices: https://orangeslice.ai/llms.txt
Send a LinkedIn direct message from your connected profile.
Price
$0.002 per call
Billed on every call, including one that returns nothing.
Orange Slice holds the vendor account, so there is nothing to buy and no key to paste. You connect your LinkedIn account once; the price above is all you pay.
Requires a connected account
This runs from your LinkedIn account. A LinkedIn message has to come from a real profile. You connect yours once; there is no LinkedIn tool to buy and no key to paste.
If the account is not connected the call returns HTTP 428 with a
connect_url, and the CLI exits 9. That is not an authentication failure
and no retry will clear it: a person has to open the link and approve access.
- Connect at: https://www.orangeslice.ai/dashboard/outreach
Call it
CLI
orangeslice unipile message --provider-id <string> --text <string>
HTTP
curl -X POST 'https://orangeslice.ai/api/v1/run' \ -H 'Authorization: Bearer $ORANGESLICE_API_KEY' \ -H 'Content-Type: application/json' \ -d '{"capability":"unipile.message","input":{"providerId":"<string>","text":"<string>"}}'
Inputs
| Field | Type | Required | Description |
|---|---|---|---|
providerId | string | Yes | The recipient's LinkedIn provider id, e.g. 'ACoAAA…' |
text | string | Yes | The message body |
Inputs may also be piped as NDJSON, one JSON object per line.
Output
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "sent": { "type": "boolean" }, "chatId": { "anyOf": [ { "type": "string" }, { "type": "null" } ] } }, "required": [ "sent", "chatId" ], "additionalProperties": false }
Before you run
- Price it first.
orangeslice unipile message --dry-runreturns the exact dollar cost and spends nothing. - Large runs need approval. Above the spend-gate threshold a run exits 7 until it carries a plan token, and only a dry run mints one.
- Scopes: send
- Permitted uses: outreach
Exit codes
0 ok · 2 bad input · 3 auth · 4 not found · 5 provider ·
6 rate limited · 7 spend gate, nothing billed · 8 timeout ·
9 a third-party account needs connecting