Skip to content
Navigation

Get a file

Returns a file's metadata and where it is in the pipeline.

{id} accepts the file id or the file name. A name has to match exactly one file here, otherwise the call answers 409 ambiguous_file_name.

status walks uploading → processing → ready, or lands on failed with an error. Poll this route after registering a file until it reads ready.

Once ready, urls carries signed links valid for about an hour:

  • content — the original bytes.
  • markdown and json — the parsed forms, present when the file was parsed.

Learn more: Working with files

GET
https://api.cloudraker.com/v1/files/{id}
Try it
Path parameters
Live API request

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • id
    string
    required
    minLength: 1

Returns

200

The file.

JSON
  • object
    string
    required
  • id
    string
    required
  • name
    string
    required
  • mimeType
    string
    required
  • status
    uploading
    or
    processing
    or
    ready
    or
    failed
    required
  • createdAt
    string
    required
  • parentFileId
    optional
    string
  • metadata
    optional
    map of
    string
  • error
    optional
    string
  • uploadUrl
    optional
    string
  • uploadExpiresAt
    optional
    string
  • urls
    optional
    object
    • content
      optional
      string
    • markdown
      optional
      string
    • json
      optional
      string

400

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

404

Unknown file id (or a file outside the API workspace).

409

The name matches more than one file (ambiguous_file_name), or there are too many files to resolve a name safely (file_listing_truncated).

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