Deployments
Invoke Deployed Prompt
Get completion for stored prompt. The response format is the same as OpenAI Chat completion response.
POST
Headers
Your Langtail API Key
Example:
"<LANGTAIL_API_KEY>"
Path Parameters
Your workspace URL slug
Example:
"workspace"
Your project URL slug
Example:
"project"
Your prompt URL slug
Example:
"prompt"
Your environment URL slug
Example:
"production"
Body
application/json
Response
200
application/json
Chat completion response from OpenAI - see https://platform.openai.com/docs/api-reference/chat/object for more details.
The response is of type object
.