curl -sS -X POST "https://app.blekline.com/api/ingress/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "x-blekline-workspace-token: $BLEKLINE_WORKSPACE_TOKEN" \
  -d '{"model":"gpt-4o-mini","messages":[{"role":"user","content":"Hello"}]}'

Chat Completions Proxy

OpenAI-compatible chat completions with ingress mask on user messages (hosted path).

Client ingressMask
POST/api/ingress/v1/chat/completions

Parameters

NameInTypeDescription
x-blekline-workspace-tokenRequiredheaderstringScoped workspace token (blw_…) or session-authenticated browser call from the console.
modelbodystringUpstream model id.
messagesRequiredbodyarrayChat messages array.

Responses

StatusMeaning
200Upstream completion response
403Blocked by ingress policy