Skip to content

For the complete documentation index, see llms.txt.

Get task status

GET
/v1/triggers/{trigger_event_id}
curl --request GET \
--url https://api.gopromptless.ai/v1/triggers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Read the current status and conversation of a task submitted through POST /v1/triggers. The messages array holds the persisted conversation (latest 100, oldest-first) for tasks submitted over the API or MCP and for tasks created through MCP request_changes, and comes back empty for other sources. Reading the conversation does not consume it.

trigger_event_id
required
string format: uuid

Identifier of the task, as returned by POST /v1/triggers.

The task’s current status and conversation.

Media typeapplication/json
TaskStatusResponse

The current status of a task and its persisted conversation.

object
trigger_event_id
required
Trigger Event Id

The task’s id.

string format: uuid
status
required
Status

The task’s current status. The status string can change over time, so branch on finished to detect completion.

string
finished
required
Finished

True when the task has completed or been skipped.

boolean
submitted_at
required
Submitted At

ISO 8601 time the task was submitted.

string format: date-time
source
required
Source

The task’s origin.

string
request
required
Request

A one-line summary of the submitted request.

string | null
resolution
required
Resolution

A note that explains how the task ended. Read it after finished is true.

string | null
outcome
required
Outcome

How the task ended. Null until the task finishes, and for tasks from sources other than the API or MCP. Promptless may add values later.

string | null
Allowed values: suggestions_created no_change_needed needs_input failed
suggestions
required
Suggestions

The suggestions this task produced. Each entry is a per-task summary, a lighter shape than the Suggestion lifecycle feed.

Array<object>
TaskSuggestionSummary

A per-task summary of a suggestion the task produced. This is a lighter shape than the Suggestion lifecycle feed.

object
id
required
Id

Stable identifier for the suggestion.

string format: uuid
title
required
Title

Short summary of the documentation change.

string | null
description
required
Description

Longer explanation of the change.

string | null
status
required
Status

The docs pull request’s state (open, draft, merged, or closed), or null before a docs PR exists.

string | null
Allowed values: open draft merged closed
doc_collection_id
required
Doc Collection Id

Identifier of the collection the suggestion targets.

string | null format: uuid
docs_pr_url
required
Docs Pr Url

Link to the documentation pull request, or null before a docs PR exists.

string | null
branch_name
required
Branch Name

The git branch in the documentation repository.

string
labels
required
Labels
Array<string>
assignees
required
Assignees
Array<string>
created_at
required
Created At

ISO 8601 time the suggestion was created.

string format: date-time
status_guidance
required
Status Guidance

Human- or LLM-readable advice for polling the task and interpreting its outcome. Callers detect completion with finished.

string
messages
required
Messages

The persisted conversation, latest 100, oldest-first. Empty for task sources that do not support messages.

Array<object>
TaskMessage

A single message in a task’s conversation.

object
id
required
Id

Stable, immutable identifier for the message. Deduplicate on it.

string format: uuid
trigger_event_id
required
Trigger Event Id

Identifier of the task this message belongs to.

string format: uuid
sequence
required
Sequence

The message’s order within the task.

integer
author
required
Author

Who wrote the message.

object
type
required
Type
string
Allowed values: promptless customer
name
required
Name

The customer’s email when available, otherwise null.

string | null
created_at
required
Created At

ISO 8601 time the message was created.

string format: date-time
message
required
Message

The message text.

string
Example
{
"trigger_event_id": "550e8400-e29b-41d4-a716-446655440000",
"outcome": "suggestions_created",
"suggestions": [
{
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"status": "open"
}
],
"messages": [
{
"id": "b1e2c3d4-5678-90ab-cdef-1234567890ab",
"trigger_event_id": "550e8400-e29b-41d4-a716-446655440000",
"sequence": 1,
"author": {
"type": "promptless"
}
}
]
}

The API key is missing, invalid, or revoked.

Media typeapplication/json
ApiTriggerErrorResponse

Error body returned when an API trigger request is rejected.

object
error
required
Error

Stable machine-readable error code.

string
message
required
Message

Human-readable explanation of the error.

string
Example
{
"error": "authentication_failed",
"message": "Authentication failed."
}

No task with this id exists for the organization (task_not_found).

Media typeapplication/json
ApiTriggerErrorResponse

Error body returned when an API trigger request is rejected.

object
error
required
Error

Stable machine-readable error code.

string
message
required
Message

Human-readable explanation of the error.

string
Example
{
"error": "authentication_failed",
"message": "Authentication failed."
}

The trigger_event_id path parameter is not a valid UUID.

Media typeapplication/json
HTTPValidationError

Validation error body returned when the request fails schema validation.

object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}

The read store is temporarily unavailable (runtime_store_unavailable).

Media typeapplication/json
ApiTriggerErrorResponse

Error body returned when an API trigger request is rejected.

object
error
required
Error

Stable machine-readable error code.

string
message
required
Message

Human-readable explanation of the error.

string
Example
{
"error": "authentication_failed",
"message": "Authentication failed."
}