Start typing to search.

API Reference

Create an AI reference

View Markdown

Create an AI reference

POST /api/ai/references

Create an AI reference

Operation ID: createAiReference

Authentication

Option 1

  • BearerAuth (http bearer) API key token. Create via POST /api/api-keys. Format: envoy_<hex>

Option 2

  • CookieAuth (apiKey) Session cookie set after login + TOTP verification

Success responses

201

Created reference

Examples

cURL

curl --request POST \
  --url 'https://your-envoy.example.com/api/ai/references' \
  --header 'Authorization: Bearer $API_KEY'

JavaScript (fetch)

const response = await fetch('https://your-envoy.example.com/api/ai/references', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
  },
});
 
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = response.status === 204 ? null : await response.json();
console.log(data);