Skip to content

Label a LinkedIn reply

PUT
/api/v1/outreach/replies/{id}/label
curl --request PUT \
--url https://digize.com/api/v1/outreach/replies/example/label \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "label": "interested" }'

Sets the label of a conversation’s latest reply by hand, in place of the AI’s. opt_out puts the contact on the do-not-contact list, which cancels their queued LinkedIn actions.

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
label
required

Interested, not_now, wrong_person, out_of_office, opt_out (the contact goes on the do-not-contact list) or other.

string
Allowed values: interested not_now wrong_person out_of_office opt_out other

Done

Media typeapplication/json
object
id
required

The conversation’s id (messaging.conversations.get opens it).

string
contact
required
object
id
required
string
name
required
string
headline
required
string | null
company
required
string | null
pictureUrl
required
string | null
profileUrl
required
string | null
account
required
Any of:
object
id
required
string
name
required
string
ownerName
required
string
campaign
required
Any of:
object
id
required
string
name
required
string
body
required

Their latest reply, up to 1,000 characters.

string
replies
required

How many messages they’ve written in it.

number
firstAt
required
string format: date-time
lastAt
required
string format: date-time
label
required
Any of:
string
Allowed values: interested not_now wrong_person out_of_office opt_out other
labelSource
required
Any of:
string
Allowed values: ai phrase member
labelState
required

Pending while the AI labels it; labelled; failed or skipped (today’s AI limit) without a label.

string
Allowed values: pending labelled failed skipped
labelledBy
required

The member who labelled it, or the opt-out phrase.

string | null
labelNote
required

Why there’s no label.

string | null
unread
required
boolean

Example

{
"label": "interested",
"labelSource": "ai",
"labelState": "pending"
}

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"
}
}