corpus

Import corpus entry from URL

Fetches and converts a remote URL (HTML / MD / PDF) into a corpus entry.

post/tenants/{slug}/corpus/sync

Request

  • Base URL: https://api.animam.ai
  • URL: https://api.animam.ai/tenants/{slug}/corpus/sync
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key
    • OAuth 2 (authorization code, authorization URL https://api.animam.ai/oauth/authorize, token URL https://api.animam.ai/oauth/token, scopes: corpus:write)

Path parameters

slugstring required

Tenant slug (URL-safe identifier).

Example:dr-martin

Request body

urlstring uri required
titlestring
segmentSlugstring

Example request

{
  "url": "https://example.com/faq"
}

Response

Entry imported.

Changes

No recorded changes to this operation across all 1 revision of this API.