For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Book a demoLog in
ProductAPI ReferenceChangelogModel Versioning
ProductAPI ReferenceChangelogModel Versioning
    • Authentication
    • API Versioning
  • Workflow Endpoints
    • Run Workflow
    • Workflow Run
    • List Workflow Runs
    • Update Workflow Run
    • Create Workflow
    • Batch Run Workflow
    • Correct Workflow Run (Deprecated)
  • Processor Endpoints
    • Run Processor
    • Get Processor Run
    • Batch Processor Run
    • Create Processor
    • Update Processor
    • Publish Processor Version
    • Processor Version
    • List Processor Versions
  • Parse Endpoints
    • Parse File
  • File Endpoints
    • Upload File
    • Get File
    • List Files
    • Create File (Deprecated)
  • Evaluation Set Endpoints
    • Create Evaluation Set
    • Create Evaluation Set Item
    • Update Evaluation Set Item
    • Bulk Create Evaluation Set Item
  • Objects
    • Block
    • Evaluation Set
    • Evaluation Set Item
    • File
    • Processor
    • Processor Run
    • Batch Processor Run
    • Processor Version
    • Workflow
    • Workflow Run
    • Workflow Run Summary
  • Guides
    • Processor Configs
    • Output Types
    • Bounding Boxes
    • Supported File Types
    • Rate Limits
    • User Roles and Permissions
  • Webhooks
    • Configuration
    • Events
LogoLogo
Book a demoLog in
File Endpoints

[DEPRECATED] Create File

Create a new file in Extend for use in an evaluation set.
1curl --request POST \
2 --url https://api-prod.extend.app/files \
3 --header 'Authorization: Bearer <token>' \
4 --header 'Content-Type: application/json' \
5 --data '{
6 "name": "<string>",
7 "url": "<string>",
8 "rawText": "<string>",
9 "mediaType": "<string>"
10}'
Example Response
1{
2 "success": true,
3 "file": {
4 "object": "file",
5 "id": "file_1234",
6 "name": "example_file",
7 "type": "PDF",
8 "contents": {
9 "rawText": "This is the raw text content of the file..."
10 },
11 "metadata": {"pageCount": 10},
12 "presignedUrl": "https://s3.example.com/file_1234.pdf",
13 "createdAt": "2024-01-01T00:00:00Z",
14 "updatedAt": "2024-01-01T00:00:00Z"
15 }
16}
Was this page helpful?
Previous

Create Evaluation Set

Create a new evaluation set in Extend.
Next
Built with

Deprecation Notice: This endpoint is deprecated and will be removed in a future release. Use the /upload endpoint instead.

Creating a new File is a prerequisite for using that file with the evaluation sets API.

This endpoint will pre-process the contents of the file, and store it in the Extend platform for use in evaluation sets. For files that require pre-processing (e.g. pdfs, images, etc.) this endpoint can take up to 30 seconds to complete.

Supported file types can be found here.

Body

name
string

The name of the file.

url
string

A pre signed URL for the file.

rawText
string

The raw text content of the file.

mediaType
string

The media type of the file. (e.g. application/pdf). Will be inferred if not provided.

Response

success
boolean

A true or false value for whether the file was processed successfully or not.

file
File

A File object representing the newly created file. See the File object for more details.