Agent

Get Agent Session

Changed on

Read the current status, latest assistant text, and deliverables of a session owned by the caller in the authenticated workspace. Does not wait for completion.

get/agent/session/{sessionId}

Request

  • Base URL
    https://api.krea.ai
  • Auth
    HTTP bearer

Path parameters

sessionId, string uuid required

Session id returned by send_agent_message

Response

The Agent session result.

object required
sessionId, string required
threadId, string required
runId, string
status, 'not_started' | 'running' | 'completed' | 'failed' | 'cancelled' required
finished, boolean required

True once status is completed, failed, or cancelled

text, string required

Latest assistant message text

media, object[] required

Media the session produced — the deliverables the agent presented, plus its other generations while a turn is running. Order is not significant. Each item is {jobId, mediaKind?} for a generation (fetch it with get_job), {url} for rehosted media, or {uri, name, mimeType} for a Krea file (read it with read_files)

error, string
url, string required

The session in the Krea app

Changes

    • info

      added the optional property required_plan to the response with the status

    • info

      added the optional property required_plan to the response with the status

    • info

      added the optional property required_plan to the response with the status

    4 more changes in this revision