Skip to main content

List Documents

GET 

/documents

A list of Datasphere Documents

Request

Responses

The request has succeeded.

Schema

    data

    object[]

    required

  • Array [

  • iduuidrequired

    Unique ID of a Document.

    filenamestringrequired

    Name of the Document.

    Example: player_list.pdf
    statusDocumentStatus (string)required

    The current Status of the Document.

    Possible values: [submitted, in_progress, completed, failed]

    tagsstring[]required

    Document tags.

    Example: ["sports","football","game"]
    chunking_strategyChunkingStrategy (string)required

    Strategy to use when chunking the document.

    Possible values: [sentence, paragraph, page, sliding]

    max_sentences_per_chunkstringrequired

    Max Sentences per Chunk (only used for chunking type 'sentence')

    Example: 80
    split_newlinesbooleanrequired

    Split on Newlines (only used for chunking type 'sentence')

    Example: true
    overlap_sizestringrequired

    Overlap Size (only used for chunking type 'sliding')

    Example: 10
    chunk_sizestringrequired

    Chunk Size (only used for chunking type 'sliding')

    Example: 50
    number_of_chunksintegerrequired

    Number of Chunks in the Document.

    Example: 2345
    created_atdate-timerequired

    Document Creation Date.

    Example: 2024-05-06T12:20-12Z
    updated_atdate-timerequired

    Document Update Date.

    Example: 2024-05-06T12:20-12Z
  • ]

  • links

    object

    required

    selfurirequired

    Link of the current page

    Example: https://{space_name}.signalwire.com/api/data_sphere/documents?page_number=0&page_size=50
    firsturirequired

    Link to the first page

    Example: https://{space_name}.signalwire.com/api/data_sphere/documents?page_number=0&page_size=50
    nexturirequired

    Link to the next page

    Example: https://{space_name}.signalwire.com/api/data_sphere/documents?page_number=1&page_size=50&page_token=PAbff61159-faab-48b3-959a-3021a8f5beca