Skip to content

Result

Result · Type

What a Pinecone call returns to a script: values only, never the HTTP response.

result.body() → string

The response body as text.

result.failed() → bool

Whether the request failed.

result.json(key?: string)

The response as data, or one key of it.

result.status() → int

The HTTP status code.

result.successful() → bool

Whether the request succeeded (a 2xx status).