Result
Result · Type
What a Pinecone call returns to a script: values only, never the HTTP response.
Methods
Section titled “Methods”result.body() → string
The response body as text.
failed
Section titled “failed”result.failed() → bool
Whether the request failed.
result.json(key?: string)
The response as data, or one key of it.
status
Section titled “status”result.status() → int
The HTTP status code.
successful
Section titled “successful”result.successful() → bool
Whether the request succeeded (a 2xx status).