Skip to content

Set a follow-up

POST
/api/v1/follow-ups
curl --request POST \
--url https://digize.com/api/v1/follow-ups \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "contactId": "example", "ownerId": "example", "dueAt": "2026-04-15T12:00:00Z", "note": "example", "closeOnReply": true, "task": "example" }'

Sets a follow-up or reminder, for ‘follow up with Ada next week’, ‘remind me on Friday’ or ‘do this later’. When it’s due its owner is told; with a task, and the agent working on its own by then, the agent does the task instead, in a chat of its own, as AI › Settings allows. One about a contact closes by itself when they write back first, unless closeOnReply is false.

Needs the crm: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
contactId
Any of:
string
>= 1 characters <= 64 characters
ownerId

The member it’s for, by user id; whoever sets it when left out.

string
>= 1 characters <= 64 characters
dueAt
required

When it’s due.

string format: date-time
note
string
<= 2000 characters
closeOnReply

Done when the contact writes back first. On for a contact unless false.

boolean
task
Any of:
string
<= 2000 characters

Example generated

{
"contactId": "example",
"ownerId": "example",
"dueAt": "2026-04-15T12:00:00Z",
"note": "example",
"closeOnReply": true,
"task": "example"
}

Done

Media typeapplication/json
object
id
required
string
contactId
required
string | null
contactName
required
string | null
ownerId
required

The member it’s for, by user id, who’s told when it’s due.

string
createdById
required

The member who set it, whom the agent acts for.

string | null
createdByName
required
string
dueAt
required
string format: date-time
note
required
string
closeOnReply
required

Whether it’s done as soon as the contact writes back.

boolean
task
required

What the agent does when it’s due, if it works on its own by then.

string | null
status
required

Open: waiting for its time, or once due for its owner; agent: the agent has it; done; cancelled.

string
Allowed values: open agent done cancelled
outcome
required
Any of:
string
Allowed values: completed replied agent
firedAt
required
Any of:
string format: date-time
runId
required
string | null
chatId
required

The chat the agent worked on it in, at /c/{chatId}.

string | null
result
required

What the agent said it did, or why it couldn’t.

string | null
closedAt
required
Any of:
string format: date-time
closedBy
required
string | null
createdAt
required
string format: date-time
updatedAt
required
string format: date-time

Example

{
"status": "open",
"outcome": "completed"
}

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