Skip to content

Send an expert's answer

POST
/v1/calls/{call_id}/correction
curl --request POST \
--url https://api.pensievelabs.co/v1/calls/cl_seed_grade_01/correction \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "answer": "false_pass", "by": "maya@example.com", "note": "The patch edits its own test." }'

An expert’s answer for the case. It becomes training data, and may become a test case.

call_id
required
string

Example

cl_seed_grade_01
Idempotency-Key
string
<= 255 characters

Any unique string. Sending it again within 24 hours returns the first response.

Media typeapplication/json
object
answer
required

The right answer value.

string
by
required

Who gave it, as an email.

string
note
string
<= 2000 characters

Example

{
"answer": "false_pass",
"by": "maya@example.com",
"note": "The patch edits its own test."
}

The correction as recorded.

Media typeapplication/json
object
object
required
Allowed value: correction
call_id
required
string
answer
required
string
by
required
string
note
required
string | null
created_at
required
string format: date-time

Example

{
"object": "correction"
}

Something went wrong; error.type says what.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request authentication permission not_found conflict rate_limit not_available server
message
required
string
param

The request field the error is about.

string | null
request_id
required
string

Example

{
"error": {
"type": "invalid_request"
}
}