Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

LOCAL DRAFT PREVIEW. Not published. Pages tagged Draft are new, pages tagged Updated have additions. Yellow 'To confirm' boxes are internal questions.

Fini home pagelight logodark logo
    Documentation
    Use cases
    Trust & pricing
    API reference

    API Setup

    • API overview
    • API contract
    • Static IP Addresses
    • Database and Warehouse Connections
    • MCP Connections

    LLM Access

    • Coding agents
    • Claude Plugin

    Agents

    • Overview
    • POST
      Create agent
    • List agents
    • DEL
      Delete agent

    Analytics

    • Overview
    • Get agent analytics
    • Get agent analytics section

    Prompts

    • Overview
    • Get prompts
    • Get prompt history
    • Get prompt version
    • Update prompts
    • POST
      Create prompt draft version
    • Get prompt draft version
    • Publish prompt draft version
    • DEL
      Delete prompt draft version

    Actions

    • Overview
    • List actions
    • Get action
    • POST
      Create action
    • Update action
    • DEL
      Delete action
    • Test action
    • List agent assignments
    • POST
      Assign to agents

    Attributes

    • Overview
    • List attributes
    • Get attribute
    • POST
      Create attribute
    • Update attribute
    • DEL
      Delete attribute
    • Test attribute
    • List agent assignments
    • POST
      Assign to agents

    External API calls

    • Overview
    • List external API calls
    • Get external API call
    • POST
      Create external API call
    • Update external API call
    • DEL
      Delete external API call
    • Test external API call

    Intent Rules

    • Overview
    • List intent rules
    • Get intent rule
    • Get intent-rule fields context
    • POST
      Generate intent-rule draft with AI
    • POST
      Create intent rule
    • Update intent rule
    • List intent-rule versions
    • Get intent-rule version
    • Publish intent-rule draft
    • Restore intent-rule version as draft
    • DEL
      Delete intent-rule draft version
    • Get rule version test paths
    • Preview rule test paths
    • Run rule version test path
    • Run rule test path from config
    • DEL
      Delete intent rule

    Guardrails

    • Overview
    • List guardrail check types
    • List guardrail policies
    • Get guardrail policy
    • POST
      Create guardrail policy
    • Update guardrail policy
    • DEL
      Delete guardrail policy
    • List guardrail runs
    • Get guardrail hits

    Business Rules

    • Overview
    • List Business Rules
    • Get Business Rule
    • Get Business Rule fields context
    • List default Business Rules
    • POST
      Create Business Rule
    • POST
      Duplicate Business Rule
    • POST
      Evaluate Business Rule
    • Get Business Rule test fields
    • Preview Business Rule test fields
    • Update Business Rule
    • DEL
      Delete Business Rule

    Reply Rules

    • Overview
    • Get reply rules
    • Get reply rule fields context
    • Update reply rule

    Tag groups

    • Overview
    • List tag groups
    • Get tag group
    • POST
      Create tag group
    • Update tag group
    • DEL
      Delete tag group

    Tags

    • Overview
    • Get tag
    • List tags in group
    • List tags across groups
    • POST
      Create tag
    • Update tag
    • DEL
      Delete tag

    Conversations

    • Overview
    • List conversations
    • Get conversation
    • Get event metadata
    • POST
      Generate Answer
    • Send conversation feedback
    • Mark feedback resolved
    • POST
      Add feedback note
    • POST
      Evaluate conversation rule
    • DEL
      Delete conversation
    • DEL
      Bulk delete conversations

    Refine with AI

    • Overview
    • POST
      Create Refine with AI iteration
    • Get active Refine with AI session
    • Get Refine with AI session

    Replays

    • Replays
    • POST
      Create replay
    • List replays
    • Get replay
    • Get replay events

    Test Sets

    • Overview
    • List test sets
    • POST
      Create a test set
    • Get fields context
    • Get a test set
    • Update a test set
    • DEL
      Delete a test set
    • POST
      Add criteria
    • Update a criterion
    • DEL
      Delete a criterion
    • List runs
    • Start a run
    • Get a run

    Knowledge

      • Overview
      • List sources
      • Get source
      • List provider resources
      • Register provider resources
      • Ingest sources
      • POST
        Crawl links
      • Refresh sources
      • DEL
        Delete sources

    Updates

    • Changelog
      Draft
    Sources

    Get source

    > ## Documentation Index
    > Fetch the complete documentation index at: https://docs.usefini.com/llms.txt
    > Use this file to discover all available pages before exploring further.
    
    # Get source
    
    > Fetch one source record by ID. Returns the same shape as the list endpoint, scoped to a single source.
    
    Returns one source record by ID. The response shape is identical to a single entry in [List sources](/en/api-reference/list-sources) — same fields, same semantics. Use this endpoint when you have a source ID and want a focused payload, especially for polling `linkedJobStatus` during ingestion.
    
    <Tip>
      For the end-to-end flow, see [Sources](/en/api-reference/sources). For polling guidance, see [Ingest sources](/en/api-reference/ingest-sources#polling-for-completion).
    </Tip>
    
    <Note>
      The route path and response object still use `document` naming because that is the current API contract. This page uses **source** terminology for the product model.
    </Note>
    
    ## Headers
    
    <ParamField header="Authorization" type="string" required>
      Bearer token containing your Fini workspace API key. Format: `Bearer fini_...` The key needs `read` scope.
    </ParamField>
    
    ## Path parameters
    
    <ParamField path="id" type="string" required>
      Source ID. Get this from [List sources](/en/api-reference/list-sources) or from the response of [Ingest sources](/en/api-reference/ingest-sources) and [Register provider resources](/en/api-reference/register-provider-resources).
    </ParamField>
    
    <RequestExample>
      ~~~bash cURL theme={null}
      curl --request GET \
        --url 'https://api-prod.usefini.com/v2/documents/public/5d9f67a8-d853-4af4-b7ce-23ebba1245e5' \
        --header 'Authorization: Bearer fini_your_api_key'
      ~~~
    
      ~~~python Python theme={null}
      import requests
    
      source_id = "5d9f67a8-d853-4af4-b7ce-23ebba1245e5"
      response = requests.get(
          f"https://api-prod.usefini.com/v2/documents/public/{source_id}",
          headers={"Authorization": "Bearer fini_your_api_key"},
      )
      source = response.json()
      ~~~
    
      ~~~javascript Node.js theme={null}
      const sourceId = "5d9f67a8-d853-4af4-b7ce-23ebba1245e5";
    
      const response = await fetch(
        `https://api-prod.usefini.com/v2/documents/public/${sourceId}`,
        {
          headers: {
            Authorization: "Bearer fini_your_api_key",
          },
        }
      );
      const source = await response.json();
      ~~~
    </RequestExample>
    
    ## Response
    
    The response is a single `Document` object. See [List sources → Document](/en/api-reference/list-sources#document) for the full field reference. In the product model, this object represents one source record.
    
    <ResponseExample>
      ~~~json 200 OK theme={null}
      {
        "id": "4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3",
        "source": "web",
        "url": "https://help.example.com/refunds",
        "title": "Refund policy",
        "success": true,
        "changed": false,
        "linkedJobStatus": "COMPLETED",
        "linkedKnowledgeId": "7fa27325-e2f6-4420-b705-436f9106f908",
        "createdAt": "2026-07-28T08:55:32.000Z",
        "updatedAt": "2026-07-28T09:10:18.000Z"
      }
      ~~~
    </ResponseExample>
    
    ## Errors
    
    <AccordionGroup>
      <Accordion title="400 Bad Request" icon="circle-exclamation">
        The `id` path parameter is not a valid UUID.
      </Accordion>
    
      <Accordion title="401 Unauthorized" icon="lock">
        The API key is missing, malformed, revoked, or invalid. Confirm `Authorization: Bearer fini_...` with the full key.
      </Accordion>
    
      <Accordion title="403 Forbidden" icon="shield-halved">
        The API key doesn't include the `read` scope, or the source belongs to a different workspace than the key.
      </Accordion>
    
      <Accordion title="404 Not Found" icon="circle-question">
        No source exists with that ID in the workspace tied to the key. Confirm the ID and that you're authenticating against the right workspace.
      </Accordion>
    </AccordionGroup>
    
    
    ## Related topics
    
    - [Ingest sources](/en/api-reference/ingest-sources.md)
    - [Overview](/en/api-reference/sources.md)
    - [Bulk generate knowledge](/en/api-reference/bulk-generate-knowledge.md)
    
    
    This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.
    
    List sources
    List provider resources
    Powered byThis documentation is built and hosted on Mintlify, a developer documentation platform