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).
POST
/api/ingress/v1/chat/completionsParameters
| Name | In | Type | Description |
|---|---|---|---|
x-blekline-workspace-tokenRequired | header | string | Scoped workspace token (blw_…) or session-authenticated browser call from the console. |
model | body | string | Upstream model id. |
messagesRequired | body | array | Chat messages array. |
Responses
| Status | Meaning |
|---|---|
200 | Upstream completion response |
403 | Blocked by ingress policy |