Skip to content

Answer LinkedIn's check

POST
/api/v1/unipile/accounts/checkpoint
curl --request POST \
--url https://digize.com/api/v1/unipile/accounts/checkpoint \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "intentId": "example", "action": "solve", "code": "example" }'

Answers the check LinkedIn asked for while a member’s account connects: solve with the code (or a phone number as (+33)0612345678), resend the code, another_way to get it another way, or check whether they approved it in LinkedIn’s app. Only the member who started connecting answers it, within 5 minutes.

Needs the outreach:write permission.

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
intentId
required
string
>= 1 characters <= 64 characters
action
required
string
Allowed values: solve resend another_way check
code
string
>= 1 characters <= 40 characters

Done

Media typeapplication/json
One of:
object
status
required
string
Allowed value: connected
account
required
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

{
"status": "connected",
"account": {
"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"
}
}