Skip to content

Read a result

GET
/results/{result_id}
curl --request GET \
--url 'https://api.prismlet.com/v1/results/0192f5c1-7c1a-7b3e-9f55-3c1d2e4a5b6c?format=json' \
--header 'Authorization: Bearer <token>'

Returns a saved result from this account, whether the API, the app or a file run made it. Nothing is sent to the model.

json applies the prism’s current Lens to the stored answers, so a Lens edit changes what an old result returns. raw returns the stored answers and never changes. A failed result answers 200 too, with status set to failed. Results of an archived prism stay readable.

result_id
required
string format: uuid

The result’s id.

Example
0192f5c1-7c1a-7b3e-9f55-3c1d2e4a5b6c
format
string
default: json
Allowed values: json raw csv tsv jsonl

What the response body holds.

  • json: the result, with answers shaped by the prism’s Lens.
  • raw: the result, with the stored answers and every probability.
  • csv, tsv: a header row and one row for the result.
  • jsonl: one line holding the same row as a JSON object.

Defaults to json, also when sent empty. An unknown value answers 400. Errors are JSON in every format.

The result, whether it succeeded or failed.

Any of:
Result (json)

A result in the default json format. answers is shaped by the prism’s current Lens, so editing the Lens changes what an old result returns.

object
id
required

The result id. Use it to read or retry the result.

string format: uuid
ref
required

The ref sent with the call, or null.

string | null
prism
required

The prism’s slug.

string
version
required

The prism version that answered.

integer
>= 1
status
required

ok, or failed when the model gave no usable answer.

string
Allowed values: ok failed
error
required

Why the result failed, in words. Null when status is ok.

string | null
took_ms
required

How long the call to the model took, in milliseconds.

integer
created_at
required

When the result was saved, ISO 8601 in UTC.

string format: date-time
answers
required

One entry per column of the prism’s Lens, keyed by column name, in Lens order. Null when the result failed.

object | null
Examples

Answered, format=json

{
"id": "0192f5c1-7c1a-7b3e-9f55-3c1d2e4a5b6c",
"ref": "TCK-8812",
"prism": "support-routing",
"version": 3,
"status": "ok",
"error": null,
"took_ms": 640,
"created_at": "2026-09-23T09:14:02.187Z",
"answers": {
"team": "billing",
"team_probability": 0.91,
"urgent": "yes",
"tone": "annoyed",
"tone_average": 2.05
}
}

The result id or the format is invalid.

Media typeapplication/json; charset=utf-8

Every error has this body, in JSON, whatever format asked for.

object
error
required
object
code
required

validation_failed, bad_request, unauthorized, not_found, conflict or internal_error.

string
message
required

What went wrong, in words. A validation message names the failing paths and never repeats a value sent. Unknown fields lists the keys sent.

string
Examples

Result id is not a UUID

{
"error": {
"code": "validation_failed",
"message": "Invalid request: result_id: Invalid uuid"
}
}

No API key, or one that is unknown or revoked.

Media typeapplication/json; charset=utf-8

Every error has this body, in JSON, whatever format asked for.

object
error
required
object
code
required

validation_failed, bad_request, unauthorized, not_found, conflict or internal_error.

string
message
required

What went wrong, in words. A validation message names the failing paths and never repeats a value sent. Unknown fields lists the keys sent.

string
Examples

No Authorization header

{
"error": {
"code": "unauthorized",
"message": "Authentication required"
}
}

No result with this id in this account.

Media typeapplication/json; charset=utf-8

Every error has this body, in JSON, whatever format asked for.

object
error
required
object
code
required

validation_failed, bad_request, unauthorized, not_found, conflict or internal_error.

string
message
required

What went wrong, in words. A validation message names the failing paths and never repeats a value sent. Unknown fields lists the keys sent.

string
Examples
Exampleunknown_result

Unknown result

{
"error": {
"code": "not_found",
"message": "Result not found"
}
}

A bug on our side. The message is always the same.

Media typeapplication/json; charset=utf-8

Every error has this body, in JSON, whatever format asked for.

object
error
required
object
code
required

validation_failed, bad_request, unauthorized, not_found, conflict or internal_error.

string
message
required

What went wrong, in words. A validation message names the failing paths and never repeats a value sent. Unknown fields lists the keys sent.

string
Examples
Exampleunexpected_error

Unexpected error

{
"error": {
"code": "internal_error",
"message": "Internal server error"
}
}