Skip to main content
POST
/
v1
/
contexts
Create Context
curl --request POST \
  --url https://api.example.com/v1/contexts \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "name": "<string>",
  "prompt": "<string>",
  "opening_text": "<string>",
  "links": [
    {
      "url": "<string>",
      "faq": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ]
}
'
{
  "code": 100,
  "data": {
    "name": "<string>",
    "prompt": "<string>",
    "opening_text": "<string>",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "links": [
      {
        "url": "<string>",
        "faq": "<string>",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      }
    ]
  },
  "message": "<string>"
}

Authorizations

X-API-KEY
string
header
required

Cookies

la_session
string

Body

application/json
name
string
required
prompt
string
required
opening_text
string
required

Response

Successful Response

code
integer
default:100
data
ContextDetailSchema · object
message
string