Skip to content
Navigation

Add a template by URL, or get a presigned upload URL

Adds a blank form to your organization's template library.

The two request shapes match POST /v1/files:

  • { url, name? } — fetched over http(s) for you.
  • { name, mimeType } — returns uploadUrl plus uploadExpiresAt (15 minutes); PUT the bytes with a Content-Type equal to the mimeType you sent.
{ "url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf", "name": "w9.pdf" }

Note: Templates are deliberately never parsed or indexed — they are documents to be filled, not read. That is why a template reaches ready as soon as its bytes land, with no processing stage. Pass one to fill as template: { "id": "…" }.

Learn more: Form filling guide

POST
https://api.cloudraker.com/v1/templates
Try it
Request body
Live API request

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

Authorization

  • bearerAuth
    HTTP
    required

Request body JSON required

Any of the following:

  • object
    • url
      string
      required
      format: uri
    • name
      optional
      string
      minLength: 1
  • object
    • name
      string
      required
      minLength: 1
    • mimeType
      string
      required
      minLength: 1

Returns

201

The template.

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
  • kind
    optional
    string
  • downloadUrl
    optional
    string
  • uploadUrl
    optional
    string
  • uploadExpiresAt
    optional
    string

400

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

422

The URL could not be fetched (file_fetch_failed).

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