Skip to content
Navigation

Convert a file to Markdown

Returns the file as Markdown text.

{ref} is the file id or the file name.

When the file was already parsed, this serves the Markdown that parsing produced and costs nothing extra. Otherwise the bytes are converted on the spot — the answer is the same either way.

The result is text, not a new file: nothing is stored, and nothing is charged to your corpus.

Learn more: Working with files

POST
https://api.cloudraker.com/v1/files/{ref}/convert/markdown
Try it
Path parameters
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • ref
    string
    required
    minLength: 1

Returns

200

The Markdown.

JSON
  • object
    string
    required
  • format
    string
    required
  • fileId
    string
    required
  • markdown
    string
    required

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

404

Unknown file.

409

Ambiguous name, or the bytes have not landed yet.

422

The file could not be converted.

429

Rate limited. The /v1 API allows at least 67 requests per minute per organization (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the Retry-After interval and retry — the error is retryable.
JSON
  • code
    rate_limited
    required
  • message
    string
    required
  • retryable
    true
    required
  • requestId
    string
    required
  • docUrl
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close