← Back to docs

openai

Language: EN | EN | SV

OpenAI / AI

Tools can use an internal AI engine ("OpenAI Engine") to analyze content and power platform features — without ever exposing API keys in the frontend.

This is a user manual that describes:

Web: OpenAI Engine (admin)

URL:

Requirements:

In the web UI you can:

What does “Enabled” mean?

Note: provider keys are managed under API Keys and are never shown in plain text.

Personal Bearer Token (Tools AI)

Users who are allowed to use Tools AI can create a personal bearer token:

Use it like this:

Authorization: Bearer <token>

This token works for AI feature endpoints (e.g. /api/ai/url/analyze) and is tied to your user account + permissions.

API: URL Analyze

Endpoint:

Purpose:

Request

Form data or JSON:

Response

JSON:

Auth & Permissions

To use the endpoint you need:

If the OpenAI provider isn't configured (missing global provider_openai API key), the endpoint typically returns 503.

Example

curl -X POST "https://tools.tornevall.net/api/ai/url/analyze" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <TOKEN>" \
  -d '{
    "url": "https://example.com",
    "question": "What is this page about?",
    "profile": "URL Analyzer"
  }'

Security