Skip to content

Change a LinkedIn account's sending

PATCH
/api/v1/unipile/accounts/{id}
curl --request PATCH \
--url https://digize.com/api/v1/unipile/accounts/example \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "caps": { "invitesPerDay": 1, "invitesPerWeek": 1, "messagesPerDay": 1, "visitsPerDay": 1, "inmailsPerDay": 1 }, "hours": { "days": [ 1 ], "start": 1, "end": 1 }, "timeZone": "example", "sharedWith": [ "example" ] }'

Changes how a LinkedIn account sends: its daily caps (and invitations a week) up to Unipile’s own limits, working days and hours, its time zone, and which other members may run campaigns from it. A member changes their own; anyone’s needs settings:write.

Needs the outreach:write permission.

id
required
string
>= 1 characters <= 64 characters
Idempotency-Key
string
>= 1 characters <= 255 characters

Makes the request safe to send again: for 24 hours the same key and request answer the first response without repeating the change.

Example

5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69
Media typeapplication/json
object
caps
object
invitesPerDay
integer
<= 100
invitesPerWeek
integer
<= 200
messagesPerDay
integer
<= 100
visitsPerDay
integer
<= 100
inmailsPerDay
integer
<= 50
hours
object
days
required

Working days, 0 for Sunday to 6 for Saturday.

Array<integer>
>= 1 items <= 7 items
start
required

Minutes after midnight on the account’s clock.

integer
<= 1439
end
required

Minutes after midnight on the account’s clock.

integer
>= 1 <= 1440
timeZone
string
sharedWith

Members who may run campaigns from it, by user id.

Array<string>
<= 200 items

Example generated

{
"caps": {
"invitesPerDay": 1,
"invitesPerWeek": 1,
"messagesPerDay": 1,
"visitsPerDay": 1,
"inmailsPerDay": 1
},
"hours": {
"days": [
1
],
"start": 1,
"end": 1
},
"timeZone": "example",
"sharedWith": [
"example"
]
}

Done

Media typeapplication/json
object
id
required
string
provider
required
string
Allowed values: LINKEDIN WHATSAPP INSTAGRAM TELEGRAM MESSENGER MAIL
ownerId
required
string
ownerName
required
string
unipileId
required

Unipile’s id for the account: account_id in integrations.unipile calls.

string
name
required
string
publicIdentifier
required
string | null
profileUrl
required
string | null
pictureUrl
required
string | null
plan
required
string
Allowed values: free premium sales_navigator recruiter
status
required

ok sends; credentials needs reconnecting; restricted LinkedIn restricted it; error, stopped Unipile stopped syncing it; deleted it’s gone from Unipile; connecting for a moment.

string
Allowed values: ok connecting credentials error stopped restricted deleted
statusDetail
required
string | null
statusAt
required
string format: date-time
connectedVia
required
string
Allowed values: hosted cookie
timeZone
required
string
hours
required
object
days
required

Working days, 0 for Sunday to 6 for Saturday.

Array<integer>
>= 1 items <= 7 items
start
required

Minutes after midnight on the account’s clock.

integer
<= 1439
end
required

Minutes after midnight on the account’s clock.

integer
>= 1 <= 1440
caps
required
object
invitesPerDay
required
integer
>= -9007199254740991 <= 9007199254740991
invitesPerWeek
required
integer
>= -9007199254740991 <= 9007199254740991
messagesPerDay
required
integer
>= -9007199254740991 <= 9007199254740991
visitsPerDay
required
integer
>= -9007199254740991 <= 9007199254740991
inmailsPerDay
required
integer
>= -9007199254740991 <= 9007199254740991
sharedWith
required

Members who may run campaigns from it, by user id.

Array<string>
acceptedAt
required

When the owner accepted that automating LinkedIn breaks its rules and the account can be restricted.

string format: date-time
acceptedBy
required
string
pausedUntil
required
Any of:
string format: date-time
cookieKept
required
boolean
createdAt
required
string format: date-time

Example

{
"provider": "LINKEDIN",
"plan": "free",
"status": "ok",
"connectedVia": "hosted"
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

A request with the same Idempotency-Key is still running (conflict).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The Idempotency-Key was used with a different request.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}