Get a NL generation

Get a NL generation#

request this GET endpoint to get a NL generation.

/api/v1/nl_generations/<nl_generation_id>

Parameters

Name

Type

Description

nl_generation_id

string

the nl_generation_id, Required

Responses

HTTP 200 code response

{
"id": "string",
"metadata": {},
"created_at": "string",
"sql_generation_id": "string",
"text": "string"
}

Request example

 curl -X 'GET' \
'http://localhost/api/v1/nl_generations/659f166dfb38253f8345806d' \
 -H 'accept: application/json'

Response example

{
"id": "659f166dfb38253f8345806d",
"metadata": {},
"created_at": "2024-01-10 22:13:01.707000+00:00",
"sql_generation_id": "659f1603fb38253f8345806c",
"text": "The average rent price in LA is $3,337.42."
}